MewCPMewCP
  • AstheTech
  • Contact Us
  • Documentation
  • MewCP Auth API
Have a question?
  • ✉ Contact us - our dev team will reach out as soon as possible

© 2026 MewCP. All rights reserved.

githubx
Getting Started
Connect AI Apps
    Claude DesktopClaude CodeVS CodeCursorCodexOpenCodeOpenClawAntigravityHermesDeepSeek Harness
Frameworks & SDKs
Authentication
Auth API Guides
powered by Zudoku
Connect AI Apps

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, so there is nothing to install.

There are two ways to set it up:

MethodMewCP loads inBest for
One commandEvery project on your machineMost people
.mcp.json fileOne project, for everyone who opens itSharing the setup with a team

Before you start

  • Claude Code installed. Check with claude --version, or see Claude Code setup
  • A API Key from Dashboard → API Keys, see API Key
  • At least one app connected in the dashboard under Servers

Option A: One command

Run this in your terminal, replacing API_KEY with your key:

TerminalCode
claude mcp add --transport http --scope user mewcp https://gateway.mewcp.com/personal/mcp \ --header "Authorization: Bearer API_KEY"

Claude Code prints an Added ... line when it has saved the server.

Keep --scope user. Without it, Claude Code uses its default local scope and MewCP loads only in the folder you ran the command from.

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 still uses their own key, so each of them reaches their own apps.

  1. Add the file

    Create .mcp.json in the project root, or add the mewcp entry to the one you have:

    Code
    { "mcpServers": { "mewcp": { "type": "http", "url": "https://gateway.mewcp.com/personal/mcp", "headers": { "Authorization": "Bearer ${MEWCP_API_KEY}" } } } }

    Keep "type": "http". Claude Code reads an entry without a type as a local command and skips it.

    ${MEWCP_API_KEY} is read from each person's environment, so the key never goes into version control. You can commit this file.

  2. Set your key

    Add your key to your shell profile (~/.zshrc or ~/.bashrc), then open a new terminal:

    TerminalCode
    export MEWCP_API_KEY="API_KEY"
  3. Approve the server

    Run claude in the project. Claude Code asks before it uses a server from a project's .mcp.json for the first time. Approve mewcp.


Check it works

Run:

TerminalCode
claude mcp list

mewcp should show ✔ 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, list_accounts 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
What is on my calendar tomorrow?

If you have two accounts connected for the same app, say which one you mean:

Code
Check my work Gmail for anything from the design team.

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:

TerminalCode
claude mcp remove mewcp --scope local claude mcp add --transport http --scope user mewcp https://gateway.mewcp.com/personal/mcp \ --header "Authorization: Bearer API_KEY"

claude mcp list shows ✘ Failed to connect

Usually MewCP rejected the key.

  • Check the header reads Authorization: Bearer followed by the whole key, which starts with mcp_live_.
  • With .mcp.json, check MEWCP_API_KEY is set in the terminal you start Claude from: echo $MEWCP_API_KEY. If it is not set, Claude Code sends the literal text ${MEWCP_API_KEY} and claude mcp list warns about a missing variable.
  • A 403 that says the billing period is not active means your MewCP plan needs renewing in the dashboard.

Claude Code does not retry an authentication error on its own. After fixing the key, start a new session, or open /mcp and reconnect mewcp.

The key is set but MewCP still gets no 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. Use a variable with a name of your own, such as MEWCP_API_KEY, as in the example above.

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 checked against Claude Code's documentation on 13 October 2026.

Last modified on October 15, 2026
Claude DesktopVS Code
On this page
  • Before you start
  • Option A: One command
  • Option B: .mcp.json in a project
  • Check it works
  • Troubleshooting
    • MewCP works in one project but not in others
    • claude mcp list shows ✘ Failed to connect
    • The key is set but MewCP still gets no key
    • has a "url" but no "type"
    • ⏸ Pending approval
JSON