mcpField
F
firecrawl-web

firecrawl-web

github.com/bexgboostデータ・データベース2184 回インストール42 週間前に更新
リポジトリ

firecrawl-web について

firecrawl-web は、Firecrawl API でウェブページを取得・処理するスキルです。ページ取得、スクリーンショット、構造化データ抽出、検索、クロールに対応します。

主な機能

  1. 01ページを Markdown で取得
  2. 02ページ全体を撮影
  3. 03JSON Schema によるデータ抽出
  4. 04ウェブ検索
  5. 05ドキュメントサイトのクロール

活用シーン

  1. 01ナビゲーションを除いてページを読む
  2. 02確認用にページを撮影
  3. 03製品情報を構造化して収集
  4. 04最新情報をウェブで検索

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/bexgboost/firecrawl-claude-code-skill --skill firecrawl-web

インストール後、Claude Code で/firecrawl-webを入力して読み込まれたか確認します。

同梱ファイル

SKILL.md と一緒にインストールされる参考資料やスクリプト。

README.md
requirements.txt
.gitignore
fc.py

詳細

Firecrawl ウェブスキル

このスキルでは、Firecrawl の API を通じてウェブにアクセスできます。

スクリプトの場所

すべてのコマンドで、バンドルされたスクリプトを使用します: ~/.claude/skills/firecrawl-web/fc.py

ページコンテンツの取得

任意のウェブページを読みやすい Markdown として取得します:

python3 ~/.claude/skills/firecrawl-web/fc.py markdown "https://example.com"

ナビゲーションやフッターを除いて、より読みやすい出力にするには:

python3 ~/.claude/skills/firecrawl-web/fc.py markdown "https://example.com" --main-only

スクリーンショットの撮影

ページ全体のスクリーンショットを撮影します:

python3 ~/.claude/skills/firecrawl-web/fc.py screenshot "https://example.com" -o page.png

構造化データの抽出

JSON スキーマを使って特定のデータを抽出します。まずスキーマファイルを作成します:

{
  "type": "object",
  "properties": {
    "title": {"type": "string"},
    "price": {"type": "number"},
    "features": {"type": "array", "items": {"type": "string"}}
  }
}

次に抽出します:

python3 ~/.claude/skills/firecrawl-web/fc.py extract "https://example.com/product" --schema schema.json

精度を高めるには、プロンプトを追加します:

python3 ~/.claude/skills/firecrawl-web/fc.py extract "https://example.com/product" --schema schema.json --prompt "Extract the main product details"

ウェブの検索

最新情報を検索します:

python3 ~/.claude/skills/firecrawl-web/fc.py search "Python 3.13 new features"

検索結果を制限します:

python3 ~/.claude/skills/firecrawl-web/fc.py search "latest React documentation" --limit 3

ドキュメントのクロール

新しいフレームワークについて調べるため、ドキュメントサイトをクロールします:

python3 ~/.claude/skills/firecrawl-web/fc.py crawl "https://docs.newframework.dev" --limit 30

ページをディレクトリに保存します:

python3 ~/.claude/skills/firecrawl-web/fc.py crawl "https://docs.example.com" --limit 50 --output ./docs

各ページの取得にはクレジットを 1 つ消費します。クォータを使い切らないよう、適切な上限を設定してください。

コメント