> ## 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.

# Cursor

Use EmailAgent MCP in Cursor via stdio.

## Cursor 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"
      }
    }
  }
}
```

## First tool calls

1. `inboxes_list`
2. `emails_list` with optional `inboxId`
3. `emails_mark_read` with `id` and `isRead`
