
helms-ai/openclaw-mcp-server
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
MCP server exposing OpenClaw Gateway tools to Claude Code and other MCP-compatible clients
Обзор
MCP (Model Context Protocol) server that exposes OpenClaw Gateway tools to Claude Code and other MCP-compatible clients. Gives Claude Code (and any MCP client) access to: - — Send messages via Telegram, WhatsApp, Discord, Slack, Signal, iMessage, Google Chat - — List, inspect, and communicate with other OpenClaw sessions - — Create and manage cron jobs for automated tasks - — Control paired devices (notifications, camera, location, remote commands) - — Search and fetch web content - — Search OpenClaw's memory files - — Text-to-speech conversion - — Status and configuration access - Node.js 18+ - OpenClaw Gateway running locally (default: http://127.0.0.1:18789) - Gateway auth token (if configured) The OpenClaw MCP server works with any MCP-compatible client. Below are configuration instructions for popular clients. Add to your Claude Desktop configuration file: : ~/Library/Application Support/Claude/claude_desktop_config.json : %APPDATA%\Claude\claude_desktop_config.json : ~/.
README
Показан фрагмент оригинального README. Открыть оригинал.
OpenClaw MCP Server
MCP (Model Context Protocol) server that exposes OpenClaw Gateway tools to Claude Code and other MCP-compatible clients.
Features
Gives Claude Code (and any MCP client) access to:
- Messaging — Send messages via Telegram, WhatsApp, Discord, Slack, Signal, iMessage, Google Chat
- Sessions — List, inspect, and communicate with other OpenClaw sessions
- Scheduling — Create and manage cron jobs for automated tasks
- Nodes — Control paired devices (notifications, camera, location, remote commands)
- Web — Search and fetch web content
- Memory — Search OpenClaw’s memory files
- TTS — Text-to-speech conversion
- Gateway — Status and configuration access
Prerequisites
- Node.js 18+
- OpenClaw Gateway running locally (default:
http://127.0.0.1:18789) - Gateway auth token (if configured)
Installation
# Clone and install
cd /path/to/openclaw-mcp-server
npm install
npm run build
# Or install globally
npm install -g .
Configuration
Environment Variables
| Variable | Description | Default |
|---|---|---|
OPENCLAW_GATEWAY_URL |
Gateway HTTP URL | http://127.0.0.1:18789 |
OPENCLAW_GATEWAY_TOKEN |
Auth token (if required) | (none) |
Client Setup
The OpenClaw MCP server works with any MCP-compatible client. Below are configuration instructions for popular clients.
Claude Desktop
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"openclaw": {
"command": "node",
"args": ["/absolute/path/to/openclaw-mcp-server/dist/index.js"],
"env": {
"OPENCLAW_GATEWAY_TOKEN": "your-token-here"
}
}
}
}
Note: Restart Claude Desktop after editing the configuration file.
Claude Code (CLI)
Add using the Claude Code CLI:
# Using the CLI
claude mcp add openclaw -- node /path/to/openclaw-mcp-server/dist/index.js
# Or with environment variables
claude mcp add openclaw -e OPENCLAW_GATEWAY_TOKEN=your-token -- node /path/to/openclaw-mcp-server/dist/index.js
Or manually edit ~/.claude/settings.json:
{
"mcpServers": {
"openclaw": {
"command": "node",
"args": ["/absolute/path/to/openclaw-mcp-server/dist/index.js"],
"env": {
"OPENCLAW_GATEWAY_TOKEN": "your-token-here"
}
}
}
}
Zed Editor
Add to your Zed settings file (open with Zed: Open Settings or edit ~/.config/zed/settings.json):
{
"context_servers": {
"openclaw": {
"command": {
"path": "node",
"args": ["/absolute/path/to/openclaw-mcp-server/dist/index.js"]
},
"settings": {
"env": {
"OPENCLAW_GATEWAY_TOKEN": "your-token-here"
}
}
}
}
}
Установка
npx @modelcontextprotocol/inspector node dist/index.jsКонфигурация
{
"mcpServers": {
"openclaw": {
"command": "node",
"args": ["/absolute/path/to/openclaw-mcp-server/dist/index.js"],
"env": {
"OPENCLAW_GATEWAY_TOKEN": "your-token-here"
}
}
}
}