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

# Cursor

> Connect the gork-mcp server to Cursor.

<Steps>
  <Step title="Get an API key">
    Generate a key in the [Console](https://gork.email/dashboard). Keys start with `gork_live_`.
  </Step>

  <Step title="Add the server config">
    Add the `gork` block to your **project** `.cursor/mcp.json` (shared with the repo) or your **global** Cursor MCP config:
  </Step>
</Steps>

```json theme={null}
{
  "mcpServers": {
    "gork": {
      "command": "npx",
      "args": ["-y", "-p", "@gork/sdk", "gork-mcp"],
      "env": { "GORK_API_KEY": "gork_live_YOUR_KEY" }
    }
  }
}
```

<Steps>
  <Step title="Refresh">
    Open Cursor Settings → Features → MCP and refresh the server list until `gork` shows as connected.
  </Step>

  <Step title="Verify">
    Ask the agent: *"List my inboxes."* It should call `gork_list_inboxes` and show your addresses.
  </Step>
</Steps>

<Note>
  Override the API base with `"GORK_BASE_URL": "https://..."` alongside `GORK_API_KEY` in `env` if needed.
</Note>
