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

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 の検索、スクレイピング、クロール、ブラウザの各ツールを OpenCode に追加します。

クイックスタート

1. APIキーを取得

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

2. OpenCode に Firecrawl を追加する

OpenCode は ~/.config/opencode/config.json (グローバル) またはプロジェクト内の ./opencode.json から設定を読み込みます。以下を追加します:
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "firecrawl": {
      "type": "local",
      "command": ["npx", "-y", "firecrawl-mcp"],
      "environment": {
        "FIRECRAWL_API_KEY": "fc-YOUR-API-KEY"
      }
    }
  }
}
fc-YOUR-API-KEY をご自身の Firecrawl APIキーに置き換えてください。

3. OpenCodeを起動する

opencode
OpenCode は起動時に MCP サーバーを読み込みます。Firecrawl が接続されていることを確認してください:
/mcp

クイックデモ

Search the web for "Bun 2.0 changelog" and summarize the top results.
Scrape https://docs.firecrawl.dev/introduction and list the code examples.
Crawl https://example.com/blog and save each post as markdown.

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

{
  "mcp": {
    "firecrawl": {
      "type": "remote",
      "url": "https://mcp.firecrawl.dev/fc-YOUR-API-KEY/v2/mcp"
    }
  }
}

トラブルシューティング

  • サーバーが接続されていない — MCP の読み込みエラーを確認するには、opencode doctor を実行します。
  • npx で権限が拒否される — Node.js 18 以降をインストールし、シェルがそのインストールを認識していることを確認してください (which npx) 。