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

# 将 LanderLab MCP 连接到 Cursor

> 通过 MCP 将你的 LanderLab 账户连接到 Cursor。添加服务器，登录一次，即可直接在 AI 编程助手中管理落地页、数据分析和线索。

## 准备工作

* 一个 LanderLab 账户。
* 在你的电脑上安装 Cursor。

## 第 1 步：添加服务器

在项目根目录中创建或编辑 `.cursor/mcp.json`：

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

无需 API 密钥，也无需请求头。

<Tip>
  如果想在所有项目中使用 LanderLab，请改为将同样的代码块添加到 `~/.cursor/mcp.json`。
</Tip>

## 第 2 步：登录

打开 **Cursor Settings > MCP**。`landerlab` 服务器旁会显示 **Login** 或 **Needs authentication** 按钮，点击它。

浏览器中会打开 LanderLab 登录页面。登录后查看访问请求并点击 **Authorize**。完成后，服务器状态会变为绿色。

## 第 3 步：验证连接

打开一个新的 agent 会话并输入：

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

Cursor 会调用 `workspaces_list` 并返回结果。

## 示例提示词

* “列出我所有的落地页及其发布状态”
* “显示落地页 X 最近 7 天的数据分析”
* “将落地页 X 的 A/B 测试权重设置为 70/30”
* “显示工作区 1 的所有线索”

## 故障排查

**agent 中没有显示 LanderLab** - 确保 `.cursor/mcp.json` 位于项目根目录（而不是子文件夹）中，并且 JSON 有效。保存后重启 Cursor。

**服务器显示需要验证** - 打开 **Cursor Settings > MCP**，点击 `landerlab` 旁边的 **Login**。如果浏览器没有打开，请复制 MCP 日志中显示的 URL。

**401 Unauthorized** - 你的会话已过期，或访问权限已在 LanderLab 中被撤销。请在 MCP 设置面板中重新登录。

**从 API 密钥方式迁移** - 删除 `headers` 代码块，并将 URL 改为 `https://api.landerlab.dev/mcp`，然后重启 Cursor。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.