Broken after mcp 2.0.0: ModuleNotFoundError: No module named 'mcp.server.fastmcp'
Summary
minimax-mcp (latest release 0.0.9, 2025-04-15) fails to start with ModuleNotFoundError: No module named 'mcp.server.fastmcp' after the upstream mcp package released version 2.0.0 on 2026-07-28.
Environment
- Package:
minimax-mcp==0.0.9(from PyPI) - Trigger:
mcp2.0.0 (released 2026-07-28) — the submodulemcp.server.fastmcpwas removed/renamed in 2.0.0 - Invocation:
uvx minimax-mcp(also reproduced withuvx --from git+https://github.com/MiniMax-AI/minimax-mcpagainst currentmain)
Reproduce
uvx minimax-mcp
Actual output
Traceback (most recent call last):
File ".../bin/minimax-mcp", line 6, in <module>
from minimax_mcp.server import main
File ".../site-packages/minimax_mcp/server.py", line 19, in <module>
from mcp.server.fastmcp import FastMCP
ModuleNotFoundError: No module named 'mcp.server.fastmcp'
Root cause
- In
minimax_mcp/server.pythe importfrom mcp.server.fastmcp import FastMCPreferences a module path that no longer exists inmcp>=2.0.0. - In
mcp>=1.6,<2, the module was available; inmcp==2.0.0it is gone. The replacement appears to bemcp.server.mcpserver(I confirmedimport mcp.server.mcpserverworks on 2.0.0, whilemcp.server.fastmcpdoes not). - Pinning
mcp<2viauvx --with "mcp<2" minimax-mcprestores normal startup (it then fails only becauseMINIMAX_API_KEYis unset in my test env, which is expected).
Suggested fix
Update the import in minimax_mcp/server.py (and any other affected modules) to the new location, e.g.:
from mcp.server.mcpserver import FastMCP
…and bump the mcp dependency range in pyproject.toml to allow >=1.6,<3 (or whatever new release you target). Please also add a CI matrix entry that runs against mcp==2.0.0 so this kind of breakage is caught at PR time instead of by downstream users.
Impact
Every user installing the package via uvx minimax-mcp (or the latest tag from Git) is affected, because uvx resolves the highest compatible mcp and now picks 2.0.0.
Re-confirming this on minimax-coding-plan-mcp (the coding-plan sibling, same minimax_mcp.server import — likely one release bus), recorded 5 days after this issue was filed with the workaround still needed.
Reproduction (uvx 0.10.7, mcp 2.0.0, macOS arm64, 2026-08-03):
$ uvx minimax-coding-plan-mcp
Installed 41 packages in 39ms
Traceback (most recent call last):
File ".../archive-v0/.../bin/minimax-coding-plan-mcp", line 6, in <module>
from minimax_mcp.server import main
File ".../minimax_mcp/server.py", line 17, in <module>
from mcp.server.fastmcp import FastMCP
ModuleNotFoundError: No module named 'mcp.server.fastmcp'
Same root cause ssm82 described: mcp>=2.0 removed/renamed mcp.server.fastmcp. The replacement symbol is in mcp.server.mcpserver.server (I imported it manually under mcp 2.0.0 to confirm) — from mcp.server.mcpserver import FastMCP works under 2.0.
Two extra bits I think ssm82's report missed:
-
pyproject.toml/setup.pypin no upper bound onmcp:Requires-Dist: mcp[cli]>=1.6.0That's why default
uvxresolution picked up 2.0 and immediately broke the released wheel — without a cap this will keep biting users until the import is updated. -
Workaround that works right now (verified handshake + tools/list succeed, serverInfo returned
name=Minimax version=1.29.0):uvx --from minimax-coding-plan-mcp --with "mcp<2" minimax-coding-plan-mcpOr pin the MCP server entry in
~/.claude.json:{ "command": "uvx", "args": ["--from", "minimax-coding-plan-mcp", "--with", "mcp<2", "minimax-coding-plan-mcp"], "env": { "MINIMAX_API_KEY": "...", "MINIMAX_API_HOST": "https://api.minimax.io" } }
Suggested fix path:
- Short term: add an upper bound to
mcp[cli]<2inpyproject.tomlso existing releases stop breaking on fresh installs. - Long term: bump import in
minimax_mcp/server.py:17tofrom mcp.server.mcpserver.server import FastMCP(or alias via try/except for both paths), then release.
Happy to open a PR if maintainers want — just point me at the right fork.