
Freema/OpenClaw-MCP 是从 https://github.com/freema/openclaw-mcp. 导入的 MCP 服务器候选服务器。
概览
Freema/OpenClaw-MCP 是从 https://github.com/freema/openclaw-mcp. 导入的 MCP 服务器候选服务器。
概述(AI 翻译)
🦞 用于OpenClaw AI助手集成的模型上下文协议(MCP)服务器。
演示
我为什么要建造这个
你好!我创建这个MCP服务器是因为我不想仅仅依赖消息渠道与OpenClaw沟通。真正让我兴奋的是能够将OpenClaw连接到Claude网页界面。基本上,我的聊天可以将任务委派给我的Claw机器人,机器人再处理其他所有事务——比如启动Claude代码帮我解决问题。
可以把它想象成一个AI助手在指挥另一个AI助手。挺酷的,对吧?
快速启动
Docker (推荐)
预构建的镜像会在每个版本中发布到 GitHub 容器注册表。
创建一个docker-compose.yml:
生成秘密并开始:
然后在 Claude.ai 中添加一个自定义MCP连接器,指向https://your-domain.com/mcp,MCP_CLIENT_ID=openclaw和你的MCP_CLIENT_SECRET。
重要: 连接器 URL ** 必须以
/mcp** 结尾——这是可流式 HTTP 端点。裸域(https://your-domain.com)会访问服务器根,并在 OAuth 完成后返回 404。
提示: 固定特定版本,而不是
latest用于生产:ghcr.io/freema/openclaw-mcp:1.1.0
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
OpenClaw MCP Server
🦞 Model Context Protocol (MCP) server for OpenClaw AI assistant integration.
2.0 is here: MCP SDK v2, stateless Streamable HTTP, MCP specification 2026-07-28, streamed async tasks. Coming from 1.x? Read Upgrading to 2.0.0 — the legacy SSE transport is gone and async tasks behave differently. To stay on 1.x for now, pin
[email protected]/ghcr.io/freema/openclaw-mcp:1.8.1. Do not run 2.0.0-beta.1: it has known vulnerabilities, see Upgrading from 2.0.0-beta.1.
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.
docker pull ghcr.io/freema/openclaw-mcp:latest
Create a docker-compose.yml:
services:
mcp-bridge:
image: ghcr.io/freema/openclaw-mcp:latest
container_name: openclaw-mcp
restart: unless-stopped
ports:
- "127.0.0.1:3000:3000" # loopback only, reached through your reverse proxy
environment:
- OPENCLAW_URL=http://host.docker.internal:18789
- OPENCLAW_GATEWAY_TOKEN=${OPENCLAW_GATEWAY_TOKEN}
- OPENCLAW_AGENT_ID=${OPENCLAW_AGENT_ID:-}
- OPENCLAW_MODEL=openclaw
- MCP_CLIENT_ID=openclaw
- MCP_CLIENT_SECRET=${MCP_CLIENT_SECRET}
- MCP_ISSUER_URL=${MCP_ISSUER_URL:-}
- MCP_REDIRECT_URIS=https://claude.ai/api/mcp/auth_callback,https://claude.com/api/mcp/auth_callback
- TRUST_PROXY=1
- CORS_ORIGINS=https://claude.ai
extra_hosts:
安装
npx openclaw-mcp配置
{
"mcpServers": {
"openclaw": {
"command": "npx",
"args": ["openclaw-mcp"],
"env": {
"OPENCLAW_URL": "http://127.0.0.1:18789",
"OPENCLAW_GATEWAY_TOKEN": "your-gateway-token",
"OPENCLAW_AGENT_ID": "main",
"OPENCLAW_MODEL": "openclaw",
"OPENCLAW_TIMEOUT_MS": "300000"
}
}
}
}