MCP Python SDK

modelcontextprotocol/python-sdk

Official Python SDK for MCP servers and clients

PersonalEnterpriseMCP serversLibrary / SDKPermissive

At a glance

stars on GitHub
25k
contributors
202+
last commit
latest release, 2 months ago
v2.3.0
license
MIT

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]"

Latest release: v2.3.0,

Source code only: this release has no files to download.

MCP Python SDK and its alternatives: GitHub stars, last commit, license and worth score
ProjectStarsLast commitLicenseWorth
MCP Python SDKThis project
25k (best)MIT81 (best)
MCP TypeScript SDKOfficial TypeScript SDK for MCP servers and clients
14kCustom (read before use)74

▲ marks the most stars and the best worth score.

py.sdk.modelcontextprotocol.io
Preview of MCP Python SDK
Preview of MCP Python SDK at py.sdk.modelcontextprotocol.io

Topics