openclaw-mcp
MCP server that integrates OpenClaw AI assistant with Claude Code, enabling chat, task management, messaging, memory, alerts, agent spawning, and web search through configurable tools.
README
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 model - Localhost-only by default: SSE host defaults to
127.0.0.1instead of0.0.0.0 - Rate 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
Available Tools
Core Tools
| Tool | Description |
|---|---|
openclaw_chat |
Send a message to OpenClaw and get a response |
openclaw_status |
Get OpenClaw gateway status and health |
openclaw_chat_async |
Send a message asynchronously (returns task ID) |
openclaw_task_status |
Check async task status |
openclaw_task_list |
List all tasks |
openclaw_task_cancel |
Cancel a running task |
Extended Tools (New)
| Tool | Description |
|---|---|
openclaw_message |
Send messages on Telegram or WhatsApp |
openclaw_memory_read |
Read a workspace memory file |
openclaw_memory_write |
Write to a workspace memory file |
openclaw_alert |
Send urgent alerts to Gabriel on Telegram |
openclaw_spawn_agent |
Spawn an OpenClaw sub-agent |
openclaw_web_search |
Search the web via OpenClaw |
Configuration
Environment Variables
| Variable | Default | Description |
|---|---|---|
OPENCLAW_URL |
http://127.0.0.1:18789 |
OpenClaw gateway URL |
OPENCLAW_GATEWAY_TOKEN |
— | Bearer token for gateway auth |
OPENCLAW_MODEL |
default |
Model to use for chat completions |
RATE_LIMIT_PER_MIN |
60 |
Max tool calls per minute |
HOST |
127.0.0.1 |
SSE server bind host |
PORT |
3000 |
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 mode
Development
npm run dev # watch mode
npm run typecheck # type checking
npm test # run tests
npm run check:all # lint + typecheck + test + build
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.