> ## 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 the server, sign in once, and manage landing pages, analytics, and leads directly from your AI coding assistant.

## What You Need

* A LanderLab account.
* Cursor installed on your machine.

***

## Step 1: Add the Server

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

```json theme={null}
{
  "mcpServers": {
    "landerlab": {
      "type": "http",
      "url": "https://api.landerlab.dev/mcp"
    }
  }
}
```

No API key and no headers are needed.

<Tip>
  To use LanderLab across every project, add the same block to `~/.cursor/mcp.json` instead.
</Tip>

***

## Step 2: Sign In

Open **Cursor Settings > MCP**. The `landerlab` server appears with a **Login** or **Needs authentication** button. Click it.

A LanderLab sign-in page opens in your browser. Log in, review the access request, and click **Authorize**. The server status turns green once complete.

***

## Step 3: 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.

**Server shows as needing authentication** - Open **Cursor Settings > MCP** and click **Login** next to `landerlab`. If the browser does not open, copy the URL shown in the MCP logs.

**401 Unauthorized** - Your session expired or access was revoked in LanderLab. Sign in again from the MCP settings pane.

**Migrating from the API key setup** - Remove the `headers` block and change the URL to `https://api.landerlab.dev/mcp`, then restart Cursor.
