modelcontextprotocol/python-sdk
Official Python SDK enabling AI models to connect to servers, tools, resources, and prompts via the Model Context Protocol.

Velocity · 7d
+37
★ / day
Trend
→steady
star history
The MCP Python SDK provides a complete implementation for building MCP-compatible servers and clients. It lets developers expose tools, resources, prompts, and sampling capabilities that AI assistants like Claude can invoke. The SDK supports both traditional server patterns and the FastMCP rapid-development framework, handling protocol communication, authentication, and structured outputs for agent tool-calling workflows.