-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Description
Initial Checks
- I confirm that I'm using the latest version of MCP Python SDK
- I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening this issue
Description
The Quickstart example code references MCPServer from mcp.server.mcpserver, but this class cannot be found, resulting in an import error.
Expected Behavior:
The MCPServer class should be available for import from mcp.server.mcpserver as shown in the Quickstart documentation.
Actual Behavior:
The IDE cannot locate the MCPServer class in the specified module, preventing the example from running.
Steps to Reproduce:
- Follow the Quickstart guide
- Copy the example code that imports
MCPServer - Attempt to run the code
- Observe the import error
Environment:
- Python version: 3.13.5
- MCP library version: 1.26.0
- IDE: PyCharm 2025.3.2
- OS: macOS
Example Code
from mcp.server.mcpserver import MCPServer
# Create an MCP server
mcp = MCPServer("Demo")Python & MCP Python SDK
- Python version: 3.13.5
- MCP library version: 1.26.0
Metadata
Metadata
Assignees
Labels
No labels