MCP Python SDK
Official Python SDK for building MCP servers and clients.
Install
pip install "mcp[cli]"
Commands change between releases — if something fails, check the official README.
About MCP Python SDK
The official Python implementation of MCP, including a FastMCP-style server API and client support.
FAQ
What is MCP Python SDK?
Official Python SDK for building MCP servers and clients.
How do I install MCP Python SDK?
Run: pip install "mcp[cli]". Full steps are in the Install section on this page.
Which agents does MCP Python SDK work with?
Claude Code, Claude apps, Cursor, VS Code & Copilot, OpenAI Codex, Gemini CLI, Windsurf.
Is MCP Python SDK free?
Yes. It is open source (MIT).
Alternatives to MCP Python SDK?
Agent Skills Specification, Model Context Protocol, skill-creator, Skills CLI (skills.sh), Anthropic Example Skills.