python-sdk logo

python-sdk

modelcontextprotocol/python-sdk

Official Python SDK for Model Context Protocol

GraphCanon updated 2w · GitHub synced 2w · 29 views this month

24k stars3.7k forksLast push 2w Python MIT

Decision brief

Decision-Critical Facts for the Python SDK for Model Context Protocol

Good fit when

  • - When you need to interact with the Model Context Protocol through a Python-based setup, either as a server or a client.
  • - For developers who are working on pre-release version v2.0.0b1 and require features not available in stable versions of 1.x.

Avoid when

  • - When using a different programming language, as this is a Python-specific SDK.
  • - For developers requiring stability over bleeding-edge features; as a pre-release tool (v2.0.0b1), it may include experimental or unstable elements.

Observed Jul 11, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Very active (0d since push)
As of 2w
Provenance
Not a fork · Organization account
As of 2w
Security (OSV)
No lockfile
As of 1mo

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

pip install python-sdk
PyPI

How it fits your stack(3)

Typed graph edges - alternatives, integrations, successors, and dependencies. Ranked by relationship type, not raw GitHub stars.

Relationship graph

Optional deeper exploration of typed edges and category neighbours.

Similar tools

Same-category neighbours not already linked as typed edges.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

Provides tools and interfaces for interacting with the Model Context Protocol through server and client setups.

Capability facts

CLI
CLI entrypoint

Source: pyproject.toml:[project.scripts] · Aug 1, 2026

Languages
python

Source: github.language+pyproject.toml · Aug 1, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Python runtimePython

Source: README excerpt (regex_v1, Aug 1, 2026)

nder the MIT License. See the [LICENSE](https://github.com/modelcontextprotocol/python-sdk/blob/main/LICENSE) file for details.
Source link

Tags

README

Installation

uv add "mcp[cli]"      # or: pip install "mcp[cli]"

The cli extra adds the mcp command-line tool (mcp dev, mcp run, mcp install) on top of the SDK; install plain mcp if you don't need it. For one-off commands, uv run --with "mcp[cli]" mcp ... works without a project.


License

This project is licensed under the MIT License. See the LICENSE file for details.

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.