# Hermes

Source: https://docs.simail.ai/mcp/hermes/

> Add the simail MCP server to a Hermes agent profile in config.yaml, with a key kept outside the config file.

Hermes connects to remote MCP servers listed under `mcp_servers` in the profile's `config.yaml`
(`~/.hermes/config.yaml` for the default profile).

Create an inbox-scoped key in the console. Put it in the profile's environment file
(`~/.hermes/.env`), readable only by the user that runs Hermes:

```sh
SIMAIL_API_KEY=sk_…
```

```sh
chmod 600 ~/.hermes/.env
```

## `config.yaml`

```yaml
mcp_servers:
  simail:
    url: "https://api.simail.ai/mcp"
    headers:
      Authorization: "Bearer ${SIMAIL_API_KEY}"
    timeout: 120
    tools:
      # Optional: expose only what this agent needs.
      include:
        - list_threads
        - get_thread
        - get_message
        - reply_to_message
        - get_send_status
```

If your Hermes version does not expand `${…}` variables inside `config.yaml`, put the key value there
directly and make sure the file is readable only by the Hermes user.

## Check

```sh
hermes mcp list
```

`simail` should be enabled, with the selected tools. Start a new session to pick up the change.

## Notes

- One profile per inbox: give each Hermes profile its own inbox-scoped key.
- Email content returned by the tools is untrusted; see [MCP server](/mcp/#untrusted-content). Keep
  the agent's other powerful tools (terminal, file system) in a separate profile from the one that
  reads mail.
