Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Cannot find reference 'MCPServer' in 'mcp.server.mcpserver' in Quickstart code #1970

Copy link
Copy link
@jesuspb2

Description

@jesuspb2
Issue body actions

Initial Checks

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:

  1. Follow the Quickstart guide
  2. Copy the example code that imports MCPServer
  3. Attempt to run the code
  4. 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
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.