Skip to content

MCP Python client fails to load the serverΒ #291

@rchaganti

Description

@rchaganti

Describe the bug
I am following the documentation that shows building a Python client. I already have a sample server that works well with Claude Desktop. This server sample is https://github.com/rchaganti/azure-mcp-server. However, when I try to run the client using uv run client.py C:\\GitHub\\azure-mcp-server\\src\\azure_mcp_server\\server.py, it fails with a message:

Traceback (most recent call last):
File "C:\GitHub\azure-mcp-server\src\azure_mcp_server\server.py", line 3, in
from mcp.server.models import InitializationOptions
ModuleNotFoundError: No module named 'mcp'

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://modelcontextprotocol.io/quickstart/client
  2. Follow the procedure to create an MCP client locally
  3. Download the Azure MCP Server sample from https://github.com/rchaganti/azure-mcp-server
  4. Run the client, uv run client.py C:\\GitHub\\azure-mcp-server\\src\\azure_mcp_server\\server.py

Expected behavior
Client starts and a chatbot starts with a query prompt.

Desktop:

  • OS: Windows 11
  • Browser Edge

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