メインコンテンツへスキップ

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.

MCP を介して、Firecrawl の検索、スクレイピング、クロール、ブラウザツールを OpenAI Codex CLI に追加します。

クイックスタート

1. APIキーを取得する

firecrawl.dev/app で登録し、APIキーをコピーします。

2. Codex に Firecrawl を追加する

Codex は ~/.codex/config.toml から MCP Server の設定を読み込みます。Firecrawl サーバーを追加してください。
[mcp_servers.firecrawl]
command = "npx"
args = ["-y", "firecrawl-mcp"]

[mcp_servers.firecrawl.env]
FIRECRAWL_API_KEY = "fc-YOUR-API-KEY"
fc-YOUR-API-KEY をお使いの Firecrawl APIキーに置き換えてください。

3. Codex を起動する

codex
Codex は起動時に Firecrawl ツールを検出します。正しく読み込まれていることを確認してください。
/mcp
firecrawl_searchfirecrawl_scrapefirecrawl_crawlfirecrawl_extract などのツールとともに、firecrawl が一覧に表示されているはずです。

クイックデモ

次のプロンプトを試してください:
Next.js App Routerの最新リリースノートをウェブで検索し、要約してください。
スクレイピング https://docs.firecrawl.dev and list the top-level sections.
クロール https://example.com and save the markdown for every page under /blog.

リモートホストのURL (Node.js不要)

ローカルで npx を実行したくない場合:
[mcp_servers.firecrawl]
url = "https://mcp.firecrawl.dev/fc-YOUR-API-KEY/v2/mcp"

トラブルシューティング

  • Codex でツールを認識できないcodex --version を実行して、MCP をサポートするバージョンを使用していることを確認し、config.toml を編集した後に CLI を再起動してください。
  • spawn npx ENOENT — Node.js 18 以降をインストールし、npxPATH に含まれていることを確認するか、上記のリモートホストのURLに切り替えてください。
  • 401 / 無効なキーfirecrawl.dev/app/api-keys で API キーを再生成してください。