
OpenClaw MCP Server
io.github.freema由 GitHub 帳號 freema 發布v1.8.1更新於 Nov 7, 2026
MCP server bridging Claude.ai/Desktop with self-hosted OpenClaw via OAuth 2.1.
發布方自己的服務:OpenClaw Direct
概覽
將 Claude 用戶端連接到自架的 OpenClaw AI 助理,讓助理能向 OpenClaw 代理送出訊息並追蹤長時間執行的任務。
- 可以做什麼
- 向 OpenClaw 代理送出訊息並取得回覆,或以非同步方式排入佇列,再透過輪詢、列出、取消來管理任務
- 檢查閘道健康狀態並列出已設定的 OpenClaw 執行個體
- 依每次呼叫把請求導向多個具名 OpenClaw 閘道(例如 prod、staging、dev)之一
- 可作為 Claude Desktop 的本機 stdio 程序執行,也可作為搭配 OAuth 2.1 的 HTTP 橋接服務供 Claude.ai 使用
- 適用情境
- 當你自架 OpenClaw 助理,想讓 Claude Desktop 或 Claude.ai 把工作委派給它時使用,包括以非同步任務處理長時間作業,或用單一連接器存取多個 OpenClaw 閘道。
- 執行需求
- 需要 Node.js 20 以上版本,或使用已發佈的 Docker 映像。需要可連線且已啟用 HTTP chat-completions 端點的 OpenClaw 閘道,以及 OPENCLAW_URL 與 OPENCLAW_GATEWAY_TOKEN bearer 權杖。HTTP 模式需要 MCP_CLIENT_ID 與 MCP_CLIENT_SECRET,放在反向代理後方時還需 MCP_ISSUER_URL 與 TRUST_PROXY。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 OpenClaw MCP Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
OpenClaw MCP Server
[npm version] [CI] [License: MIT] [GHCR] [Website]
[圖片]🦞 Model Context Protocol (MCP) server for OpenClaw AI assistant integration.
Demo
Why I Built This
Hey! I created this MCP server because I didn't want to rely solely on messaging channels to communicate with OpenClaw. What really excites me is the ability to connect OpenClaw to the Claude web UI. Essentially, my chat can delegate tasks to my Claw bot, which then handles everything else — like spinning up Claude Code to fix issues for me.
Think of it as an AI assistant orchestrating another AI assistant. Pretty cool, right?
Quick Start
Docker (Recommended)
Pre-built images are published to GitHub Container Registry on every release.
Create a docker-compose.yml:
The port is published on 127.0.0.1 only: the bridge speaks plain HTTP and is
meant to sit behind a TLS-terminating reverse proxy on the same host (see
Deployment).
Generate secrets and start:
Then in Claude.ai add a custom MCP connector pointing to https://your-domain.com/mcp with MCP_CLIENT_ID=openclaw and your MCP_CLIENT_SECRET.
Important: The connector URL must end with
/mcp— that's the Streamable HTTP endpoint. A bare domain (https://your-domain.com) hits the server root and returns 404 after OAuth completes.
Tip: Pin a specific version instead of
latestfor production:ghcr.io/freema/openclaw-mcp:1.8.1
Use a least-privilege agent. Set
OPENCLAW_AGENT_IDto a dedicated OpenClaw agent that only has the tools you want Claude to reach — not your main agent with shell access. See Security.
Local (Claude Desktop)
Add to your Claude Desktop config:
Remote (Claude.ai) without Docker
Important: When running behind a reverse proxy (Caddy, nginx, Traefik, Cloudflare Tunnel, etc.) you must set:
MCP_ISSUER_URL(or--issuer-url) to your public HTTPS URL — otherwise OAuth metadata advertiseshttp://localhost:3000and clients fail to authenticate.TRUST_PROXY=1(or--trust-proxy 1) — otherwiseexpress-rate-limitrejects the proxy'sX-Forwarded-Forheader and/tokencrashes withERR_ERL_UNEXPECTED_X_FORWARDED_FOR.
Recommended: Set
MCP_REDIRECT_URIS=https://claude.ai/api/mcp/auth_callback,https://claude.com/api/mcp/auth_callbackso authorization codes can only be delivered to Claude's callbacks. Note the exact/api/mcp/auth_callbackpath — matching is exact, and getting it wrong fails OAuth withUnregistered redirect_uri(see Troubleshooting).
See Installation Guide for details.
Architecture
Available Tools
Sync Tools
Async Tools (for long-running operations)
Tasks belong to whoever created them. In HTTP mode that is the authenticated
OAuth client, so a client can poll its tasks from a new MCP session, and
another client's task_id reads as "not found" even if it is known. Without
an authenticated client (stdio) tasks are scoped to the connection.
Multi-Instance Mode
Orchestrate multiple OpenClaw gateways from a single MCP server. One bridge, many claws — route requests to prod, staging, dev, or whatever you name them (lobster-supreme and the-claw-abides are perfectly valid names).
Setup
Usage
All tools accept an optional instance parameter to target a specific gateway:
When instance is omitted, the default instance is used. Each instance has its own auth token, timeout, and URL — fully isolated.
Key Features
- Zero-migration upgrade — existing single-instance deployments work without any config change
- Per-instance isolation — separate auth tokens, timeouts, and URLs
- Dynamic routing — Claude picks the right instance per request
- Task tracking — async tasks remember which instance they target
- Security — tokens are never exposed via
openclaw_instances
See Configuration — Multi-Instance Mode for the full reference.
Documentation
- Installation — Setup for Claude Desktop & Claude.ai
- Configuration — Environment variables & options
- Deployment — Docker & production setup
- Threat Model — What Claude can/can't trigger, trust boundaries & attack surfaces
- Logging — What gets logged, where, and what is never logged
- Development — Contributing & adding tools
- Security — Security policy & best practices
Security
⚠️ Always enable authentication in production!
CORS is disabled unless you opt in. Set CORS_ORIGINS only when a browser
client needs to reach the server directly:
See Configuration for all security options.
Give the bridge a least-privilege agent
The bridge passes text to an OpenClaw agent and cannot judge what that text
makes the agent do. Anything Claude reads — a web page, an email, a document —
can end up in an openclaw_chat call, so prompt injection into an agent that
can run shell commands is the biggest real-world risk of this setup, and OAuth
does not help against it. Do not point the bridge at your main agent: create a
dedicated OpenClaw agent with only the tools it needs, sandboxed, and select it
with OPENCLAW_AGENT_ID. Details in SECURITY.md
and the Threat Model.
Upgrading to 1.8.1
A security and maintenance release; no configuration changes are required.
docker-compose.ymlnow publishes the port on127.0.0.1only. If you use the compose file from this repository and reach port 3000 directly from another machine (no reverse proxy on the same host), it stops being reachable after you update the file. Put a reverse proxy in front, or setBIND_ADDRESS=0.0.0.0to restore the old binding. A compose file you maintain yourself, anddocker run, are not affected. The compose file also drops all Linux capabilities (cap_drop: [ALL]).- MCP SDK 1.32.2 with its security fixes; the Docker image runs on Node.js 24. The npm package still supports Node.js ≥ 20.
- Request bodies on
/mcpand/messagesare limited to 4 MiB and parsed only after authentication. Long non-ASCII messages that used to fail with413under the old implicit 100 kB limit now work; JSON-RPC batches are capped at 100 messages by the SDK.
See the changelog for the full list.
Upgrading to 1.8.0
OAuth is now mandatory for the HTTP transport. Before 1.8.0 HTTP mode ran
without authentication unless AUTH_ENABLED=true was set, so a bare
docker run of the image exposed every tool to anyone who could reach the
port. Now:
- Without
MCP_CLIENT_IDandMCP_CLIENT_SECRETthe server refuses to start.AUTH_ENABLED=truestill works but is no longer needed. AUTH_ENABLED=false/--no-authrefuses to start instead of silently disabling auth. If you really need an unauthenticated server (e.g. a proxy in front already authenticates every request), setMCP_DANGEROUSLY_DISABLE_AUTH=true(--dangerously-disable-auth).- stdio is unchanged.
Async tasks now belong to the OAuth client, not the MCP connection. A client that opens a new MCP session between tool calls can poll the tasks it created (#44). The bridge is single-tenant — whoever holds the client secret already has full access to the same OpenClaw gateway — so the OAuth client is the isolation boundary. Dynamically registered clients each get their own namespace. Without auth, tasks stay scoped to the connection.
New ALLOWED_HOSTS for a loopback bind behind a reverse proxy that
preserves the public Host header (Tailscale Serve, nginx with
proxy_set_header Host $host), which previously failed with 403 Invalid Host
(#41). See
configuration.
Upgrading to 1.7.0
Two defaults changed for security. Both only affect HTTP mode; stdio is unchanged.
- CORS is now off by default. Previously an unset
CORS_ORIGINSsentAccess-Control-Allow-Origin: *. If a browser client depends on that, set the origins explicitly (CORS_ORIGINS=https://your-app.com), orCORS_ORIGINS=*to restore the old behaviour. - Async tasks are scoped to the connection that created them. A client
that used to poll a
task_idqueued by a different connection will now get "not found". (1.8.0 relaxes this to the authenticated OAuth client.)
Migrating from SSE to HTTP transport
Starting with v1.5.0, the primary transport is Streamable HTTP (--transport http). The legacy SSE transport (--transport sse) is deprecated but still works for backward compatibility.
What changed
Migration steps
-
CLI / Docker: Replace
--transport ssewith--transport http -
Claude.ai connector URL: No change needed — Claude.ai already uses
/mcp(Streamable HTTP) -
Legacy clients: The
/sseand/messagesendpoints still work. A deprecation warning is logged on each SSE connection. -
Dockerfile ENTRYPOINT: Updated automatically if using the official Docker image
Note:
--transport ssewill continue to work as a deprecated alias. Both transports are served simultaneously regardless of which flag you use.
Requirements
- Node.js ≥ 20
- OpenClaw gateway running with HTTP API enabled:
License
MIT
Author
Created by Tomáš Grasl
Related Projects
- OpenClaw — The AI assistant this MCP connects to
- MCP Specification — Model Context Protocol docs
來源:README.md,提交 95eba1b
工具
0版本歷史
3- v1.8.1最新Nov 7, 2026
- v1.8.0Oct 25, 2026
- v1.7.0Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Openclaw 整合
OpenClaw Direct
direct.openclaw官方發布者
一個遠端 MCP 端點,讓助理用自然語言部署、監控與管理 OpenClaw AI 助理。

OpenClaw MCP Ecosystem
由 GitHub 帳號 yedanyagamiai-cmd 發布
一個部署在 Cloudflare Workers 上的遠端端點,宣稱捆綁九個 MCP 伺服器,涵蓋安全掃描、知識圖譜、合規、金融、記憶、分析等。

Openclaw Upgrade Orchestrator Mcp
由 GitHub 帳號 temurkhan13 發布
一個本機 MCP 伺服器,用於 AI 執行環境升級安全,透過快照比對與指紋偵測供應商端的回歸問題。

Openclaw Skill Vetter Mcp
由 GitHub 帳號 temurkhan13 發布
一個本機 MCP 伺服器,讓助理審查第三方 AI 代理擴充套件,以及 AGENTS.md、.cursor/rules、CLAUDE.md 等代理設定檔。

Openclaw Output Vetter Mcp
由 GitHub 帳號 temurkhan13 發布
本機 MCP 伺服器,用來核對 AI 代理的說法是否屬實,提供內嵌依據檢查、例外被吞掉偵測與對話紀錄審查。