# Cursor

URL: https://docs.sigment.ai/connect/cursor

Add Sigment to Cursor's MCP settings.

Add the server to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (one project):

```json title="mcp.json"
{
  "mcpServers": {
    "sigment": { "url": "https://api.sigment.ai/mcp" }
  }
}
```

Cursor shows a **Needs login** button next to the server. Click it, sign in with Sigment, and approve the agent in **Sigment → Settings → AI agents**.

To use an [API key](https://docs.sigment.ai/connect/api-keys) instead, add a header:

```json
{
  "mcpServers": {
    "sigment": {
      "url": "https://api.sigment.ai/mcp",
      "headers": { "Authorization": "Bearer ${env:SIGMENT_API_KEY}" }
    }
  }
}
```
