mcp
Model Context Protocol SDK
Install
mcp on PyPI
pip
pip install mcpuv
uv add mcppoetry
poetry add mcpPackage facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 14 — anyio, httpx2, jsonschema, mcp-types, opentelemetry-api, pydantic, pyjwt, python-multipart, pywin32, sse-starlette, starlette, typing-extensions, typing-inspection, uvicorn |
| Maintenance | actively maintained — 16 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: mcp-2.0.0-py3-none-any.whl
Keywords: automation, llm, mcp
About mcp
from the package's own PyPI description — quoted content, verbatim
MCP Python SDK
<div align="center">
<strong>Python implementation of the Model Context Protocol (MCP)</strong>
[![PyPI][pypi-badge]][pypi-url] [![MIT licensed][mit-badge]][mit-url] [![Python Version][python-badge]][python-url] [![Documentation][docs-badge]][docs-url] [![Protocol][protocol-badge]][protocol-url] [![Specification][spec-badge]][spec-url]
</div>
> [!NOTE]
> This is v2 of the MCP Python SDK, the current stable release line. It is a major rework of the SDK, both to support the 2026-07-28 MCP specification (and every earlier revision) and to fix long-standing architectural issues. Coming from v1? See What's new in v2 for the tour of what changed and the migration guide for every breaking change.
>
> Not ready to migrate? v1.x lives on the v1.x branch, continues to receive critical bug fixes and security patches, and is documented at <https://py.sdk.modelcontextprotocol.io/v1/>. Since pip install mcp now...
Read as markdown · JSON record · Source repository · Homepage · Docs
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Python SDK for building and connecting to Model Context Protocol servers, enabling LLM applications to interact with tools, resources, and prompts through a standardized protocol.
Low friction: pure Python wheel with 14 runtime dependencies including pydantic, starlette, and uvicorn. Active maintenance with release 16 days old and current commit activity.
MIT license permits unrestricted commercial and private use with minimal obligations—only attribution and license inclusion required.
Usage
pip install mcp
from mcp.server import MCPServer
mcp = MCPServer("Demo")
@mcp.tool()
def add(a: int, b: int) -> int:
return a + b
Python 3.10 or later required.
Verdict: Production-ready SDK (stable classification) with zero known vulnerabilities, active maintenance, and permissive MIT licensing. Broad Python version support (3.10–3.14) and low install friction make it suitable for immediate adoption in LLM integration projects.
Needs verification
- Whether httpx2 is a typo or intentional fork of httpx, and its maintenance status.
- Compatibility guarantees between mcp-types and mcp versions.
- Performance characteristics under high-concurrency server loads.
- Repository star count accuracy and its significance for project maturity.
Similar packages
permissive · top 1,000 on PyPI
fastmcppermissive · top 1,000 on PyPI
openai-agentspermissive · top 1,000 on PyPI
litellmpermissive · top 100 on PyPI
agent-client-protocolunclear · top 1,000 on PyPI
avpermissive · top 1,000 on PyPI
mlflow-skinnypermissive · top 1,000 on PyPI
claude-agent-sdkpermissive · top 1,000 on PyPI
strands-agentspermissive · top 1,000 on PyPI
opentelemetry-distropermissive · top 1,000 on PyPI