How to Connect Hermes Agent to MewCP
Add MewCP to Hermes Agent once, and Hermes can use every app you have connected in MewCP: Gmail, Calendar, Slack, GitHub and the rest. Hermes 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
- Hermes Agent installed with MCP support. The standard install script includes it (Hermes docs)
- A MewCP account with at least one app connected under Apps
Set up MewCP
-
Open your config
Edit
config.yamlin your Hermes config directory,~/.hermes. If you use a named Hermes profile, edit that profile's config under~/.hermes/profiles/<name>/instead. -
Add the server
Put this under the top-level
mcp_servers:key:CodeAlready have an
mcp_servers:section? Add only themewcp:entry under it, at the same indentation as your other servers. -
Reload
Run
/reload-mcpin Hermes, or start a fresh session. 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
From a shell, run:
Code
It connects, lists the tools it found, and exits with 0 on success, 1 if the connection failed, or 3 if mewcp is not in your config.
You will see four tools, not the tools of every app. Hermes names them mcp__mewcp__search, mcp__mewcp__get_schema, mcp__mewcp__manage_connections and mcp__mewcp__call_tool. That is expected. Hermes uses them to find and run the right tool for whatever you ask. See How MewCP works.
Then ask Hermes for something from an app you have connected:
Code
Use an API key instead
For a machine with no browser, send an API key from Dashboard → API Keys instead of signing in.
Add the key to ~/.hermes/.env, or to your profile's .env:
Code
Then use this entry, without auth: oauth:
Code
Run /reload-mcp after every change, including changes to the key in .env.
Troubleshooting
hermes mcp test exits with 1
The connection failed.
- With sign-in, Hermes has not signed in yet or the sign-in has expired. Run
/reload-mcpand sign in again. See OAuth Sign-In for errors on the sign-in page. - With an API key, check the header reads
Bearer ${MEWCP_API_KEY}, with the space afterBearer, and thatMEWCP_API_KEYholds the whole key, which starts withmewcp_proj_. - A
403that says your plan's billing period has ended means your MewCP plan needs renewing under Billing.
hermes mcp test exits with 3
Hermes found no server named mewcp. Check the entry sits under the top-level mcp_servers: key in ~/.hermes/config.yaml, with YAML indentation of spaces, not tabs.
${MEWCP_API_KEY} in url/headers is not set
With an API key, Hermes refuses to connect when a variable in the URL or headers has no value, rather than sending the literal text. Check MEWCP_API_KEY is in the .env of the profile you are running, then run /reload-mcp.
Changes to config.yaml do nothing
Hermes reads MCP servers when a session starts. Run /reload-mcp after every change.
A call returns outcome_uncertain after Hermes sat idle
If the connection to MewCP expired while Hermes was idle, Hermes does not retry a tool call that might change something, since it cannot tell whether the first attempt ran. Check whether the action happened before asking again. Read-only calls are retried for you.
Last updated on 29 November 2026.