Does mcpdoc work with the mcp 2.x SDK?
No: mcpdoc 0.0.10 failed at startup with the mcp 2.x Python SDK in our 2026-11-12 UTC retest, with No module named 'mcp.server.fastmcp' (SDK 2.x retest results). With mcp<2 pinned, the same version started and listed 2 tools, so the break is the SDK change, not the package itself. This is the result from that test date; a newer release may already pin or fix it.
Tested 2026-11-12 UTC
Evidence
- Error with mcp 2.x (verbatim excerpt) (2026-11-12 UTC):
initialize: eof | stderr: ModuleNotFoundError: No module named 'mcp.server.fastmcp'. This is mcp 2.x, where FastMCP was renamed to MCPServer (from mcp.server.mcpserver import MCPServer) and other APIs changed; see the migration guide at https://py.sdk.modelcontextpr - Version tested (2026-11-12 UTC):
mcpdoc0.0.10 (PyPI) - Retest with mcp<2 pinned (2026-11-12 UTC):
uvx --python 3.12 --with mcp<2 --from mcpdoc==0.0.10 mcpdoc --urls LocalDocs:<temp dir>/sdk2pin/llms.txt: starts, 2 tools listed (needs `--urls`) - PyPI downloads, last 30 days (as of the retest list) (2026-11-12 UTC): 12,170
Related
mcp Python SDK 2.x errors · MCP troubleshooting · All answers