i ideas / repo launcher
modelcontextprotocol avatar

modelcontextprotocol/python-sdk

★ 24,835PythonMIT89

The official Python SDK for Model Context Protocol servers and clients

What it is

![PyPI][pypi-url] ![MIT licensed][mit-url] ![Python Version][python-url] ![Documentation][docs-url] ![Protocol][protocol-url] ![Specification][spec-url] It has a Get started guide, What's new in v2, the API reference, and the migration guide. The Model Context Protocol lets you build servers that expose data and functionality to LLM applications in a secure, standardized way. Think of it like a web API, but designed for LLM interactions. With this SDK you can:

When to use it

Reach for python-sdk when you want Claude, Cursor or any MCP client to reach a new tool, API or data source — it's written in Python and fits stacks tagged mcp, mcp-client.

Category
MCP & Tool Use
Also in
—
Stars
24,835
Forks
4,119
Last push
6 days ago
Created
2024-09-24
Open issues
404
Website
py.sdk.modelcontextprotocol.io

Quick start

$ git clone https://github.com/modelcontextprotocol/python-sdk.git

Hand it to your AI

Read https://ideas.asveas.com/r/modelcontextprotocol/python-sdk.md and help me add modelcontextprotocol/python-sdk to my project. Explain the setup steps for my stack and show the minimal code to get it working.

Alternatives to python-sdk

All MCP & Tool Use →

Pairs well with

FAQ

What is python-sdk?

modelcontextprotocol/python-sdk is a MCP server on GitHub: The official Python SDK for Model Context Protocol servers and clients ![PyPI][pypi-url] ![MIT licensed][mit-url] ![Python Version][python-url] ![Documentation][docs-url] ![Protocol][protocol-url] ![Specification][spec-url] It has a Get started guide, What's new in v2, the API reference, and the migration guide.

When should I use python-sdk?

Reach for python-sdk when you want Claude, Cursor or any MCP client to reach a new tool, API or data source — it's written in Python and fits stacks tagged mcp, mcp-client.

What are the best alternatives to python-sdk?

Popular alternatives in MCP & Tool Use: upstash/context7 (64.6k★), punkpeye/awesome-mcp-servers (97.6k★), modelcontextprotocol/servers (91.9k★), PrefectHQ/fastmcp (28.4k★), microsoft/playwright-mcp (39.5k★).

Is python-sdk actively maintained?

modelcontextprotocol/python-sdk looks very actively maintained: the last push was 6 days ago (2026-11-05), with 24,835 stars and 404 open issues.

What license does python-sdk use?

modelcontextprotocol/python-sdk is published under the MIT license. Check the repository's LICENSE file before commercial use.