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
Add the server
claude mcp add clearrun --env CLEARRUN_API_KEY=YOUR_CLEARRUN_API_KEY -- npx -y @clearrun/mcpThe
--keeps-ywithnpx.Approve and check
Approve the server when Claude Code asks. Then run
/mcpand confirmclearrunis connected.Or use a project file
Put this in
.mcp.jsonat 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.