> ## 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 API key. See [Generate an API Key](/mcp/generate-api-key).
* Claude Code installed on your machine.

***

## Connect LanderLab to Claude Code

Open your terminal and run:

```bash theme={null}
claude mcp add --transport http landerlab \
  https://api.landerlab.dev/api/v2/mcp \
  --header "X-API-Key: ll_live_YOUR_KEY_HERE" \
  --header "Content-Type: application/json" \
  --header "Accept: application/json, text/event-stream"
```

Replace `ll_live_YOUR_KEY_HERE` with your actual API key.

***

## Verify the Connection

Type `/mcp` in Claude Code. You should see `landerlab` listed. To confirm the tools are working, try asking:

```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 command ran without errors and that you replaced the placeholder key with your real key. Run the command again if needed.

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