MCP Python SDK

Official Python SDK published as `mcp` on PyPI. Includes the FastMCP high-level framework with decorators for tools, resources, and prompts; low-level server primitives for production; client SDK; OAuth 2.1 resource-server support; and stdio, SSE, and Streamable HTTP transports. Structured output is validated through Pydantic.

API entry from apis.yml

apis.yml Raw ↑
name: MCP Python SDK
description: Official Python SDK published as `mcp` on PyPI. Includes the FastMCP high-level framework
  with decorators for tools, resources, and prompts; low-level server primitives for production; client
  SDK; OAuth 2.1 resource-server support; and stdio, SSE, and Streamable HTTP transports. Structured output
  is validated through Pydantic.
humanURL: https://github.com/modelcontextprotocol/python-sdk
tags:
- SDK
- Python
- FastMCP
properties:
- type: GitHubRepository
  url: https://github.com/modelcontextprotocol/python-sdk
- type: SDK
  url: https://pypi.org/project/mcp/