Skip to content

Could not Connect to MCP server weather #1286

Closed as not planned
Closed as not planned
@agarwalsourabh55

Description

@agarwalsourabh55

Hi,

I'm using Windows as my operating system and running WSL within Visual Studio as my coding environment. I'm currently working through the basic "example server" tutorial from the MCP documentation (https://modelcontextprotocol.io/quickstart/server), but the MCP server doesn't seem to start when using the Claude Desktop app.

I've followed all the steps in the guide, and while the tools are accessible through the latest Interpreter tool, the server still isn’t spawning. I'm attaching the config file for reference.

{
    "mcpServers": {
        "weather": {
            "command": "/home/sourabh/.local/bin/uv",
            "args": [
                "--directory",
                "/Users/Sourabh/Downloads/mcpnew/weather",
                "run",
                "weather.py"
            ]
        }
    }

2025-04-05T20:35:33.613Z [weather] [info] Initializing server... 2025-04-05T20:35:33.634Z [weather] [error] spawn /home/sourabh/.local/bin/uv ENOENT {"context":"connection","stack":"Error: spawn /home/sourabh/.local/bin/uv ENOENT\n at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n at onErrorNT (node:internal/child_process:483:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)"} 2025-04-05T20:35:33.635Z [weather] [error] spawn /home/sourabh/.local/bin/uv ENOENT {"stack":"Error: spawn /home/sourabh/.local/bin/uv ENOENT\n at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n at onErrorNT (node:internal/child_process:483:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)"} 2025-04-05T20:35:33.639Z [weather] [info] Server transport closed 2025-04-05T20:35:33.639Z [weather] [info] Client transport closed 2025-04-05T20:35:33.640Z [weather] [info] Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e. console.error('...')in JavaScript,print('...', file=sys.stderr)in python) and it will appear in this log. 2025-04-05T20:35:33.640Z [weather] [error] Server disconnected. For troubleshooting guidance, please visit our [debugging documentation](https://modelcontextprotocol.io/docs/tools/debugging) {"context":"connection"}

above are the logs from the Claude Desktop MCP Server.

I tried different combination of path, tried relative path as well(although it is not recommended) its still getting stucked.

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