modelcontextprotocol/python-sdk

The official Python SDK for Model Context Protocol servers and clients

85
/ 100
Verified

This is the official Python SDK for the Model Context Protocol (MCP). It allows developers to build applications that can exchange information with Large Language Models (LLMs) in a standardized way. Using this SDK, you can create servers that provide data (resources), define functions (tools), and manage reusable interaction templates (prompts) for LLMs, or build clients that consume these services. It takes Python code defining resources, tools, and prompts, and outputs an MCP-compliant server or client.

22,499 stars. Used by 510 other packages. Actively maintained with 22 commits in the last 30 days. Available on PyPI.

Use this if you are a Python developer building applications that need to provide specific, structured context or functionality to LLMs, or consume such services.

Not ideal if you are looking for an off-the-shelf LLM application or a general-purpose LLM orchestration framework, rather than a protocol implementation.

LLM application development protocol implementation AI integration API development backend development
Maintenance 23 / 25
Adoption 15 / 25
Maturity 25 / 25
Community 22 / 25

How are scores calculated?

Stars

22,499

Forks

3,268

Language

Python

License

MIT

Category

framework

Last pushed

Apr 03, 2026

Commits (30d)

22

Dependencies

14

Reverse dependents

510

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/mcp/modelcontextprotocol/python-sdk"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.