> ## Documentation Index
> Fetch the complete documentation index at: https://docs.firecrawl.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# 在 Claude.ai 中使用 MCP 进行网页搜索与抓取

> 2 分钟内为 Claude.ai（Co-work）添加网页抓取和搜索功能

通过自定义连接器，借助 Firecrawl MCP 为 Claude.ai 添加网页抓取和搜索功能。

<Note>
  想找 Claude Code 的设置方法？请参见 [Claude Code
  指南](/zh/quickstarts/claude-code)。
</Note>

<div id="quick-setup">
  ## 快速开始
</div>

<div id="1-get-your-api-key">
  ### 1. 获取你的 API 密钥
</div>

前往 [firecrawl.dev/app/api-keys](https://www.firecrawl.dev/app/api-keys) 注册，并复制你的 API 密钥。

<div id="2-add-custom-connector">
  ### 2. 添加自定义连接器
</div>

前往 Claude.ai 的 [Settings > 连接器](https://claude.ai/settings/connectors)，然后点击 **Add custom connector**。

填写以下连接器信息：

* **URL:** `https://mcp.firecrawl.dev/YOUR_API_KEY/v2/mcp`
* **OAuth Client ID:** 留空
* **OAuth Client Secret:** 留空

将 URL 中的 `YOUR_API_KEY` 替换为你的实际 [Firecrawl API 密钥](https://www.firecrawl.dev/app/api-keys)。由于 API 密钥直接嵌入在 URL 中，因此无需填写其他认证字段。

点击 **Add** 以保存连接器。

<Tip>
  **不想将 API 密钥放在 URL 中？** 也可以改用无密钥端点 `https://mcp.firecrawl.dev/v2/mcp` (OAuth 字段仍留空) 。Claude.ai 会打开一个浏览器窗口，引导你登录 Firecrawl 并授权该连接器。详情请参见 [通过 OAuth 连接 MCP 客户端](/zh/developer-guides/mcp-setup-guides/oauth)。
</Tip>

<div id="3-enable-in-conversation">
  ### 3. 在对话中启用
</div>

在任意 Claude.ai 对话中，点击左下角的 **+** 按钮，进入 **连接器**，然后启用 Firecrawl 连接器。

<div id="quick-demo">
  ## 快速演示
</div>

启用 Firecrawl 连接器后，试试以下 prompt：

**进行网页搜索：**

```
Search for the latest Next.js 15 features
```

**抓取网页：**

```
Scrape firecrawl.dev and tell me what it does
```

**查看文档：**

```
Find and scrape the Stripe API docs for payment intents
```

Claude 将自动使用 Firecrawl 的搜索和抓取工具来获取所需信息。
