# Cursor

> Connect Cursor to the Socialit MCP server.

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

```json title="mcp.json"
{
  "mcpServers": {
    "socialit": {
      "url": "https://api.socialit.com/mcp"
    }
  }
}
```

Cursor opens the Socialit sign-in the first time a tool is used. With an API key instead:

```json title="mcp.json"
{
  "mcpServers": {
    "socialit": {
      "url": "https://api.socialit.com/mcp",
      "headers": { "Authorization": "Bearer sk_live_…" }
    }
  }
}
```

Keep keys out of shared repositories: use the project file only with environment-specific secrets, or the global file.

---

Source: https://socialit.com/docs/mcp/cursor/
