openclaw-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@openclaw-mcp send a message to Gabriel: meeting at 3 PM"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
openclaw-mcp (Hardened Fork)
Hardened fork of freema/openclaw-mcp — Model Context Protocol server for OpenClaw AI assistant integration with Claude Code.
Security Hardening
Configurable model: Uses
OPENCLAW_MODELenv var (default:default) instead of hardcoded modelLocalhost-only by default: SSE host defaults to
127.0.0.1instead of0.0.0.0Rate limiting: Max 60 requests/min by default (configurable via
RATE_LIMIT_PER_MIN)Input validation: All tool inputs validated for type, length, and control characters
Path traversal protection: Memory tools reject
..in paths
Related MCP server: agent-skill-loader
Available Tools
Core Tools
Tool | Description |
| Send a message to OpenClaw and get a response |
| Get OpenClaw gateway status and health |
| Send a message asynchronously (returns task ID) |
| Check async task status |
| List all tasks |
| Cancel a running task |
Extended Tools (New)
Tool | Description |
| Send messages on Telegram or WhatsApp |
| Read a workspace memory file |
| Write to a workspace memory file |
| Send urgent alerts to Gabriel on Telegram |
| Spawn an OpenClaw sub-agent |
| Search the web via OpenClaw |
Configuration
Environment Variables
Variable | Default | Description |
|
| OpenClaw gateway URL |
| — | Bearer token for gateway auth |
|
| Model to use for chat completions |
|
| Max tool calls per minute |
|
| SSE server bind host |
|
| SSE server port |
Claude Code Configuration (.claude.json)
{
"mcpServers": {
"openclaw": {
"command": "node",
"args": ["path/to/openclaw-mcp/dist/index.js"],
"env": {
"OPENCLAW_URL": "http://127.0.0.1:18789",
"OPENCLAW_GATEWAY_TOKEN": "your-gateway-token-here",
"OPENCLAW_MODEL": "default"
}
}
}
}Install & Run
npm install
npm run build
npm start # stdio mode (default)
npm start -- -t sse # SSE modeDevelopment
npm run dev # watch mode
npm run typecheck # type checking
npm test # run tests
npm run check:all # lint + typecheck + test + buildLicense
MIT
Available Tools
12 toolsopenclaw_alertA
Send an urgent alert to Gabriel on Telegram via OpenClaw
Inputs: level (required), title (required), details (required).
openclaw_chatB
Send a message to OpenClaw and get a response
Inputs: message (required), 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), priority, session_id.
openclaw_memory_readA
Read a memory file from the OpenClaw workspace
Inputs: path (required).
openclaw_memory_writeC
Write content to a memory file in the OpenClaw workspace
Inputs: path (required), content (required).
openclaw_messageC
Send a message on Telegram or WhatsApp via the OpenClaw gateway
Inputs: target (required), channel (required), message (required), media_path.
openclaw_spawn_agentC
Spawn an OpenClaw sub-agent to perform a task
Inputs: task (required), agent_id (required), model.
openclaw_statusA
Get OpenClaw gateway status and health information
Inputs: no named parameters.
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 or session.
Inputs: status, session_id.
openclaw_task_statusB
Check the status of an async task. Returns status, and result if completed.
Inputs: task_id (required).
openclaw_web_searchB
Search the web via OpenClaw
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Each tool has a clearly defined purpose: chat (sync/async), status, task management (status/list/cancel), platform messaging, memory operations, alerts, agent spawning, and web search. There is no meaningful overlap between the tools, as even similar actions (e.g., chat vs. message) target distinct contexts (OpenClaw conversation vs. external platform).
All tools share the 'openclaw_' prefix, which provides cohesion, but the pattern after the prefix is inconsistent. Some use verb-first (openclaw_chat, openclaw_web_search), some use noun-only (openclaw_status, openclaw_task_list), and some use noun-verb (openclaw_memory_read, openclaw_task_cancel). This mixed convention is readable but not predictable.
With 12 tools, the server is well-scoped for its purpose of controlling an OpenClaw instance. Each tool covers a distinct capability, and the count is within the ideal range for an assistant-like MCP server.
The toolset provides comprehensive coverage for chatting (sync/async), task management (status/list/cancel), messaging, memory read/write, alerting, agent spawning, and web search. Minor gaps exist, such as no explicit memory delete or session management, but these are not critical for the server's apparent purpose.
Maintenance
Related MCP Connectors
Official MCP server for Agentwork — delegate tasks to AI agents with human-in-the-loop
Hosted MCP server connecting AI assistants to 9,000+ apps and 40,000+ actions via Zapier.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
Related MCP Servers
- AlicenseBqualityDmaintenanceA personal MCP server for AI assistant integration that provides custom tools, resources, and prompts for use with Claude Desktop and other MCP-compatible clients.2MIT
- AlicenseAqualityBmaintenanceMCP server to dynamically load Claude Code skills into AI agents598 npm15MIT
- AlicenseBqualityDmaintenanceAn MCP server that integrates with the OpenClaw API to enable AI assistants to send messages across multiple platforms, execute system commands, and manage calendar events and emails.51MIT
- AlicenseNot gradedqualityDmaintenanceA universal MCP server for spawning agents with any OpenAI-compatible LLM, supporting cloud and local models, and integrating with Claude Code, OpenCode, and Codex CLI.73 PyPIMIT