# Connect Cursor

> Add the Wavegrain MCP server to Cursor with an access key read from the environment.

> Index of these docs: https://wavegrain.com/developers/llms.txt

1. Make an access key in Settings, under Connect an AI agent, and save it as `WAVEGRAIN_MCP_TOKEN` in the environment Cursor starts from.
2. Add this to `~/.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "wavegrain": {
      "url": "https://wavegrain.com/api/mcp",
      "headers": {
        "Authorization": "Bearer ${env:WAVEGRAIN_MCP_TOKEN}"
      }
    }
  }
}
```

3. Open Cursor's MCP settings and check that `wavegrain` lists its tools.

Cursor replaces `${env:WAVEGRAIN_MCP_TOKEN}` with the key when it connects.
