Skip to content

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).

Terminal window
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)
Env var Default Purpose
NOTES_FILE ~/.notes-mcp.json Where notes are stored

Cursor (.cursor/mcp.json):

{ "mcpServers": { "notes": { "type": "stdio", "command": "uv", "args": ["--directory", "C:/path/to/python-server", "run", "server.py"] } } }

Claude Code:

Terminal window
claude mcp add notes -- uv --directory C:/path/to/python-server run server.py

For more clients, see Connect to clients.