Skip to content

Broken after mcp 2.0.0: ModuleNotFoundError: No module named 'mcp.server.fastmcp' #101

Description

@ssm82

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: mcp 2.0.0 (released 2026-07-28) — the submodule mcp.server.fastmcp was removed/renamed in 2.0.0
  • Invocation: uvx minimax-mcp (also reproduced with uvx --from git+https://github.com/MiniMax-AI/minimax-mcp against current main)

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.py the import from mcp.server.fastmcp import FastMCP references a module path that no longer exists in mcp>=2.0.0.
  • In mcp>=1.6,<2, the module was available; in mcp==2.0.0 it is gone. The replacement appears to be mcp.server.mcpserver (I confirmed import mcp.server.mcpserver works on 2.0.0, while mcp.server.fastmcp does not).
  • Pinning mcp<2 via uvx --with "mcp<2" minimax-mcp restores normal startup (it then fails only because MINIMAX_API_KEY is 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions