OpenClaw MCP Server
local MCP serverOpenClaw MCP Server is a local MCP server: MCP server bridging Claude.ai/Desktop with self-hosted OpenClaw via OAuth 2.1. Install it from npm as openclaw-mcp.
Installation
Terminal
claude mcp add openclaw-mcp -e OPENCLAW_URL=... -e OPENCLAW_GATEWAY_TOKEN=... -e OPENCLAW_MODEL=... -e OPENCLAW_TIMEOUT_MS=... -- npx -y openclaw-mcp
Run in your project folder. Add --scope user to use it everywhere.
Claude Desktop, Cursor & other clients
Add to claude_desktop_config.json or .cursor/mcp.json.
{
"mcpServers": {
"openclaw-mcp": {
"command": "npx",
"args": [
"-y",
"openclaw-mcp"
],
"env": {
"OPENCLAW_URL": "...",
"OPENCLAW_GATEWAY_TOKEN": "...",
"OPENCLAW_MODEL": "...",
"OPENCLAW_TIMEOUT_MS": "..."
}
}
}
}Fill in the environment variables with your own credentials.
What you need
- Runtime: Node.js 18+ (runs with npx) or Docker.
- MCP client: Claude Code, Codex, Antigravity, Claude Desktop, Cursor or any other client that speaks MCP over stdio.
- Environment variables:
OPENCLAW_URL,OPENCLAW_GATEWAY_TOKEN,OPENCLAW_MODEL,OPENCLAW_TIMEOUT_MS
Summary
MCP server bridging Claude.ai/Desktop with self-hosted OpenClaw via OAuth 2.1.
OpenClaw MCP Server vs similar servers
| Server | Stars | Type | API key | Runtime |
|---|---|---|---|---|
| OpenClaw MCP Server | 185 | Local | Yes | npm |
| Taskade MCP | 165 | Hosted | Yes | None |
| Remote Desktop Commander | 93 | Hosted | No | None |
| Claudebox | 22 | Local | No | oci |
| DataDoe MCP | 15 | Hosted | Yes | None |
Questions
It reads 4 environment variables: OPENCLAW_URL, OPENCLAW_GATEWAY_TOKEN, OPENCLAW_MODEL, OPENCLAW_TIMEOUT_MS. Set them in your MCP config before starting the server.
Node.js 18+ (runs with npx) or Docker, plus an MCP client such as Claude Code, Codex, Claude Desktop or Cursor.
OpenClaw MCP Server is a local MCP server distributed as the npm package openclaw-mcp.
Run: claude mcp add openclaw-mcp -e OPENCLAW_URL=... -e OPENCLAW_GATEWAY_TOKEN=... -e OPENCLAW_MODEL=... -e OPENCLAW_TIMEOUT_MS=... -- npx -y openclaw-mcp
Run: codex mcp add openclaw-mcp --env OPENCLAW_URL=... --env OPENCLAW_GATEWAY_TOKEN=... --env OPENCLAW_MODEL=... --env OPENCLAW_TIMEOUT_MS=... -- npx -y openclaw-mcp
Similar MCP servers
NameStars
- Taskade MCPio.github.taskade/mcp-server165
- Remote Desktop Commanderapp.desktopcommander/remote-desktop-commander93
- Claudeboxio.github.psyb0t/claudebox22
- DataDoe MCPcom.datadoe/amazon-seller-mcp15
- kaneoio.github.usekaneo/kaneo9,252
- agent-deviceio.github.callstack/agent-device4,793
- DBHubio.github.bytebase/dbhub3,574
- RevoGrid DataGrid MCP Proio.github.revolist/revogrid-mcp-pro3,446