openclaw-tools-mcp
Exposes OpenClaw tools (web search, page fetching, browser automation, PDF analysis, messaging, inter-agent communication, Canvas) as MCP tools for ACP agents.
README
openclaw-tools-mcp
MCP server that exposes OpenClaw tools to ACP agents (Kiro, Codex, Claude Code, etc.).
ACP agents run in their own runtime with their own native tools but lack access to OpenClaw's capabilities. This server bridges that gap — web search, page fetching, browser automation, PDF analysis, messaging, inter-agent communication, and Canvas are all available as MCP tools.
ACP Agent ◄── stdio (JSON-RPC) ──► openclaw-tools-mcp ◄── HTTP ──► OpenClaw Gateway
Default tools
| Tool | Description |
|---|---|
web_search |
Search the web |
web_fetch |
Fetch and extract readable content from URLs |
browser |
Control a web browser (navigate, click, type, screenshot, etc.) |
pdf |
Analyze PDF documents |
message |
Send messages via Discord, Telegram, WhatsApp, etc. |
canvas |
Control the Canvas visual workspace |
sessions_send |
Send a message into another OpenClaw session (agent-to-agent) |
Quick start
cd openclaw-tools-mcp
npm install
npm run build
Add to ~/.kiro/settings/mcp.json:
{
"mcpServers": {
"openclaw-tools": {
"command": "node",
"args": ["/absolute/path/to/openclaw-tools-mcp/dist/index.js"],
"env": {
"OPENCLAW_GATEWAY_TOKEN": "${OPENCLAW_GATEWAY_TOKEN}"
}
}
}
}
Requires Node.js >= 22 and a running OpenClaw Gateway.
Configuration
Environment variables
| Variable | Required | Default | Description |
|---|---|---|---|
OPENCLAW_GATEWAY_TOKEN |
Yes | — | Bearer token for gateway auth |
OPENCLAW_GATEWAY_URL |
No | http://127.0.0.1:18789 |
Gateway base URL |
OPENCLAW_MCP_TOOLS |
No | all 7 tools | Comma-separated list of tools to expose |
OPENCLAW_MCP_CONFIG |
No | openclaw-mcp.json |
Path to config file |
OPENCLAW_MCP_CUSTOM_TOOLS |
No | — | Comma-separated paths to custom tool JSON files |
Config file
Optional openclaw-mcp.json:
{
"gateway": {
"url": "http://127.0.0.1:18789",
"token": "your-token"
},
"tools": ["web_search", "web_fetch", "browser", "pdf", "message", "canvas", "sessions_send"],
"customTools": ["./tools/rooms.json"]
}
Environment variables override config file values.
Exposing a subset of tools
{
"mcpServers": {
"openclaw-tools": {
"command": "node",
"args": ["/path/to/openclaw-tools-mcp/dist/index.js"],
"env": {
"OPENCLAW_GATEWAY_TOKEN": "${OPENCLAW_GATEWAY_TOKEN}",
"OPENCLAW_MCP_TOOLS": "web_search,web_fetch,message"
}
}
}
}
Custom tool definitions
Load additional tools from JSON files — useful for custom OpenClaw skills/plugins.
{
"tools": [
{
"name": "room_join",
"description": "Join a named room for multi-agent broadcast messaging.",
"parameters": {
"type": "object",
"properties": {
"room": { "type": "string", "description": "Room name" },
"agentId": { "type": "string", "description": "Your agent ID" }
},
"required": ["room", "agentId"]
}
}
]
}
Single-tool files (without the tools wrapper) also work. The schema format matches what OpenClaw plugins use in registerTool(). Supported types: string, number, integer, boolean, array. Enums via "enum": [...].
A sessionKey parameter is automatically injected into every custom tool for gateway routing.
A ready-made definition for the rooms plugin is included at tools/rooms.json.
Notes
- The server uses stdio transport — ACP agents spawn it as a child process.
- All tool calls are proxied to the gateway's
POST /tools/invokeHTTP endpoint. sessions_sendrequires a gateway config change — see below.- Every built-in tool (except
sessions_send) accepts an optionalsessionKeyparameter for routing the call to a specific agent session on the gateway.
Enabling sessions_send
sessions_send is on the gateway's default HTTP deny list for /tools/invoke. Without this config change, calls will return 404 Tool not available. Add to your OpenClaw config (~/.openclaw/openclaw.json):
gateway: {
tools: {
allow: ["sessions_send"]
}
}
Then restart the gateway (openclaw gateway restart).
Troubleshooting
- Server won't start —
OPENCLAW_GATEWAY_TOKENmust be set. - Tools return errors — Verify the gateway is running (
openclaw gateway status) and the token is correct. - Tool not found (404) — The tool may be blocked by gateway policy. Check
gateway.tools.denyin your OpenClaw config. - Verify in Kiro CLI — Run
/mcpin an interactive session to see loaded servers and tools.
License
This project is released into the public domain under The Unlicense. See LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。