Model Context Protocol SDK (Python)
Python SDK for building MCP servers and clients to extend AI agent capabilities.
Agent, MCP and tool libraries PyPI MIT
How Model Context Protocol SDK (Python) is used
Model Context Protocol SDK (Python) is a dependency in 484 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (3.8%), #2 of 9 in agent, mcp and tool libraries. The most used alternative there is Model Context Protocol SDK (JavaScript). Projects that use it most often also use Pydantic (34.5%), python-dotenv (34.1%), Uvicorn (28.5%). It is more common in projects set up for Continue (7.9%) than for OpenAI Codex (2.4%).
Often used with Model Context Protocol SDK (Python)
| Pydantic | 34.5% of Model Context Protocol SDK (Python) projects · 6.8× more than average |
|---|---|
| python-dotenv | 34.1% of Model Context Protocol SDK (Python) projects · 5.2× more than average |
| Uvicorn | 28.5% of Model Context Protocol SDK (Python) projects · 6.7× more than average |
| FastAPI | 24.8% of Model Context Protocol SDK (Python) projects · 5.9× more than average |
| httpx | 23.6% of Model Context Protocol SDK (Python) projects · 11.2× more than average |
| Requests | 19.6% of Model Context Protocol SDK (Python) projects · 3.7× more than average |
| PyYAML | 16.3% of Model Context Protocol SDK (Python) projects · 5.4× more than average |
| NumPy | 16.1% of Model Context Protocol SDK (Python) projects · 4.2× more than average |
By coding agent
| Claude Code | 7.6% of projects set up for it |
|---|---|
| GitHub Copilot | 7.3% of projects set up for it |
| Cursor | 7.2% of projects set up for it |
| OpenCode | 5.3% of projects set up for it |
| Gemini CLI | 2.7% of projects set up for it |
| OpenAI Codex | 2.4% of projects set up for it |
| Devin Desktop | 2.6% of projects set up for it |
| Continue | 7.9% of projects set up for it |
Share of public repos configured for each agent that list Model Context Protocol SDK (Python) as a dependency.
Install
| Package | pip install mcp |
|---|---|
| Main stacks | Python (482), Next.js (2) |
| Example projects | dramaclaw/dramaclaw, capture0x/AdStrike, daydreamlive/DEMON, ericzakariasson/uber-eats-mcp-server, Azure-Samples/python-mcp-demos |
Alternatives to Model Context Protocol SDK (Python)
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Model Context Protocol SDK (JavaScript) npm TypeScript SDK for building MCP servers and clients to extend AI agent capabilities. |
603 (4.7%) | 65.4M | 13.5K | MIT |
| FastMCP (Python) pypi Fast, Pythonic framework for building MCP servers and clients for AI tool integration. |
169 (1.3%) | 14.3M | 28K | — |
| LangChain (Python) pypi Framework for composing applications with LLMs through chains and agents. |
141 (1.1%) | 37.3M | 148K | MIT |
| LangGraph pypi Framework for building stateful, multi-actor applications with LLMs. |
82 (0.6%) | 12.1M | 43K | — |
| LangChain.js npm Build applications with LLMs using composable abstractions for chains, agents and memory. |
67 (0.5%) | 6.2M | 18.3K | MIT |
| Mastra npm Framework for building AI agents with tools, memory and MCP server support. |
39 (0.3%) | 2M | 28.7K | Apache-2.0 |
| fastMCP (JavaScript) npm TypeScript framework for building Model Context Protocol servers. |
33 (0.3%) | 709K | 3,274 | MIT |
| LangChain (JavaScript) npm TypeScript framework for building applications with LLMs, chains, agents and memory. |
30 (0.2%) | 3.1M | 18.3K | MIT |