How to Connect OpenClaw to MewCP
Add MewCP to OpenClaw once, and your OpenClaw agents can use every app you have connected in MewCP: Gmail, Calendar, Slack, GitHub and the rest. OpenClaw connects to MewCP directly over Streamable HTTP and signs in with your MewCP account, so there is nothing to install and no API key to paste.
Before you start
- OpenClaw installed with its Gateway set up (OpenClaw docs)
- A MewCP account with at least one app connected under Apps
Set up MewCP
-
Open your config
Edit
~/.openclaw/openclaw.json. Create it if it does not exist. -
Add the server
Add the
mewcpentry undermcp.servers:CodeAlready have an
mcp.serverssection? Add only themewcpentry inside it. Keeptransport: "streamable-http". -
Sign in to MewCP
Restart OpenClaw. Sign in to MewCP and click Allow access when the browser window opens.
This is the entire configuration. One entry reaches every app you have connected, and connecting another app later needs no change here.
Check it works
Code
--probe opens a live connection and lists the tools MewCP offers. Saving a server alone proves nothing about reachability.
You will see four tools, not the tools of every app: search, get_schema, manage_connections and call_tool. That is expected. Your agents use them to find and run the right tool for whatever you ask. See How MewCP works.
Then ask an agent, in any channel it listens on, for something from an app you have connected:
Code
Use an API key instead
For a Gateway running on a server with no browser, send an API key from Dashboard → API Keys instead of signing in.
Set the key in the environment the OpenClaw Gateway runs in, for example the Gateway service's environment:
Code
Then use this entry, without auth: "oauth":
Code
OpenClaw's doctor warns about keys written straight into the config, so keep the key in the environment and refer to it as ${MEWCP_API_KEY}.
Troubleshooting
The probe returns 401 or 403
- With sign-in, OpenClaw has not signed in yet or the sign-in has expired. Restart OpenClaw and sign in again. See OAuth Sign-In for errors on the sign-in page.
- With an API key, check
MEWCP_API_KEYis set in the Gateway's environment, not only in your terminal, and holds the whole key, which starts withmewcp_proj_. Check the header value readsBearer ${MEWCP_API_KEY}, with the space afterBearer. - A
403that says your plan's billing period has ended means your MewCP plan needs renewing under Billing.
openclaw mcp add or configure refuses to run
The CLI commands that change saved servers, and --probe, need the local Gateway stopped. Stop it, run the command, then start it again. Or make the change in the Control UI under Settings → MCP, which works while the Gateway runs.
Changes do not reach a running agent
openclaw mcp reload only refreshes the current CLI process. A Gateway or agent running in another process needs its own reload or a restart.
MewCP keeps failing after you fixed it
When OpenClaw cannot start a server, it waits before trying again, starting at 30 seconds and doubling up to 10 minutes. A config change, a successful connection, or an MCP reload in the Gateway clears the wait.
MewCP's tools do not show up for an agent
OpenClaw shows MCP tools in the coding and messaging tool profiles, not in minimal. Also check your tool policy does not deny them, for example with tools.deny: ["bundle-mcp"] or tools.deny: ["mewcp__*"].
Last updated on 29 November 2026.