> ## Documentation Index
> Fetch the complete documentation index at: https://docs.emailagent.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Desktop

Use the stdio MCP server with Claude Desktop.

## Config

Add this to Claude Desktop MCP config:

```json theme={null}
{
  "mcpServers": {
    "emailagent": {
      "command": "emailagent-mcp",
      "env": {
        "EMAILAGENT_API_KEY": "<your_emailagent_api_key>",
        "EMAILAGENT_API_BASE_URL": "https://api.emailagent.dev"
      }
    }
  }
}
```

## Verify

Ask Claude to call:

* `inboxes_list`
* `metrics_get`

If auth/scopes are missing, the tool response includes `ok: false` with mapped API error details.
