How to add ClearRun to Claude Code

Run claude mcp add clearrun --env CLEARRUN_API_KEY=YOUR_KEY -- npx -y @clearrun/mcp. Then run /mcp in Claude Code to check that clearrun is connected.

Last updated

Steps

  1. Add the server

    claude mcp add clearrun --env CLEARRUN_API_KEY=YOUR_CLEARRUN_API_KEY -- npx -y @clearrun/mcp

    The -- keeps -y with npx.

  2. Approve and check

    Approve the server when Claude Code asks. Then run /mcp and confirm clearrun is connected.

  3. Or use a project file

    Put this in .mcp.json at the repo root:

    {
      "mcpServers": {
        "clearrun": {
          "type": "stdio",
          "command": "npx",
          "args": ["-y", "@clearrun/mcp"],
          "env": {
            "CLEARRUN_API_KEY": "YOUR_CLEARRUN_API_KEY"
          }
        }
      }
    }

    If you commit .mcp.json, don't put the key in it. See How to keep your API key out of mcp.json.