OpenClaw MCP Server for VS Code
io.github.freema/openclaw-mcp
MCP server bridging Claude.ai/Desktop with self-hosted OpenClaw via OAuth 2.1.
client:VS Code
transport:stdio
runtime:npm
Install OpenClaw MCP Server in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "openclaw-url",
"description": "OPENCLAW_URL",
"password": true
},
{
"type": "promptString",
"id": "openclaw-gateway-token",
"description": "OPENCLAW_GATEWAY_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "openclaw-model",
"description": "OPENCLAW_MODEL",
"password": true
},
{
"type": "promptString",
"id": "openclaw-timeout-ms",
"description": "OPENCLAW_TIMEOUT_MS",
"password": true
}
],
"servers": {
"openclaw-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"openclaw-mcp"
],
"env": {
"OPENCLAW_URL": "${input:openclaw-url}",
"OPENCLAW_GATEWAY_TOKEN": "${input:openclaw-gateway-token}",
"OPENCLAW_MODEL": "${input:openclaw-model}",
"OPENCLAW_TIMEOUT_MS": "${input:openclaw-timeout-ms}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs