Skip to main content

Connect to Cursor

Add Lever to Cursor to manage ad campaigns from your editor.

Configuration

Open your Cursor MCP config file at .cursor/mcp.json in your project root (or globally at ~/.cursor/mcp.json):
{
  "mcpServers": {
    "lever": {
      "url": "https://api.leverhq.app/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}
Replace YOUR_API_KEY with the key from your Lever dashboard.

Verify the Connection

In Cursor’s chat, ask:
“What ad accounts do I have connected to Lever?”
Cursor will call the list_connections tool and show your connected accounts.

Troubleshooting

Check that your .cursor/mcp.json is valid JSON. Restart Cursor after saving changes.
Verify your API key is correct. Generate a new one in the Lever dashboard if needed.