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

# Connect LanderLab MCP to Cursor

> Connect your LanderLab account to Cursor using MCP. Add a config file to your project and manage landing pages, analytics, and leads directly from your AI coding assistant.

## What You Need

* A LanderLab API key. See [Generate an API Key](/mcp/generate-api-key).
* Cursor installed on your machine.

***

## Step 1: Open the Config File

Create or edit `.cursor/mcp.json` in your project root.

***

## Step 2: Add the LanderLab Server

```json theme={null}
{
  "mcpServers": {
    "landerlab": {
      "type": "http",
      "url": "https://api.landerlab.dev/api/v2/mcp",
      "headers": {
        "Content-Type": "application/json",
        "Accept": "application/json, text/event-stream",
        "X-API-Key": "ll_live_YOUR_KEY_HERE"
      }
    }
  }
}
```

Replace `ll_live_YOUR_KEY_HERE` with your actual API key.

***

## Step 3: Restart Cursor

Restart the editor. LanderLab tools will appear in your next agent session.

***

## Verify the Connection

Open a new agent session and ask:

```text theme={null}
List my LanderLab workspaces
```

Cursor will call `workspaces_list` and return your results.

***

## Example Prompts

* "List all my landers and their publish status"
* "Show analytics for lander X over the last 7 days"
* "Set A/B test weights to 70/30 for lander X"
* "Show all leads from workspace 1"

***

## Troubleshooting

**LanderLab not showing in the agent** - Make sure `.cursor/mcp.json` is in the project root (not a subfolder) and that the JSON is valid. Restart Cursor after saving.

**401 Unauthorized** - The API key is wrong or revoked. Go to **Organization > API Keys** in LanderLab to check or create a new key.
