Directory · MCP servers
MCP Python SDK
Official Python SDK for building Model Context Protocol servers and clients, with stdio, Streamable HTTP, and SSE transports.
★ 24,996 stars · last updated 2026-11-17 · Free, open source · View on GitHub
Best for
- Python developers building custom MCP servers that expose tools, resources, and prompts
- Writing MCP clients that connect to any MCP server
- Testing servers locally with the MCP Inspector via mcp dev
Install
uv add "mcp[cli]" # or: pip install "mcp[cli]"
Our take
This is the official SDK maintained under the modelcontextprotocol organization, MIT licensed, and actively developed. It requires Python 3.11+ and is on v2, so code written against earlier versions may need the migration guide. Tool schemas are derived from Python type hints, and the optional cli extra adds the mcp command for dev, run, and install.
Similar mcp servers
- n8n: Self-hostable workflow automation platform for building AI agents and workflows with a visual canvas, custom code, and 1500+ integrations.
- Gemini CLI: Open-source terminal coding agent from Google that runs Gemini models and acts as an MCP client for custom tools.
- Scrapling: Python web scraping framework with stealth browsers, parsing, and crawling, plus an MCP server so AI agents can fetch and extract web data.
- World Monitor: Real-time geopolitical, news, finance, and infrastructure dashboard with a hosted MCP server that agents can query for global intelligence data.
- Ruflo (formerly Claude Flow): Agent harness for Claude Code and Codex adding multi-agent swarms, persistent memory, hooks, a console, and an MCP server.
- Context7: MCP server and CLI that feeds up-to-date, version-specific library docs and code examples into coding agents like Claude Code and Cursor.