# Connect Mochi to Hermes Agent

Hermes Agent by Nous Research supports remote MCP servers out of the box. New to Mochi MCP? Start with the [overview](https://themochi.app/docs/integrations-and-tracking/mcp).

**Server URL:** `https://mcp.themochi.app/mcp`

## Add Mochi

1. Open `~/.hermes/config.yaml` and add Mochi under `mcp_servers`:

   ```yaml
   mcp_servers:
     mochi:
       url: "https://mcp.themochi.app/mcp"
       auth: oauth
   ```

2. Sign in:

   ```bash
   hermes mcp login mochi
   ```

   Hermes prints a sign-in link and opens your browser when it can. Sign in to Mochi, **pick your workspace** and approve. Hermes waits five minutes for you to finish.

3. In a running session, run `/reload-mcp`, or start a new session.

4. Optional: check the connection with `hermes mcp test mochi`.

Hermes stores the sign-in in `~/.hermes/mcp-tokens/mochi.json` and refreshes it automatically.

## On a server without a browser

Run `hermes mcp login mochi`, open the printed link on another device, and paste the redirect URL back into the terminal when asked. An SSH port-forward to the callback port also works.

## Troubleshooting

| Problem | Fix |
| --- | --- |
| Mochi stopped working in the background gateway | The background gateway and `/reload-mcp` never open a browser. Run `hermes mcp login mochi` again in a terminal. |
| The login timed out | Run it again. You can also raise `oauth.timeout` in the config. |

Checked against the [Hermes Agent MCP documentation](https://hermes-agent.nousresearch.com/docs/user-guide/features/mcp) on 26 November 2026.
