Best for
- Users who want to integrate self-hosted OpenClaw with Claude.
- Users managing multiple OpenClaw instances from a unified interface.
The server provides seamless integration with OpenClaw, supporting both sync and async tasks and multi-instance. Security is emphasized with OAuth and CORS controls. Deployment requires careful configuration.
The OpenClaw MCP server is a secure bridge connecting Claude.ai or Claude Desktop to a self-hosted OpenClaw assistant via OAuth 2.1 authentication. It allows Claude to delegate tasks to OpenClaw instances, supporting both synchronous and asynchronous operations. The server supports multi-instance mode for orchestrating multiple OpenClaw gateways from a single MCP server.
For Claude Desktop (local): run npx openclaw-mcp, then add the binary configuration to claude_desktop_config.json with environment variables. For Claude.ai (remote): use Docker or CLI with HTTP transport, enable authentication, and configure OAuth redirect URIs.
{
"mcpServers": {
"openclaw": {
"command": "npx",
"args": [
"openclaw-mcp"
],
"env": {
"OPENCLAW_URL": "http://127.0.0.1:18789",
"OPENCLAW_GATEWAY_TOKEN": "your-gateway-token",
"OPENCLAW_MODEL": "openclaw",
"OPENCLAW_TIMEOUT_MS": "300000"
}
}
}
}