> ## 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 连接到 Windsurf

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

## 准备工作

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

## 第 1 步：添加服务器

前往 **Windsurf Settings > MCP**，或直接编辑以下配置文件：

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

添加 LanderLab 服务器：

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

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

## 第 2 步：登录

重新打开 **Windsurf Settings > MCP**。`landerlab` 服务器会显示 **Login** 或 **Authenticate** 操作。点击它，在打开的浏览器窗口中登录 LanderLab，然后点击 **Authorize**。

## 第 3 步：验证连接

打开一个新会话并输入：

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

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

## 示例提示词

* “列出我所有的落地页及其状态”
* “显示落地页 X 最近 7 天的数据分析”
* “取消发布落地页 X”
* “显示工作区 1 的所有线索”

## 故障排查

**LanderLab 工具不可用** - 确认配置文件路径正确且 JSON 有效。每次修改后重启 Windsurf，然后刷新 MCP 服务器列表。

**服务器一直显示未验证** - 在 MCP 设置面板中点击 `landerlab` 旁边的 **Login**。如果浏览器窗口没有打开，请允许弹出窗口。

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

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


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