> ## 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 Claude Code

> Connect your LanderLab account to Claude Code using MCP. Manage landing pages, leads, analytics, and A/B tests directly from your terminal with plain English commands.

## What You Need

* A LanderLab account.
* Claude Code installed on your machine.

***

## Step 1: Add the Server

Open your terminal and run:

```bash theme={null}
claude mcp add --transport http landerlab https://api.landerlab.dev/mcp
```

No API key and no headers are required.

***

## Step 2: Sign In

Type `/mcp` in Claude Code. You should see `landerlab` listed as **needs authentication**. Select it and choose **Authenticate**.

Your browser opens a LanderLab sign-in page. Log in, review the access request, and click **Authorize**. Return to the terminal and the server status changes to **connected**.

***

## Step 3: Verify the Connection

Ask:

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

Claude Code will call `workspaces_list` and return your results.

***

## Example Prompts

Once connected, you can use natural language:

* "List all my landers and their publish status"
* "Show analytics for lander X over the last 7 days"
* "Unpublish lander X"
* "Set A/B test weights to 60/40 for lander X"

***

## Troubleshooting

**Server not showing up in /mcp** - Make sure the `claude mcp add` command ran without errors. Run `claude mcp list` to confirm it was registered.

**Stuck on "needs authentication"** - Run `/mcp`, select `landerlab`, and choose **Authenticate** again. If your browser did not open, copy the URL printed in the terminal and open it manually.

**401 Unauthorized** - Your session expired or access was revoked. Run `/mcp` and re-authenticate.

**Migrating from the API key setup** - Remove the old entry first with `claude mcp remove landerlab`, then run the command in Step 1.
