MCP Server Studio

OpenClaw MCP Server MCP server

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

Registry name: io.github.freema/openclaw-mcp

Publisher
freema
Runs
Runs locally
Package
npm, Docker
Version
2.0.0
Category
AI & agents
Updated
2026-11-23

Source code on GitHub

Set up OpenClaw MCP Server (run locally)

Claude Desktop

Add to claude_desktop_config.json:

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

Claude Code

Run in your terminal:

claude mcp add openclaw-mcp -e OPENCLAW_URL='<OPENCLAW_URL>' -e OPENCLAW_GATEWAY_TOKEN='<OPENCLAW_GATEWAY_TOKEN>' -e OPENCLAW_MODEL='<OPENCLAW_MODEL>' -e OPENCLAW_TIMEOUT_MS='<OPENCLAW_TIMEOUT_MS>' -- npx -y [email protected]

Cursor

Add to .cursor/mcp.json:

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

VS Code

Add to .vscode/mcp.json:

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

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

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

Settings

NameRequiredWhat it is
OPENCLAW_URLYesURL of your OpenClaw gateway
OPENCLAW_GATEWAY_TOKENYesBearer token for OpenClaw gateway authentication
OPENCLAW_MODELNoModel name for chat completions (e.g. 'openclaw' or 'openclaw/<agentId>')
OPENCLAW_TIMEOUT_MSNoGateway request timeout in milliseconds (idle timeout for streamed async tasks)
OPENCLAW_URLYesURL of your OpenClaw gateway
OPENCLAW_GATEWAY_TOKENYesBearer token for OpenClaw gateway authentication
OPENCLAW_MODELNoModel name for chat completions

More ai & agents MCP servers