MCP Python SDK (Model Context Protocol)
MCP Python SDK: reference Python implementation of the Model Context Protocol (Anthropic-led). Two server surfaces (low-level Server / high-level MCPServer, formerly FastMCP), three transports (stdio / SSE / streamable-http), and three primitives (Tools / Resources / Prompts).
Overview
Constraints
Evidence Quality
High confidence — strong evidence base
1 non-negotiable constraints
WHENWhen following README quickstart code at commit 3d7b311 to build an MCP server
ACTIONtranslate every `from mcp.server.fastmcp import FastMCP` line (≥26 occurrences in README at lines 147, 231, 293, 324, 349, 419, 470, 572, 573, 600, 640, 665, 697, 830, 937, 974, 1017, 1211, 1255, 1297, 1410, 1457, 1504, 1565, 1602, 1623) to `from mcp.server.mcpserver import MCPServer` and instantiate `MCPServer(...)` instead of `FastMCP(...)`; `mcp.server.fastmcp` package no longer exists
CONSEQUENCECopy-pasting README import statements raises ModuleNotFoundError: No module named 'mcp.server.fastmcp' immediately at import time, blocking any further work on the server before a single line of business logic runs
FAQ
Discussion (0)
No comments yet. Be the first to share!
Changelog
v0.1.0: Initial release on Doramagic.ai. MCP reference implementation on modelcontextprotocol/python-sdk with bilingual metadata, 50 anti-pattern constraints, and 3 FAQs.
v0.1.0: Initial release on Doramagic.ai. MCP reference implementation on modelcontextprotocol/python-sdk with bilingual metadata, 50 anti-pattern constraints, and 3 FAQs.