MCP Python SDK
Official Python SDK for building Model Context Protocol servers and clients.
Tags
Description
PyPI package mcp (2.3.0).
Related
- Model Context Protocol (MCP): Open protocol that standardizes how AI applications connect to external tools, data sources and prompts via MCP servers.
- MCP TypeScript SDK: Official TypeScript SDK for building MCP servers and clients on Node.js, Bun and Deno; v2 ships as @modelcontextprotocol/server and @modelcontextprotocol/client.
- FastMCP: The fast, Pythonic framework for building MCP servers, clients and interactive applications.
Guides & comparisons
- Test your MCP server with in-process tests and Inspector CI checks (Guide): Automated tests for a TypeScript MCP server: call tools in-process through the SDK's handler.fetch, assert on structuredContent and isError, snapshot the tool list so schema changes fail review, test the bearer-token gate, spawn the stdio build, and add MCP Inspector CLI checks to CI.
Sources
Machine-readable
- JSON
- Markdown
- Source file on GitHub (edit via pull request)