Python MPC Server Sample
April 16, 2025 ยท View on GitHub
A simple sticky notes application built with the MCP (Model Context Protocol) Python SDK.
Features
- Add sticky notes
- Read all saved notes
- Get the latest note
- Generate note summaries
Installation
-
Install the
uvpackage manager:curl -LsSf https://astral.sh/uv/install.sh | sh -
Initialize the project and install dependencies:
uv init . uv add "mcp[cli]" -
Install the MCP server:
uv run mcp install main.py
Usage
Start the MCP server:
uv run python main.py
This will add json defintion to Claude Desktop (to MPC Host/Client) like this and run server in background.
{
"mcpServers": {
"AI Sticky Notes": {
"command": "uv",
"args": [
"run",
"--with",
"mcp[cli]",
"mcp",
"run",
"~/my-repositories/my-projects/python-mpc-server-sample/main.py"
]
}
}
}
Available Functions
add_note(message): Add a new noteread_notes(): Read all saved notesget_latest_note(): Get the most recent notenote_summary_prompt(): Generate a prompt for summarizing notes