How to Connect Claude Code to MewCP
Add MewCP to Claude Code once, and Claude can use every app you have connected in MewCP: Gmail, Calendar, Slack, GitHub and the rest. Claude Code connects to MewCP directly over HTTP and signs in with your MewCP account, so there is nothing to install and no API key to paste.
There are two ways to set it up:
| Method | MewCP loads in | Best for |
|---|---|---|
| One command | Every project on your machine | Most people |
.mcp.json file | One project, for everyone who opens it | Sharing the setup with a team |
Before you start
- Claude Code installed. Check with
claude --version, or see Claude Code setup - A MewCP account with at least one app connected under Apps
Option A: One command
-
Add the server
Run this in your terminal:
CodeKeep
--scope user. Without it, Claude Code uses its default local scope and MewCP loads only in the folder you ran the command from. -
Sign in
Start Claude Code and run:
CodePick
mewcpand choose Authenticate. Sign in to MewCP in the browser window and click Allow access.
This is the entire configuration. One entry reaches every app you have connected, and connecting another app later needs no change here.
Option B: .mcp.json in a project
Use this to share MewCP with everyone who works in a repository. Each person signs in with their own MewCP account, so each of them reaches their own apps.
-
Add the file
Create
.mcp.jsonin the project root, or add themewcpentry to the one you have. For all your projects instead, put the entry in~/.claude.json.CodeKeep
"type": "http". Claude Code reads an entry without atypeas a local command and skips it. The file holds no secret, so you can commit it. -
Approve the server
Run
claudein the project. Claude Code asks before it uses a server from a project's.mcp.jsonfor the first time. Approvemewcp. -
Sign in
Run
/mcp, pickmewcpand choose Authenticate.
Check it works
Run:
Code
mewcp should show as connected. Inside a Claude Code session, /mcp shows the same status and lets you see MewCP's tools.
You will see four tools, not the tools of every app: search, get_schema, manage_connections and call_tool. That is expected. Claude uses them to find and run the right tool for whatever you ask. See How MewCP works.
Then ask for something from an app you have connected:
Code
If you have two accounts connected for the same app, say which one you mean:
Code
Use an API key instead
For a machine with no browser, such as a CI runner or a remote server, send an API key from Dashboard → API Keys instead of signing in. Replace API_KEY with your key:
Code
In a shared .mcp.json, read the key from each person's environment so it never goes into version control:
Code
Then set export MEWCP_API_KEY="API_KEY" in your shell profile (~/.zshrc or ~/.bashrc) and open a new terminal.
Use a variable with a name of your own, such as MEWCP_API_KEY. Claude Code never puts some credential variables into a remote server's headers, such as ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN and NPM_TOKEN: they read as empty, so MewCP receives Bearer with no key.
Troubleshooting
MewCP works in one project but not in others
It was added with the default local scope, which belongs to the folder you ran the command in. Remove it there and add it again for all projects:
Code
MewCP needs authentication
Claude Code has not signed in yet, or the sign-in has expired. Run /mcp, pick mewcp and choose Authenticate. See OAuth Sign-In for errors on the sign-in page.
claude mcp list shows ✘ Failed to connect
- With sign-in, authenticate again from
/mcp. - With an API key, check the header reads
Authorization: Bearerfollowed by the whole key, which starts withmewcp_proj_. With.mcp.json, checkMEWCP_API_KEYis set in the terminal you start Claude from. - A
403that says your plan's billing period has ended means your MewCP plan needs renewing under Billing.
Claude Code does not retry an authentication error on its own. After fixing it, start a new session, or open /mcp and reconnect mewcp.
has a "url" but no "type"
The .mcp.json entry is missing "type": "http". Add it next to url.
⏸ Pending approval
The server comes from a project's .mcp.json and you have not approved it yet. Run claude in the project and approve it. To see the approval prompt again after declining, run claude mcp reset-project-choices.
Last updated on 29 November 2026.