openclaw-mcp
Click on "Install 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-mcpAsk Daemon about the ClawPort architecture"
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
MCP server for Claude Code to talk to OpenClaw AI agents (Daemon, Soren, Ash, etc.) via the gateway API.
What it does
Gives Claude Code three tools:
ask_agent— Send a message to any OpenClaw agent and get their response inlinelist_agents— Discover all available agents on the gatewayagent_status— Check if a specific agent is active
Related MCP server: openai-agents-mcp
Quick Setup
# Install globally
npm install -g openclaw-mcp
# Add to Claude Code (simplest)
claude mcp add openclaw -- npx openclaw-mcp
# Or with explicit config
claude mcp add openclaw \
--env OPENCLAW_GATEWAY_URL=http://172.16.24.250:18789 \
--env OPENCLAW_GATEWAY_TOKEN=your_token \
-- npx openclaw-mcpManual Setup
Add to your .claude/settings.json (or ~/.claude.json for global):
{
"mcpServers": {
"openclaw": {
"command": "npx",
"args": ["openclaw-mcp"],
"env": {
"OPENCLAW_GATEWAY_URL": "http://172.16.24.250:18789",
"OPENCLAW_GATEWAY_TOKEN": "your_token"
}
}
}
}Configuration
Variable | Default | Description |
|
| OpenClaw gateway URL |
| (required) | Auth token from your OpenClaw config |
Find your token in ~/.openclaw/openclaw.json under gateway.token.
Usage in Claude Code
Once configured, just talk to Claude Code naturally:
"Ask Daemon about the ClawPort architecture"
"Check which agents are available"
"Ask Soren to review this code approach"
"What's the status of the Ash agent?"
Tools Reference
ask_agent
Sends a message to an OpenClaw agent and returns their response.
agent: "daemon" | "soren" | "ash" | "mira" | "jace" | "pip" | ...
message: "Your question or request"Uses session key agent:{name}:mcp so MCP conversations are isolated from Discord/ClawPort sessions.
list_agents
No params. Returns all models/agents registered on the gateway.
agent_status
agent: "ash"Returns the agent's name, model ID, and availability status.
Local Development
git clone https://github.com/Codename-11/openclaw-mcp
cd openclaw-mcp
npm install
npm run build
# Test
OPENCLAW_GATEWAY_URL=http://localhost:18789 \
OPENCLAW_GATEWAY_TOKEN=your_token \
node dist/index.jsLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Codename-11/openclaw-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server