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

# Gemini CLI 中的 MCP 网页搜索与抓取

> 为 Google Gemini CLI 添加 Firecrawl 的网页抓取与搜索功能

通过远程托管的 MCP 服务器为 [Google Gemini CLI](https://github.com/google-gemini/gemini-cli) 添加 Firecrawl 的免密钥 Search、Scrape 和 Parse 工具。

<div id="quick-setup">
  ## 快速设置
</div>

将以下内容添加到 `~/.gemini/settings.json` 或项目的 `.gemini/settings.json` 中：

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

重启 Gemini CLI，运行 `/mcp list`，确认 `firecrawl_search`、`firecrawl_scrape` 和 `firecrawl_parse` 是否可用。

免密钥访问的限额由使用同一公共 IP 的用户共享。通过 [For Humans](/zh/mcp-server/oauth) 从交互式客户端登录，或为无人值守使用[添加 API 密钥](/zh/mcp-server/keyless#add-an-api-key)。

<div id="try-it">
  ## 试用
</div>

```text theme={null}
Use Firecrawl to search the web for "Gemini context window" and summarize the sources.
```

```text theme={null}
Scrape https://ai.google.dev/gemini-api/docs and outline the sections.
```

<div id="troubleshooting">
  ## 故障排查
</div>

* \*\*工具未显示：\*\*编辑 `settings.json` 后，请重启 Gemini CLI；MCP 服务器在启动时加载。
* \*\*Crawl 或其他工具缺失：\*\*免密钥仅提供 Search、Scrape 和 Parse。请通过 OAuth 或 API 密钥连接，以使用更广泛的工具集。
