Skip to content

MCP templates

Download: All MCP templates (.zip) · client-configs (.zip) · python-server (.zip) · typescript-server (.zip). Each file below also has its own page with a copy button.

Template What it is
typescript-server/ A stdio server using the v2 TypeScript SDK (@modelcontextprotocol/server): 2 tools, a resource, and a prompt
python-server/ The same server in Python using mcp v2 (MCPServer)
client-configs/cursor-mcp.json Copy to .cursor/mcp.json or ~/.cursor/mcp.json
client-configs/claude-code-mcp.json Copy to .mcp.json in the repo root (Claude Code, project scope)
client-configs/claude-desktop-config.json Merge into claude_desktop_config.json

In cursor-mcp.json and claude-desktop-config.json, replace C:/path/to/... with absolute paths on your machine. claude-code-mcp.json uses paths relative to the repo root, because a project .mcp.json is shared with everyone who clones the repo; adjust them to where the server lives in your repo.

Each server template includes scripts/mcp-smoke.mjs, a dependency-free protocol smoke test. It starts the server, checks it lists valid tools, and prints PASS or FAIL. Run it with npm run smoke (TypeScript) or node scripts/mcp-smoke.mjs uv run server.py (Python). It connects the way most hosts do today, with the legacy initialize handshake; both templates also serve 2026-07-28 clients.