← Back to MCP OpenClaw

Install MCP OpenClaw

Pick your client, copy the command, done.

Manual setup required. The maintainer's config contains paths only you know - edit the placeholders below before adding it to Claude Code.
1

Prepare the server locally

Run this once before adding it to Claude Code.

npm install -g mcp-openclaw
2

Register it in Claude Code

claude mcp add -e "OPENCLAW_API_URL=${OPENCLAW_API_URL}" -e "OPENCLAW_API_KEY=${OPENCLAW_API_KEY}" mcp-openclaw -- node /path/to/mcp-openclaw/dist/index.js

Replace any placeholder paths in the command with the real path on your machine.

Required:OPENCLAW_API_URLOPENCLAW_API_KEY+ 5 optional

Environment Variables

Set these before running MCP OpenClaw.

VariableDescriptionRequired
OPENCLAW_API_URLThe base URL for the OpenClaw APIYes
OPENCLAW_API_KEYThe API key for authenticationYes
OPENCLAW_TIMEOUTRequest timeout in millisecondsNo
OPENCLAW_MAX_RETRIESMaximum retry attemptsNo
SERVER_NAMECustom server nameNo
SERVER_VERSIONCustom server versionNo
LOG_LEVELLog level (debug, info, warn, error)No

Available Tools (5)

Once configured, MCP OpenClaw gives your AI agent access to:

send_messageSend a message to a supported platform like Telegram, WhatsApp, or Discord.
platformrecipientmessage
execute_commandExecute a command in the OpenClaw environment.
commandtimeoutasync
create_calendar_eventCreate a new calendar event with attendees and reminders.
titledescriptionstartTimeendTimelocationattendeesreminder
send_emailSend an email with support for CC and BCC.
tosubjectbodyccbcchtml
get_task_statusCheck the status of an asynchronous command.
taskId

Try It Out

After setup, try these prompts with your AI agent:

Send a message to my team on Discord saying the deployment is complete.
Create a calendar event for a team meeting tomorrow at 10 AM in Conference Room A.
Send an email to project-leads@example.com with the weekly status update.
Run the system diagnostic command and check its status using the task ID.
Send a WhatsApp message to @manager confirming the project timeline.
Prerequisites & system requirements
  • An MCP-compatible client (Claude Code, Cursor, Windsurf, Claude Desktop, or Codex)
  • Node.js 18+ with npm/npx installed
  • OPENCLAW_API_URL — The base URL for the OpenClaw API
  • OPENCLAW_API_KEY — The API key for authentication
Alternative installation methods

Local NPM

npm install mcp-openclaw

Keep this setup from going cold

Save the docs, env vars, and workflow around MCP OpenClaw in Conare so Claude Code, Codex, and Cursor remember it next time.

Remember this setup