PluginBench
MCP Server

OpenClaw MCP Server MCP Server

io.github.freema/openclaw-mcp

What is the OpenClaw MCP Server MCP server?

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

How to install OpenClaw MCP Server

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • OPENCLAW_URL
    required

    URL of your OpenClaw gateway

  • OPENCLAW_GATEWAY_TOKEN
    required
    secret

    Bearer token for OpenClaw gateway authentication

  • OPENCLAW_MODEL

    Model name for chat completions (e.g. 'openclaw' or 'openclaw/<agentId>')

  • OPENCLAW_TIMEOUT_MS

    Request timeout in milliseconds

Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "openclaw-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "openclaw-mcp"
      ],
      "env": {
        "OPENCLAW_URL": "<YOUR_OPENCLAW_URL>",
        "OPENCLAW_GATEWAY_TOKEN": "<YOUR_OPENCLAW_GATEWAY_TOKEN>",
        "OPENCLAW_MODEL": "<YOUR_OPENCLAW_MODEL>",
        "OPENCLAW_TIMEOUT_MS": "<YOUR_OPENCLAW_TIMEOUT_MS>"
      }
    }
  }
}
Cursor
~/.cursor/mcp.json
{
  "mcpServers": {
    "openclaw-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "openclaw-mcp"
      ],
      "env": {
        "OPENCLAW_URL": "<YOUR_OPENCLAW_URL>",
        "OPENCLAW_GATEWAY_TOKEN": "<YOUR_OPENCLAW_GATEWAY_TOKEN>",
        "OPENCLAW_MODEL": "<YOUR_OPENCLAW_MODEL>",
        "OPENCLAW_TIMEOUT_MS": "<YOUR_OPENCLAW_TIMEOUT_MS>"
      }
    }
  }
}
Windsurf
~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "openclaw-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "openclaw-mcp"
      ],
      "env": {
        "OPENCLAW_URL": "<YOUR_OPENCLAW_URL>",
        "OPENCLAW_GATEWAY_TOKEN": "<YOUR_OPENCLAW_GATEWAY_TOKEN>",
        "OPENCLAW_MODEL": "<YOUR_OPENCLAW_MODEL>",
        "OPENCLAW_TIMEOUT_MS": "<YOUR_OPENCLAW_TIMEOUT_MS>"
      }
    }
  }
}
VS Code
.vscode/mcp.json
{
  "servers": {
    "openclaw-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "openclaw-mcp"
      ],
      "env": {
        "OPENCLAW_URL": "<YOUR_OPENCLAW_URL>",
        "OPENCLAW_GATEWAY_TOKEN": "<YOUR_OPENCLAW_GATEWAY_TOKEN>",
        "OPENCLAW_MODEL": "<YOUR_OPENCLAW_MODEL>",
        "OPENCLAW_TIMEOUT_MS": "<YOUR_OPENCLAW_TIMEOUT_MS>"
      }
    }
  }
}
Claude Code
claude mcp add openclaw-mcp --env OPENCLAW_URL=<YOUR_OPENCLAW_URL> --env OPENCLAW_GATEWAY_TOKEN=<YOUR_OPENCLAW_GATEWAY_TOKEN> --env OPENCLAW_MODEL=<YOUR_OPENCLAW_MODEL> --env OPENCLAW_TIMEOUT_MS=<YOUR_OPENCLAW_TIMEOUT_MS> -- npx -y openclaw-mcp

Related MCP servers

MCP server for Google Sheets API — read, write, format, batch operations.

View repository →