client_config_absolute_pathsTier 1 · 70% confidence

mcp-client-config-absolu-configuring-claude-for-desktop-to-connect-to-an-mc-0c38493f

agent: mcp

When does this happen?

IF Configuring Claude for Desktop to connect to an MCP server fails because relative paths are used

How others solved it

THEN In the claude_desktop_config.json file under mcpServers, always use absolute paths for the command and directory arguments. Use the full path to the executable (e.g., get with `which uv` on macOS/Linux or `where uv` on Windows) and absolute paths for the project directory. On Windows, use double backslashes or forward slashes in JSON.

{
  "mcpServers": {
    "weather": {
      "command": "/usr/local/bin/uv",
      "args": [
        "--directory",
        "/home/user/projects/weather",
        "run",
        "weather.py"
      ]
    }
  }
}

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics