Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”‘ Needs an API keyAI, memory and agents

OpenClaw MCP Server

Lets Claude send tasks to your self-hosted OpenClaw assistant and read back its answers, with OAuth 2.1 security.

188 stars on GitHubby freemaLicense MITUpdated 29 days ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

claude mcp add openclaw -e OPENCLAW_URL="<your value>" -e OPENCLAW_GATEWAY_TOKEN="<your value>" -- npx -y openclaw-mcp

What to fill in

NameWhat it isRequired
OPENCLAW_URLURL of your OpenClaw gatewayYes
OPENCLAW_GATEWAY_TOKENBearer token for OpenClaw gateway authenticationYes
OPENCLAW_MODELModel name for chat completions (e.g. 'openclaw' or 'openclaw/<agentId>')No
OPENCLAW_TIMEOUT_MSRequest timeout in millisecondsNo

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Ask my OpenClaw assistant to summarize the open issues in my project.
Queue a task in OpenClaw to run the tests on dev and tell me when it is done.

What it is

This server connects Claude to OpenClaw, an AI assistant you run on your own server. Claude can chat with OpenClaw, check its health and hand it longer tasks, so one assistant can direct another. It works with Claude Desktop locally or with Claude.ai through a web address you host.

What it can do

  • openclaw_chat: send a message and get a reply
  • openclaw_status: check gateway health
  • openclaw_instances: list configured OpenClaw instances
  • openclaw_chat_async: queue a long task and get a task id
  • openclaw_task_status: check task progress and results
  • openclaw_task_list: list your tasks
  • openclaw_task_cancel: cancel a pending task

When to use

  • β€ΊWhen you want Claude to delegate work to an OpenClaw assistant running on your own server
  • β€ΊWhen a task takes a long time and you want to queue it and check back later
  • β€ΊWhen you run several OpenClaw gateways, such as prod and staging, and want to pick one per request

What you need

A running OpenClaw gateway with its token, plus Node.js or Docker. For Claude.ai you also need a public HTTPS address and a client secret.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free and open source?

The readme shows an MIT licence. You run it yourself, so hosting costs are yours.

What do I need?

An OpenClaw gateway and its gateway token. Run the server with npx openclaw-mcp or the Docker image.

Does it work with Claude.ai?

Yes, as a custom connector pointing to your domain ending in /mcp, with OAuth 2.1. Claude Desktop can use the local npx setup instead.

Can it talk to more than one OpenClaw?

Yes. Multi-instance mode lets every tool take an optional instance name, and each instance has its own URL, token and timeout.

Is it safe?

The readme warns that text Claude reads can reach OpenClaw, so prompt injection is the main risk. It advises a dedicated, sandboxed OpenClaw agent with few tools, set with OPENCLAW_AGENT_ID.

Why does the connector fail after sign-in?

The connector URL must end with /mcp. A bare domain returns 404 after OAuth completes.

If it does not work

  • β€ΊMake sure the connector URL ends with /mcp, not just the bare domain.
  • β€ΊBehind a reverse proxy, set MCP_ISSUER_URL to your public HTTPS address and TRUST_PROXY=1.
  • β€ΊIf OAuth says Unregistered redirect_uri, set MCP_REDIRECT_URIS to the exact /api/mcp/auth_callback paths for claude.ai and claude.com.

5 new skills a week. 1 minute to read.