notes-mcp-server (Python / MCPServer template)
Download this template: python-server.zip
The same tools as the TypeScript template: search_notes, add_note, the notes://all resource, and the weekly_review prompt. Tool failures raise ToolError, so the model sees the error message (for example, that a note title already exists).
Run and test
Section titled “Run and test”uv sync # or: pip install "mcp[cli]>=2.2,<3"uv run mcp dev server.py # interactive MCP Inspector (needs Node 22.19+)node scripts/mcp-smoke.mjs uv run server.py # automated check (prints PASS)Configuration
Section titled “Configuration”| Env var | Default | Purpose |
|---|---|---|
NOTES_FILE |
~/.notes-mcp.json |
Where notes are stored |
Connect
Section titled “Connect”Cursor (.cursor/mcp.json):
{ "mcpServers": { "notes": { "type": "stdio", "command": "uv", "args": ["--directory", "C:/path/to/python-server", "run", "server.py"] } } }Claude Code:
claude mcp add notes -- uv --directory C:/path/to/python-server run server.pyFor more clients, see Connect to clients.