> ## Documentation Index
> Fetch the complete documentation index at: https://firecrawl-capy-docs-factual-copy-fixes.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 在 Cursor 中使用 MCP 实现网页搜索与抓取

> 用 2 分钟为 Cursor 接入网页抓取与搜索功能

export const CursorInstallButton = () => {
  const installUrl = `cursor://anysphere.cursor-deeplink/mcp/install?name=firecrawl&config=${btoa(JSON.stringify({
    url: "https://mcp.firecrawl.dev/v2/mcp-oauth"
  }))}`;
  return <div className="fc-agent-prompt fc-openai-install not-prose">
      <div className="fc-openai-install-actions">
        <a className="fc-agent-prompt-button" href={installUrl}>
          <img src="/images/agent-clients/cursor.svg" width="20" height="20" alt="" />
          Add to Cursor
          <span aria-hidden="true">↗</span>
        </a>
      </div>
    </div>;
};

通过远程托管的 MCP 服务器，将 Firecrawl 连接到 Cursor，然后使用你的 Firecrawl 账户登录。

<CursorInstallButton />

<h2 id="quick-setup">
  快速配置
</h2>

1. 点击上方的 **Add to Cursor**，在 Cursor 中打开安装对话框。
2. 确认安装 Firecrawl MCP 服务器。
3. 在 Cursor 中通过该服务器的登录选项连接你的 Firecrawl 账户，并授予访问权限。
4. 确认 Cursor 中已可使用 Firecrawl 的工具。

<Accordion title="想手动添加配置？">
  打开 Cursor Settings，选择 **MCP**，然后添加以下内容：

  ```json theme={null}
  {
    "mcpServers": {
      "firecrawl": {
        "url": "https://mcp.firecrawl.dev/v2/mcp-oauth"
      }
    }
  }
  ```

  保存配置，然后在 Cursor 中完成浏览器登录。
</Accordion>

更多详情请参见 [OAuth 连接指南](/zh/mcp-server/oauth)。如需在无人值守的场景下使用，请[配置 API 密钥](/zh/mcp-server/keyless#add-an-api-key)。

<h2 id="try-it">
  试用
</h2>

```text theme={null}
搜索最新的 TypeScript 版本发布说明，并总结这些来源。
```

```text theme={null}
抓取 https://firecrawl.dev 并说明它的作用。
```

<h2 id="what-you-can-do">
  你可以用它做什么
</h2>

<CardGroup cols={2}>
  <Card title="搜索" icon="magnifying-glass" href="/zh/features/search">
    查找最新信息，并读取相关结果的内容。
  </Card>

  <Card title="抓取" icon="file-lines" href="/zh/features/scrape">
    将 URL 转换为干净的 markdown 或结构化数据。
  </Card>

  <Card title="交互" icon="hand-pointer" href="/zh/features/interact">
    通过页面导航、点击和表单填写，获取所需数据。
  </Card>

  <Card title="Alexandria" icon="books" href="/zh/features/alexandria">
    发现结构化数据工具，查看其输入参数和定价，然后通过 Firecrawl 运行这些工具。
  </Card>
</CardGroup>

<h2 id="troubleshooting">
  故障排除
</h2>

* \*\*服务器无法连接：\*\*确认 URL 是否准确为 `https://mcp.firecrawl.dev/v2/mcp-oauth`，并检查 Cursor 的 MCP 状态。
* \*\*提示需要登录或登录已过期：\*\*在 Cursor 的 MCP 设置中重新发起身份验证。
* \*\*已存在另一个 Firecrawl 连接：\*\*将现有服务器更新为 OAuth URL 并登录，确保只有一个 Firecrawl 服务器处于启用状态。


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