Skip to content
Cursor

OpenClaw MCP Server for Cursor

io.github.freema/openclaw-mcp

MCP server bridging Claude.ai/Desktop with self-hosted OpenClaw via OAuth 2.1.

client:Cursor transport:stdio runtime:npm

Install OpenClaw MCP Server in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "openclaw-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "openclaw-mcp"
      ],
      "env": {
        "OPENCLAW_URL": "<OPENCLAW_URL>",
        "OPENCLAW_GATEWAY_TOKEN": "<OPENCLAW_GATEWAY_TOKEN>",
        "OPENCLAW_MODEL": "<OPENCLAW_MODEL>",
        "OPENCLAW_TIMEOUT_MS": "<OPENCLAW_TIMEOUT_MS>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

OpenClaw MCP Server in other clients