openclaw-mcp
OpenClaw MCPใตใผใใผ
๐ฆ OpenClaw AIใขใทในใฟใณใ็ตฑๅใฎใใใฎModel Context Protocol (MCP) ใตใผใใผใงใใ
ใใข
Related MCP server: OpenClaw MCP Server
้็บใฎๅๆฉ
ใใใซใกใฏ๏ผ็งใใใฎMCPใตใผใใผใไฝๆใใใฎใฏใOpenClawใจ้ไฟกใใใใใซใกใใปใผใธใณใฐใใฃใใซใ ใใซ้ ผใใใใชใใฃใใใใงใใ็งใ็นใซใฏใฏใฏใฏใใฆใใใฎใฏใOpenClawใClaudeใฎWeb UIใซๆฅ็ถใงใใใจใใ็นใงใใๆฌ่ณช็ใซใ็งใฎใใฃใใใใClawใใใใซใฟในใฏใๅงไปปใใใใใใๆฎใใฎใในใฆ๏ผไพใใฐใClaude Codeใ่ตทๅใใฆๅ้กใไฟฎๆญฃใใใใชใฉ๏ผใๅฆ็ใงใใใใใซใชใใพใใ
AIใขใทในใฟใณใใๅฅใฎAIใขใทในใฟใณใใๆๆฎใใฆใใใจ่ใใฆใใ ใใใใจใฆใใฏใผใซใ ใจๆใใพใใใ๏ผ
ใฏใคใใฏในใฟใผใ
Docker๏ผๆจๅฅจ๏ผ
ใใซใๆธใฟใฎใคใกใผใธใใใชใชใผในใใจใซGitHub Container Registryใซๅ ฌ้ใใใฆใใพใใ
docker pull ghcr.io/freema/openclaw-mcp:latestdocker-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-mcpClaude 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ใคใณในใฟใณในใไธ่ฆง่กจ็คบใใ |
้ๅๆใใผใซ๏ผ้ทๆ้ๅฎ่กๆไฝ็จ๏ผ
ใใผใซ | ่ชฌๆ |
| ใกใใปใผใธใใญใฅใผใซๅ
ฅใใๅณๅบงใซ |
| ใฟในใฏใฎ้ฒๆใ็ขบ่ชใใ็ตๆใๅๅพใใ |
| ใใฃใซใฟใชใณใฐไปใใงๅ จใฟในใฏใไธ่ฆง่กจ็คบใใ |
| ไฟ็ไธญใฎใฟในใฏใใญใฃใณใปใซใใ |
ใใซใใคใณในใฟใณในใขใผใ
ๅไธใฎMCPใตใผใใผใใ่คๆฐใฎOpenClawใฒใผใใฆใงใคใใชใผใฑในใใฌใผใทใงใณใใพใใ1ใคใฎใใชใใธใงๅคใใฎClawใ็ฎก็ใใๆฌ็ช็ฐๅขใในใใผใธใณใฐใ้็บ็ฐๅขใชใฉใๅๅใไปใใ็ฐๅขใธใชใฏใจในใใใซใผใใฃใณใฐใงใใพใ๏ผ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
้ข้ฃใใญใธใงใฏใ
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