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-openclaw2
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.jsReplace any placeholder paths in the command with the real path on your machine.
Required:
OPENCLAW_API_URLOPENCLAW_API_KEY+ 5 optionalEnvironment Variables
Set these before running MCP OpenClaw.
VariableDescriptionRequired
OPENCLAW_API_URLThe base URL for the OpenClaw APIYesOPENCLAW_API_KEYThe API key for authenticationYesOPENCLAW_TIMEOUTRequest timeout in millisecondsNoOPENCLAW_MAX_RETRIESMaximum retry attemptsNoSERVER_NAMECustom server nameNoSERVER_VERSIONCustom server versionNoLOG_LEVELLog level (debug, info, warn, error)NoAvailable 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.platformrecipientmessageexecute_commandExecute a command in the OpenClaw environment.commandtimeoutasynccreate_calendar_eventCreate a new calendar event with attendees and reminders.titledescriptionstartTimeendTimelocationattendeesremindersend_emailSend an email with support for CC and BCC.tosubjectbodyccbcchtmlget_task_statusCheck the status of an asynchronous command.taskIdTry 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 APIOPENCLAW_API_KEY— The API key for authentication
Alternative installation methods
Local NPM
npm install mcp-openclawKeep 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.