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

# Gemini CLI で MCP Web Search とスクレイピング

> Google Gemini CLI に Firecrawl の Web スクレイピングと検索機能を追加

MCP 経由で、Firecrawl の検索、スクレイピング、クロール、ブラウザツールを [Google Gemini CLI](https://github.com/google-gemini/gemini-cli) に追加します。

<div id="quick-setup">
  ## クイックセットアップ
</div>

<div id="1-get-your-api-key">
  ### 1. APIキーを取得する
</div>

[firecrawl.dev/app](https://www.firecrawl.dev/app) でサインアップし、APIキーをコピーします。

<div id="2-add-firecrawl-to-gemini-cli">
  ### 2. Gemini CLI に Firecrawl を追加
</div>

Gemini CLI は、`~/.gemini/settings.json` (グローバル) またはプロジェクト内の `.gemini/settings.json` から MCP 設定を読み込みます。次を追加します:

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

`fc-YOUR-API-KEY` をお使いのFirecrawl APIキーに置き換えてください。

<div id="3-launch-gemini-cli">
  ### 3. Gemini CLI を起動する
</div>

```bash theme={null}
gemini
```

サーバーが起動していることを確認します：

```
/mcp list
```

`firecrawl` とそのツールが表示されるはずです。

<div id="quick-demo">
  ## クイックデモ
</div>

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

<div id="remote-hosted-url-no-nodejs-required">
  ## リモートホストのURL (Node.jsは不要)
</div>

```json theme={null}
{
  "mcpServers": {
    "firecrawl": {
      "url": "https://mcp.firecrawl.dev/fc-YOUR-API-KEY/v2/mcp"
    }
  }
}
```

<div id="troubleshooting">
  ## トラブルシューティング
</div>

* **ツールが表示されない** — `settings.json` を編集したら Gemini CLI を再起動してください。MCP サーバーは起動時に読み込まれます。
* **`spawn npx ENOENT`** — Node.js 18 以降をインストールするか、リモートホストのURLを使用してください。
* **レート制限がかかる** — [firecrawl.dev/pricing](https://www.firecrawl.dev/pricing) で Firecrawl のプランをアップグレードしてください。
