> ## 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 Windsurf

> Connect your LanderLab account to Windsurf using MCP. Add the server, sign in once, and manage landing pages, leads, and analytics directly from the Windsurf editor.

## What You Need

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

***

## Step 1: Add the Server

Go to **Windsurf Settings > MCP**, or edit the config file directly at:

```text theme={null}
~/.codeium/windsurf/mcp_config.json
```

Add the LanderLab server:

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

No API key and no headers are needed.

***

## Step 2: Sign In

Reopen **Windsurf Settings > MCP**. The `landerlab` server shows a **Login** or **Authenticate** action. Click it, sign in to LanderLab in the browser window that opens, and click **Authorize**.

***

## Step 3: Verify the Connection

Open a new session and ask:

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

Windsurf will call `workspaces_list` and return your results.

***

## Example Prompts

* "List all my landers and their status"
* "Show analytics for lander X over the last 7 days"
* "Unpublish lander X"
* "Show all leads from workspace 1"

***

## Troubleshooting

**LanderLab tools not available** - Confirm the config file path is correct and the JSON is valid. Restart Windsurf after any change, then refresh the MCP server list.

**Server stuck as unauthenticated** - Click **Login** next to `landerlab` in the MCP settings pane. Allow pop-ups if the browser window does not open.

**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 Windsurf.
