Skip to content
Agents tracked: 378 Downloads (7d): 244M down 5.7% GitHub stars: 8.4M VS Code installs: 151M Releases (7d): 407 Agent status: 1 with issues Updated Oct 10, 2026

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

Used in agent projects
484
3.8% of 12,697 public repos built with AI coding agents
Rank in agent, mcp and tool libraries
#2 of 9
by use in those projects
Downloads
60.6M
PyPI, last 7 days, mcp
GitHub stars
24.5K
last push Oct 5, 2026

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)

Pydantic34.5% of Model Context Protocol SDK (Python) projects · 6.8× more than average
python-dotenv34.1% of Model Context Protocol SDK (Python) projects · 5.2× more than average
Uvicorn28.5% of Model Context Protocol SDK (Python) projects · 6.7× more than average
FastAPI24.8% of Model Context Protocol SDK (Python) projects · 5.9× more than average
httpx23.6% of Model Context Protocol SDK (Python) projects · 11.2× more than average
Requests19.6% of Model Context Protocol SDK (Python) projects · 3.7× more than average
PyYAML16.3% of Model Context Protocol SDK (Python) projects · 5.4× more than average
NumPy16.1% of Model Context Protocol SDK (Python) projects · 4.2× more than average

By coding agent

Claude Code7.6% of projects set up for it
GitHub Copilot7.3% of projects set up for it
Cursor7.2% of projects set up for it
OpenCode5.3% of projects set up for it
Gemini CLI2.7% of projects set up for it
OpenAI Codex2.4% of projects set up for it
Devin Desktop2.6% of projects set up for it
Continue7.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

Packagepip install mcp
Main stacksPython (482), Next.js (2)
Example projectsdramaclaw/dramaclaw, capture0x/AdStrike, daydreamlive/DEMON, ericzakariasson/uber-eats-mcp-server, Azure-Samples/python-mcp-demos

Alternatives to Model Context Protocol SDK (Python)

All agent, mcp and tool libraries

Tool Used in agent projectsDownloads / wk GitHub starsLicense
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
Is Model Context Protocol SDK (Python) right for your project? Ask AgentGid →