
OpenClaw MCP Server
by freemaio.github.freema/openclaw-mcpv1.7.0
MCP server bridging Claude.ai/Desktop with self-hosted OpenClaw via OAuth 2.1.
context tax
queued
security
queued
cold start
queued
freshness
Active21d ago
Install OpenClaw MCP server
Install in Claude Code
claude mcp add openclaw -e OPENCLAW_URL=http://127.0.0.1:18789 -e OPENCLAW_GATEWAY_TOKEN='<openclaw-gateway-token>' -- npx -y openclaw-mcpInstall in Cursor
{
"mcpServers": {
"openclaw": {
"command": "npx",
"args": [
"-y",
"openclaw-mcp"
],
"env": {
"OPENCLAW_URL": "http://127.0.0.1:18789",
"OPENCLAW_GATEWAY_TOKEN": "<openclaw-gateway-token>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"openclaw": {
"command": "npx",
"args": [
"-y",
"openclaw-mcp"
],
"env": {
"OPENCLAW_URL": "http://127.0.0.1:18789",
"OPENCLAW_GATEWAY_TOKEN": "<openclaw-gateway-token>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"openclaw": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"openclaw-mcp"
],
"env": {
"OPENCLAW_URL": "http://127.0.0.1:18789",
"OPENCLAW_GATEWAY_TOKEN": "<openclaw-gateway-token>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"openclaw": {
"command": "npx",
"args": [
"-y",
"openclaw-mcp"
],
"env": {
"OPENCLAW_URL": "http://127.0.0.1:18789",
"OPENCLAW_GATEWAY_TOKEN": "<openclaw-gateway-token>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| OPENCLAW_URL | yes | — | URL of your OpenClaw gateway |
| OPENCLAW_GATEWAY_TOKEN | yes | yes | 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 |
Freshness
Active — last maintenance signal 21d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-09-19 · 21d ago · GitHub
Latest release
2026-07-26 · 3mo ago · GitHub · 1.7.0
Package published
no data · npm/PyPI
Registry entry updated
2026-07-26 · 3mo ago · official registry · v1.7.0
FAQ
›How do I install the OpenClaw MCP server in Claude Code?
Run: claude mcp add openclaw -e OPENCLAW_URL=http://127.0.0.1:18789 -e OPENCLAW_GATEWAY_TOKEN='<openclaw-gateway-token>' -- npx -y openclaw-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does OpenClaw require an API key?
Yes. It expects OPENCLAW_URL, OPENCLAW_GATEWAY_TOKEN, of which 1 is a secret.
›Can I use OpenClaw as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is OpenClaw in the official MCP registry?
Yes, as io.github.freema/openclaw-mcp.
Alternatives to OpenClaw
Other ai & llm tools MCP servers.