MCP Python SDK

modelcontextprotocol/python-sdk

Official Python SDK for MCP servers and clients

PersonalEnterpriseMCP serversLibrary / SDKPermissive
py.sdk.modelcontextprotocol.io
Preview of MCP Python SDK
Preview of MCP Python SDK at py.sdk.modelcontextprotocol.io

About

Build MCP servers and clients in Python, including the FastMCP decorator API for exposing tools and resources in a few lines.

From the repository: “The official Python SDK for Model Context Protocol servers and clients”

Get it

pip install "mcp[cli]"
MemPalaceOpen-source AI memory systemLibrary / SDK87
gpt-researcherAutonomous deep research agent for web and local documentsWebDocker / self-host85
FastMCPFast, Pythonic way to build MCP serversLibrary / SDK81
ComposioToolkits and auth for AI agentsLibrary / SDK80

Topics