Skip to content
Firecrawl Docs
Firecrawl Docs
代理工具集

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

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

通过 MCP 为 Google Gemini CLI 添加 Firecrawl 的搜索、抓取、爬取和浏览器工具。

前往 firecrawl.dev/app 注册,并复制你的 API 密钥。

Gemini CLI 会从 ~/.gemini/settings.json (全局) 或项目中的 .gemini/settings.json 读取 MCP 配置。添加以下内容:

{
  "mcpServers": {
    "firecrawl": {
      "command": "npx",
      "args": ["-y", "firecrawl-mcp"],
      "env": {
        "FIRECRAWL_API_KEY": "fc-YOUR-API-KEY"
      }
    }
  }
}

fc-YOUR-API-KEY 替换为你的 Firecrawl API 密钥。

gemini

确认服务器已启动:

/mcp list

你应该能看到 firecrawl 及其工具。

Use firecrawl to search the web for "Gemini 2.5 context window" and summarize the top 5 results.
Scrape https://ai.google.dev/gemini-api/docs and outline the sections.
Crawl https://example.com and extract the product names from /products.
{
  "mcpServers": {
    "firecrawl": {
      "url": "https://mcp.firecrawl.dev/v2/mcp"
    }
  }
}

此配置使用免密钥 Firecrawl 工具集。对于账户关联或无人值守的设置,请参阅托管 MCP 连接模式;API 密钥应保存在 Authorization 请求头或安全密钥存储中,切勿放入 URL。

  • 工具未显示 — 编辑 settings.json 后,请重启 Gemini CLI;MCP 服务器仅在启动时加载。
  • spawn npx ENOENT — 请安装 Node.js 18+,或使用远程托管 URL。
  • 触发速率限制 — 请前往 firecrawl.dev/pricing 升级你的 Firecrawl 套餐。
Was this page helpful?Suggest editsRaise issue