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

# 在 Factory AI 中使用 MCP 进行网页搜索与爬取

> 用 2 分钟为 Factory AI 接入网页爬取与搜索功能

使用 Firecrawl MCP 为 Factory AI 接入网页爬取与搜索功能。

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

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

在 [firecrawl.dev/app](https://firecrawl.dev/app) 注册并复制你的 API 密钥。

<div id="2-install-factory-ai-cli">
  ### 2. 安装 Factory AI CLI
</div>

如果尚未安装，请先安装 [Factory AI CLI](https://docs.factory.ai/cli/getting-started/quickstart)：

**macOS/Linux：**

```bash theme={null}
curl -fsSL https://app.factory.ai/cli | sh
```

**Windows：**

```powershell theme={null}
iwr https://app.factory.ai/cli/install.ps1 -useb | iex
```

<div id="3-add-firecrawl-mcp-server">
  ### 3. 添加 Firecrawl MCP Server
</div>

在 Factory droid CLI 中，使用 `/mcp add` 命令添加 Firecrawl：

```bash theme={null}
/mcp add firecrawl "npx -y firecrawl-mcp" -e FIRECRAWL_API_KEY=your-api-key-here
```

将 `your-api-key-here` 替换为你实际的 Firecrawl API 密钥。

<div id="4-done">
  ### 4. 完成！
</div>

现在，你的 Factory AI 会话中已可使用 Firecrawl 工具！

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

在 Factory AI 中试试以下操作：

**搜索全网：**

```
搜索最新的 Next.js 15 功能
```

**抓取页面：**

```
抓取 firecrawl.dev 并告诉我它是做什么的
```

**查看文档：**

```
查找并抓取 Stripe API 文档中的 Payment Intents 部分
```

Factory 将自动借助 Firecrawl 的搜索与抓取工具获取信息。
