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 Ask 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
Available Tools
3 toolsagent_statusA
Check the status of a specific OpenClaw agent session.
Inputs: agent (required).
ask_agentA
Send a message to an OpenClaw agent and get their response. Use agent names like 'daemon', 'soren', 'ash', 'mira', 'jace', 'pip'.
Inputs: agent (required), message (required).
list_agentsA
List all available OpenClaw agents from the gateway.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool serves a clearly distinct purpose: listing agents, checking a specific agent's status, and sending a message. There is no overlap between these operations.
Most tools follow a verb_noun pattern (ask_agent, list_agents), but agent_status deviates by using noun_noun. The inconsistency is minor and the names remain clear.
Three tools is a well-scoped set for an agent interaction server, covering the core needs of discovery, status checking, and messaging without unnecessary bloat.
The set covers the primary lifecycle of interacting with agents, but lacks explicit session management (e.g., start/stop). This is a minor gap for a basic agent gateway server.
Maintenance
Related MCP Connectors
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
MCP server for AI dialogue using various LLM models via AceDataCloud
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Related MCP Servers
- AlicenseBqualityDmaintenanceMCP server that exposes OpenClaw Gateway tools to Claude Code and other MCP clients, enabling messaging, session management, scheduling, node control, web search, memory search, and TTS.219 npm15MIT
- AlicenseAqualityDmaintenanceMCP server that bridges OpenAI's Agents SDK with Claude Code, enabling web search, file search, and computer use capabilities directly in your development environment.29 npm1MIT
- AlicenseAqualityDmaintenanceMCP server that integrates OpenClaw AI assistant with Claude Code, enabling chat, task management, messaging, memory, alerts, agent spawning, and web search through configurable tools.121,414 npmMIT
- AlicenseAqualityDmaintenanceThis MCP server enables remote control and management of Claude Code agents, allowing you to execute missions, configure agent personalities, and integrate with other MCP tools.715 npm1MIT