openclaw-mcp
OpenClaw MCP ๆๅกๅจ
๐ฆ ็จไบ OpenClaw AI ๅฉๆ้ๆ็ๆจกๅไธไธๆๅ่ฎฎ (MCP) ๆๅกๅจใ
ๆผ็คบ
Related MCP server: OpenClaw MCP Server
ๆๅปบๅ่กท
ๅฟ๏ผๆๅๅปบ่ฟไธช MCP ๆๅกๅจๆฏๅ ไธบๆไธๆณไป ไป ไพ่ตๆถๆฏๆธ ้ๆฅไธ OpenClaw ้ไฟกใ็ๆญฃ่ฎฉๆๅ ดๅฅ็ๆฏ่ฝๅคๅฐ OpenClaw ่ฟๆฅๅฐ Claude Web UIใๆฌ่ดจไธ๏ผๆ็่ๅคฉๅฏไปฅๅงๆดพไปปๅก็ปๆ็ Claw ๆบๅจไบบ๏ผ็ถๅ็ฑๅฎๅค็ๆๆๅ ถไปไบๆ โโๆฏๅฆๅฏๅจ Claude Code ๆฅไธบๆไฟฎๅค้ฎ้ขใ
ๆๅฎๆณ่ฑกๆไธไธช AI ๅฉๆๅจ็ผๆๅฆไธไธช AI ๅฉๆใๅพ้ ท๏ผๅฏนๅง๏ผ
ๅฟซ้ๅ ฅ้จ
Docker (ๆจ่)
้ขๆๅปบ็้ๅๅจๆฏๆฌกๅๅธๆถ้ฝไผๅๅธๅฐ GitHub ๅฎนๅจๆณจๅ่กจใ
docker pull ghcr.io/freema/openclaw-mcp:latestๅๅปบไธไธช docker-compose.yml๏ผ
services:
mcp-bridge:
image: ghcr.io/freema/openclaw-mcp:latest
container_name: openclaw-mcp
restart: unless-stopped
ports:
- "3000:3000"
environment:
- OPENCLAW_URL=http://host.docker.internal:18789
- OPENCLAW_GATEWAY_TOKEN=${OPENCLAW_GATEWAY_TOKEN}
- OPENCLAW_MODEL=openclaw
- AUTH_ENABLED=true
- MCP_CLIENT_ID=openclaw
- MCP_CLIENT_SECRET=${MCP_CLIENT_SECRET}
- MCP_ISSUER_URL=${MCP_ISSUER_URL:-}
- CORS_ORIGINS=https://claude.ai
extra_hosts:
- "host.docker.internal:host-gateway"
read_only: true
security_opt:
- no-new-privileges็ๆๅฏ้ฅๅนถๅฏๅจ๏ผ
export MCP_CLIENT_SECRET=$(openssl rand -hex 32)
export OPENCLAW_GATEWAY_TOKEN=your-gateway-token
docker compose up -d็ถๅๅจ Claude.ai ไธญๆทปๅ ไธไธช่ชๅฎไน MCP ่ฟๆฅๅจ๏ผๆๅๆจ็ๆๅกๅจ๏ผๅนถ่ฎพ็ฝฎ MCP_CLIENT_ID=openclaw ๅๆจ็ MCP_CLIENT_SECRETใ
ๆ็คบ๏ผ ๅจ็ไบง็ฏๅขไธญ๏ผ่ฏทๅบๅฎ็นๅฎ็ๆฌ่ไธๆฏไฝฟ็จ
latest๏ผghcr.io/freema/openclaw-mcp:1.1.0
ๆฌๅฐ (Claude Desktop)
npx openclaw-mcpๆทปๅ ๅฐๆจ็ Claude Desktop ้ ็ฝฎไธญ๏ผ
{
"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"
}
}
}
}่ฟ็จ (Claude.ai) ไธไฝฟ็จ Docker
AUTH_ENABLED=true MCP_CLIENT_ID=openclaw MCP_CLIENT_SECRET=your-secret \
MCP_ISSUER_URL=https://mcp.your-domain.com \
CORS_ORIGINS=https://claude.ai OPENCLAW_GATEWAY_TOKEN=your-gateway-token \
npx openclaw-mcp --transport sse --port 3000้่ฆ๏ผ ๅฝๅจๅๅไปฃ็๏ผCaddyใnginx ็ญ๏ผๅ้ข่ฟ่กๆถ๏ผๆจๅฟ ้กปๅฐ
MCP_ISSUER_URL๏ผๆ--issuer-url๏ผ่ฎพ็ฝฎไธบๆจ็ๅ ฌๅ ฑ HTTPS URLใๅฆๅ๏ผOAuth ๅ ๆฐๆฎๅฐๅนฟๆญhttp://localhost:3000๏ผๅฏผ่ดๅฎขๆท็ซฏๆ ๆณ่ฟ่ก่บซไปฝ้ช่ฏใ
่ฏฆๆ ่ฏทๅ้ ๅฎ่ฃ ๆๅใ
ๆถๆ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Your Server โ
โ โ
โ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ OpenClaw โ โ OpenClaw MCP โ โ
โ โ Gateway โโโโโโโบโ Bridge Server โ โ
โ โ :18789 โ โ :3000 โ โ
โ โ โ โ โ โ
โ โ OpenAI-compat โ โ - OAuth 2.1 auth โ โ
โ โ /v1/chat/... โ โ - CORS protection โ โ
โ โโโโโโโโโโโโโโโโโโโ โ - Input validation โ โ
โ โโโโโโโโโโโโฌโโโโโโโโโโโโโโโ โ
โ โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ HTTPS + OAuth 2.1
โผ
โโโโโโโโโโโโโโโโโโโ
โ Claude.ai โ
โ (MCP Client) โ
โโโโโโโโโโโโโโโโโโโๅฏ็จๅทฅๅ ท
ๅๆญฅๅทฅๅ ท
ๅทฅๅ ท | ๆ่ฟฐ |
| ๅ้ๆถๆฏ็ป OpenClaw ๅนถ่ทๅๅๅบ |
| ๆฃๆฅ OpenClaw ็ฝๅ ณๅฅๅบท็ถๅต |
| ๅๅบๆๆๅทฒ้ ็ฝฎ็ OpenClaw ๅฎไพ |
ๅผๆญฅๅทฅๅ ท (็จไบ้ฟๆถ้ด่ฟ่ก็ๆไฝ)
ๅทฅๅ ท | ๆ่ฟฐ |
| ๅ ๅ ฅๆถๆฏ้ๅ๏ผ็ซๅณ่ทๅ task_id |
| ๆฃๆฅไปปๅก่ฟๅบฆๅนถ่ทๅ็ปๆ |
| ๅๅบๆๆไปปๅกๅนถ่ฟ่ก่ฟๆปค |
| ๅๆถๆ่ตท็ไปปๅก |
ๅคๅฎไพๆจกๅผ
ไปๅไธช MCP ๆๅกๅจ็ผๆๅคไธช OpenClaw ็ฝๅ ณใไธไธชๆกฅๆข๏ผๅคไธช็ชๅญโโๅฐ่ฏทๆฑ่ทฏ็ฑๅฐ็ไบงใ้ขๅๅธใๅผๅ็ฏๅขๆไปปไฝๆจๅฝๅ็็ฏๅข๏ผlobster-supreme ๅ the-claw-abides ้ฝๆฏๅฎๅ จๆๆ็ๅ็งฐ๏ผใ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Claude.ai / Claude Desktop โ
โ (MCP Client) โ
โโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ OpenClaw MCP Bridge Server โ
โ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โ Instance โ โ Instance โ โ Instance โ โ
โ โ Registry โ โ Resolver โ โ Validator โ โ
โ โโโโโโโโฌโโโโโโโโ โโโโโโโโฌโโโโโโโโ โโโโโโโโฌโโโโโโโโ โ
โ โ โ โ โ
โ โโโโโโโโดโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโดโโโโโโโโ โ
โ โ Per-Instance OpenClaw Clients โ โ
โ โ (separate auth, timeout, URL per instance) โ โ
โ โโโโโโโโโโฌโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ โ
โผ โผ โผ
โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ
โ ๐ฆ prod โ โ ๐ฆ staging โ โ ๐ฆ dev โ
โ (default) โ โ โ โ โ
โ :18789 โ โ :18789 โ โ :18789 โ
โ OpenClaw GW โ โ OpenClaw GW โ โ OpenClaw GW โ
โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ่ฎพ็ฝฎ
OPENCLAW_INSTANCES='[
{"name": "prod", "url": "http://prod:18789", "token": "tok1", "default": true},
{"name": "staging", "url": "http://staging:18789", "token": "tok2"},
{"name": "dev", "url": "http://dev:18789", "token": "tok3"}
]'ไฝฟ็จๆนๆณ
ๆๆๅทฅๅ
ท้ฝๆฅๅไธไธชๅฏ้็ instance ๅๆฐๆฅๆๅฎ็ฎๆ ็ฝๅ
ณ๏ผ
# Chat with staging instance
openclaw_chat message="Deploy status?" instance="staging"
# Check health of prod
openclaw_status instance="prod"
# List all configured instances
openclaw_instances
# Async task targeting dev
openclaw_chat_async message="Run tests" instance="dev"ๅฝ็็ฅ instance ๆถ๏ผๅฐไฝฟ็จ้ป่ฎคๅฎไพใๆฏไธชๅฎไพ้ฝๆ่ชๅทฑ็่บซไปฝ้ช่ฏไปค็ใ่ถ
ๆถๆถ้ดๅ URLโโๅฎๅ
จ้็ฆปใ
ไธป่ฆๅ่ฝ
้ถ่ฟ็งปๅ็บง โ ็ฐๆ็ๅๅฎไพ้จ็ฝฒๆ ้ไปปไฝ้ ็ฝฎๆดๆนๅณๅฏๅทฅไฝ
ๅฎไพ็บง้็ฆป โ ็ฌ็ซ็่บซไปฝ้ช่ฏไปค็ใ่ถ ๆถๆถ้ดๅ URL
ๅจๆ่ทฏ็ฑ โ Claude ๆ นๆฎๆฏไธช่ฏทๆฑ้ๆฉๆญฃ็กฎ็ๅฎไพ
ไปปๅก่ท่ธช โ ๅผๆญฅไปปๅกไผ่ฎฐไฝๅฎไปฌ็็ฎๆ ๅฎไพ
ๅฎๅ จๆง โ ไปค็็ปไธไผ้่ฟ
openclaw_instancesๆด้ฒ
่ฏทๅ้ ้ ็ฝฎ โ ๅคๅฎไพๆจกๅผ ่ทๅๅฎๆดๅ่ใ
ๆๆกฃ
ๅฎ่ฃ โ Claude Desktop ๅ Claude.ai ็่ฎพ็ฝฎ
้ ็ฝฎ โ ็ฏๅขๅ้ๅ้้กน
้จ็ฝฒ โ Docker ๅ็ไบง็ฏๅข่ฎพ็ฝฎ
ๅจ่ๆจกๅ โ Claude ๅฏไปฅ/ไธๅฏไปฅ่งฆๅไปไนใไฟกไปป่พน็ๅๆปๅป้ข
ๆฅๅฟ่ฎฐๅฝ โ ่ฎฐๅฝไปไนใ่ฎฐๅฝๅจๅช้ไปฅๅ็ปไธ่ฎฐๅฝไปไน
ๅผๅ โ ่ดก็ฎๅๆทปๅ ๅทฅๅ ท
ๅฎๅ จ โ ๅฎๅ จ็ญ็ฅๅๆไฝณๅฎ่ทต
ๅฎๅ จ
โ ๏ธ ๅจ็ไบง็ฏๅขไธญๅกๅฟ ๅฏ็จ่บซไปฝ้ช่ฏ๏ผ
# Generate secure client secret
export MCP_CLIENT_SECRET=$(openssl rand -hex 32)
# Run with auth enabled
AUTH_ENABLED=true MCP_CLIENT_ID=openclaw MCP_CLIENT_SECRET=$MCP_CLIENT_SECRET \
openclaw-mcp --transport sse้ ็ฝฎ CORS ไปฅ้ๅถ่ฎฟ้ฎ๏ผ
CORS_ORIGINS=https://claude.ai,https://your-app.com่ฏทๅ้ ้ ็ฝฎ ่ทๅๆๆๅฎๅ จ้้กนใ
่ฆๆฑ
Node.js โฅ 20
่ฟ่กๅฏ็จไบ HTTP API ็ OpenClaw ็ฝๅ ณ๏ผ
// openclaw.json { "gateway": { "http": { "endpoints": { "chatCompletions": { "enabled": true } } } } }
่ฎธๅฏ่ฏ
MIT
ไฝ่
็ฑ Tomรกลก Grasl ๅๅปบ
็ธๅ ณ้กน็ฎ
OpenClaw โ ๆญค MCP ่ฟๆฅ็ AI ๅฉๆ
MCP ่ง่ โ ๆจกๅไธไธๆๅ่ฎฎๆๆกฃ
Available Tools
7 toolsopenclaw_chatC
Send a message to OpenClaw and get a response
Inputs: message (required), instance, session_id.
openclaw_chat_asyncA
Send a message to OpenClaw asynchronously. Returns a task_id immediately that can be polled for results. Use this for potentially long-running conversations.
Inputs: message (required), instance, priority, session_id.
openclaw_instancesA
List all configured OpenClaw instances. Shows instance names, URLs, and which is the default. Use instance names in other tools to target a specific OpenClaw gateway.
Inputs: no named parameters.
openclaw_statusB
Get OpenClaw gateway status and health information
Inputs: instance.
openclaw_task_cancelA
Cancel a pending task. Only works for tasks that haven't started yet.
Inputs: task_id (required).
openclaw_task_listA
List all tasks. Optionally filter by status, session, or instance.
Inputs: status, instance, session_id.
openclaw_task_statusB
Check the status of an async task. Returns status, and result if completed.
Inputs: task_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 7 tools
Most tools have distinct purposes, but openclaw_chat and openclaw_chat_async could be confused if an agent skims descriptions. The async variant is clearly labeled, so overall disambiguation is good but not perfect.
All tools use the consistent pattern 'openclaw_verb_noun' with snake_case. This makes it easy to predict tool names and understand their function.
Seven tools is ideal for an API gateway wrapper. Each tool covers a distinct operation without redundancy, and the scope is well-scoped for interacting with OpenClaw instances.
The set covers core operations: chat (sync/async), instance management, health status, and task management. Minor gap: no tool for listing sessions or conversation history, but the core workflows are complete.
Maintenance
Related MCP Connectors
MCP server for Argo RPG Platform โ connects AI assistants to campaign data via OAuth2
BeautySpark MCP server for ChatGPT, Claude and other MCP clients
Talk to your public-facing AI from any MCP client โ Claude, ChatGPT, Cursor, Cline, Windsurf.
Free MCP server for WordPress: Claude and ChatGPT connect with OAuth. No account, cap or API key.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that enables any AI agent to call Claude using your existing Max/Pro subscription via OAuth, avoiding additional API billing.11MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables Claude.ai and Claude Desktop to securely connect to self-hosted OpenClaw assistants through OAuth2-authenticated MCP, supporting chat, health checks, multi-instance routing, and asynchronous task management.250 npmMIT
- AlicenseNot gradedqualityAmaintenanceBridges Claude.ai and Claude Desktop to self-hosted OpenClaw AI assistants through an OAuth 2.1-secured HTTP endpoint. Enables sending chat messages, tracking long-running tasks, checking gateway health, and routing requests across multiple isolated instances from a single connection.250 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables secure OAuth 2.1 access from Claude.ai and Claude Desktop to self-hosted OpenClaw assistants, including chat, health checks, async task management, and multi-instance routing.250 npmMIT