ClawDaemon 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., "@ClawDaemon MCPset up a cron job to check my website's status every hour"
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.
ClawDaemon MCP
An MCP server that connects Claude Code to a persistent OpenClaw daemon for 24/7 automation. Includes a Claude CLI proxy that lets OpenClaw use your Claude Code subscription as its AI brain — no separate API key needed.
What it does
OpenClaw runs as a background daemon on your machine. This MCP server gives Claude Code tools to manage that daemon — create cron jobs, set up webhooks, send messages across 23+ platforms, and automate your browser.
The key difference from other approaches: automations keep running when Claude Code isn't open. When you come back, Claude catches up on everything that happened through an event queue.
Architecture
┌─────────────────────────────────────────────┐
│ OpenClaw Daemon (24/7) │
│ ┌─────────┐ ┌──────┐ ┌────────┐ ┌───────┐ │
│ │ Discord │ │ Cron │ │Browser │ │ Gmail │ │
│ └────┬────┘ └──┬───┘ └───┬────┘ └───┬───┘ │
│ └─────────┴─────────┴──────────┘ │
│ │ │
│ Gateway (:18789) │
└──────────┬─────────────────┬───────────────┘
│ │
MCP stdio │ OpenAI API │
Claude Code ◄──────────► MCP Server│ (:18790) │
│ │ │
SQLite DB └── Claude Proxy ◄┘
│
claude --print
(your CLI sub)OpenClaw Daemon runs in the background (systemd/launchd). Handles cron, messaging channels, browser automation.
MCP Server connects to the daemon and exposes tools for Claude Code.
Claude Proxy translates OpenAI API calls to
claude --printcalls. OpenClaw thinks it's talking to an API, but it's using your Claude Code subscription.Event Queue stores results from automations. When Claude Code reconnects, it polls for missed events.
Prerequisites
Claude Code CLI installed and authenticated
OpenClaw installed locally
Node.js 22+
Quick Start
1. Install
git clone https://github.com/mordiaky/clawdaemon-mcp.git
cd clawdaemon-mcp
npm install
npm run build2. Set up OpenClaw
If you haven't installed OpenClaw yet:
git clone https://github.com/openclaw/openclaw.git
cd openclaw
npx pnpm install
npx pnpm buildStart the gateway:
node openclaw.mjs gateway runThe gateway starts on http://127.0.0.1:18789 by default.
3. Connect MCP to Claude Code
claude mcp add clawdaemon -- node /absolute/path/to/clawdaemon-mcp/build/server.jsOptionally add OpenClaw's built-in messaging tools:
claude mcp add openclaw -- node /absolute/path/to/openclaw/openclaw.mjs mcp serveRestart Claude Code for the tools to load.
4. Set up the Claude Proxy (optional)
The Claude Proxy lets OpenClaw use your Claude Code CLI subscription as its AI model. This means OpenClaw can respond to Discord messages, run heartbeat tasks, and process automations — all powered by Claude, with no separate API key.
Start the proxy
cd clawdaemon-mcp
npm run proxyThe proxy listens on http://127.0.0.1:18790/v1 and translates OpenAI-compatible API calls into claude --print calls.
Configure OpenClaw to use the proxy
Add to your ~/.openclaw/openclaw.json:
{
"models": {
"providers": {
"claude-proxy": {
"baseUrl": "http://127.0.0.1:18790/v1",
"api": "openai-completions",
"models": [
{
"id": "claude-cli",
"name": "Claude via CLI Proxy",
"input": ["text", "image"],
"contextWindow": 200000,
"maxTokens": 8192
}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "claude-proxy/claude-cli"
}
}
}
}Restart the gateway to apply:
openclaw gateway restartGive the proxy access to your MCP servers
Edit openclaw-mcp-config.json to add any MCP servers you want the proxy-spawned Claude to have access to:
{
"mcpServers": {
"clawdaemon": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/clawdaemon-mcp/build/server.js"],
"env": {}
},
"your-other-server": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/your-server/build/index.js"],
"env": {}
}
}
}The proxy passes this config to claude --print --mcp-config so the Claude instance that responds to messages has full tool access.
MCP Tools
Daemon
Tool | What it does |
| Check if OpenClaw gateway is running and healthy |
Automation Management
Tool | What it does |
| Schedule a recurring automation |
| List all active automations |
| Remove an automation |
Event Polling
Tool | What it does |
| Get events that happened since last check |
| Mark an event as processed |
| Browse past events |
| Remove expired events from the queue |
Messaging
Tool | What it does |
| Send a message via any connected channel |
| List connected messaging channels |
Browser Automation
Tool | What it does |
| Open a URL in the browser |
| Get a DOM snapshot of the current page |
| Take a screenshot |
Configuration
Environment Variables
Variable | Default | Description |
|
| Gateway WebSocket URL |
| (from ~/.openclaw/openclaw.json) | Auth token for gateway |
|
| Event queue database path |
|
| Port for the Claude CLI proxy |
How the Claude Proxy Works
The proxy is a lightweight HTTP server that makes Claude Code CLI look like an OpenAI-compatible API:
OpenClaw sends a standard
/v1/chat/completionsrequestThe proxy converts the messages to a prompt string
It spawns
claude --print --output-format json --mcp-config openclaw-mcp-config.jsonClaude processes the prompt with full MCP tool access
The proxy wraps the response in OpenAI format and returns it
OpenClaw delivers the response to Discord/Telegram/etc.
Supports both streaming (SSE) and non-streaming responses.
Channel Setup (Discord example)
Once the proxy is running and OpenClaw is configured to use it, add a messaging channel:
Create a Discord bot at https://discord.com/developers/applications
Get the bot token, enable Message Content Intent
Add to
~/.openclaw/openclaw.json:
{
"channels": {
"discord": {
"enabled": true,
"groupPolicy": "open",
"accounts": {
"default": {
"token": "YOUR_DISCORD_BOT_TOKEN"
}
}
}
}
}Restart the gateway and invite the bot to your server
DM the bot to trigger pairing, then approve:
openclaw pairing approve discord <CODE>
Claude will now respond to Discord messages through the proxy.
Troubleshooting
MCP server won't connect / tools not showing up
Restart Claude Code — MCP tools only load at session start.
Check the gateway is running — Visit
http://127.0.0.1:18789.Check MCP server status — Run
/mcpin Claude Code.
Claude Proxy not responding
Check the proxy is running —
curl http://127.0.0.1:18790/v1/modelsCheck Claude CLI is authenticated —
claude --versionCheck proxy logs — Logs go to stderr. Run
npm run proxyin a terminal to see them.
Discord bot connects but doesn't receive messages
Enable all three Privileged Gateway Intents in the Discord Developer Portal (Message Content, Server Members, Presence)
Set
groupPolicy: "open"in the Discord channel configDM the bot and complete the pairing flow
"Awaiting gateway readiness" on restart
Discord's WebSocket sometimes doesn't reconnect cleanly. Stop the gateway, wait 15 seconds, then restart:
systemctl --user stop openclaw-gateway.service
sleep 15
openclaw gateway restartWhy this exists
OpenClaw is a powerful automation daemon but its built-in AI requires separate API keys. Claude Code users already have a Claude subscription. This MCP server + proxy lets you use OpenClaw's full automation stack (messaging, cron, browser, webhooks) powered entirely by your existing Claude Code subscription — no additional API costs, no ToS violations.
License
MIT
This server cannot be installed
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
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/mordiaky/clawdaemon-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server