Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: test

on:
pull_request:
push:
branches: [main]

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: node --test
2 changes: 1 addition & 1 deletion .grok-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "firecrawl",
"version": "1.3.2",
"version": "1.4.0",
"description": "The context API for AI agents. Search the live web, scrape any page into clean Markdown or structured data, and interact with dynamic pages, plus crawl, map, monitor, developer search, and Alexandria data providers, through the hosted Firecrawl MCP server or the Firecrawl CLI skills.",
"author": {
"name": "Firecrawl",
Expand Down
2 changes: 1 addition & 1 deletion .mcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"firecrawl": {
"type": "http",
"url": "https://mcp.firecrawl.dev/v2/mcp-oauth",
"note": "Official Firecrawl hosted MCP server, OAuth endpoint. On first connection the agent is prompted to authorize in the browser; no API key to paste. Tools: scrape, search, developer_search, find_tools (Alexandria), map, crawl, extract, agent, interact, monitor."
"note": "Official Firecrawl hosted MCP server, OAuth endpoint. On first connection the agent is prompted to authorize in the browser; no API key to paste. Tools: scrape, search, developer_search, gov_search, find_tools (Alexandria), map, crawl, agent, interact, parse, monitor, paper research, feedback, credit_usage."
}
}
}
29 changes: 23 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

The context API for AI agents, in Grok Build: search, scrape, and interact with the web, and get back clean Markdown or structured data.

This plugin bundles Firecrawl's hosted [MCP server](https://github.com/firecrawl/firecrawl-mcp-server) plus a set of skills, giving Grok Build the ability to scrape, search, crawl, map, extract, and monitor the web, run Alexandria data providers for structured records, and search an index of developer sources for code questions. Installing the plugin wires up the MCP automatically — the first web action signs you in through your browser, with no API key to paste.
This plugin bundles Firecrawl's hosted [MCP server](https://github.com/firecrawl/firecrawl-mcp-server) plus a set of skills, giving Grok Build the ability to scrape, search, crawl, map, extract, and monitor the web, parse documents, run Alexandria data providers for structured records, and search indexes of developer sources, primary legal text, and scientific papers. Installing the plugin wires up the MCP automatically — the first web action signs you in through your browser, with no API key to paste.

**The hosted MCP is the primary way this plugin works** — its native `firecrawl_*` tools are the default execution path for every web operation. The [Firecrawl CLI](https://github.com/firecrawl/cli) is an optional fallback, used only when the MCP is unavailable or for local-file workflows (`download`/`parse`) that a remote server can't perform.
**The hosted MCP is the primary way this plugin works** — its native `firecrawl_*` tools are the default execution path for every web operation. The [Firecrawl CLI](https://github.com/firecrawl/cli) is an optional fallback, used only when the MCP is unavailable or to download a site to local files, which a remote server can't do.

## Features

Expand All @@ -15,6 +15,9 @@ This plugin bundles Firecrawl's hosted [MCP server](https://github.com/firecrawl
- **Map** - Discover all URLs on a website
- **Crawl** - Extract content from entire websites
- **Interact** - Drive a live browser session on a scraped page — click, fill forms, navigate flows, handle pagination/infinite scroll, and log in
- **Parse** - Turn a local PDF, Word, spreadsheet, or HTML file into Markdown, a summary, or structured data
- **Legal and paper research** - Search US statutes, regulations, and court opinions, and search, inspect, and read scientific papers
- **Monitor** - Watch pages for changes and get notified by webhook or email

All operations include automatic JavaScript rendering, anti-bot handling, and proxy rotation.

Expand All @@ -30,16 +33,16 @@ The first time Grok uses a Firecrawl tool, you'll be prompted to authorize in yo

**That's it.** No global npm install, no manual key management.

### Optional: Firecrawl CLI (for local-file parsing)
### Optional: Firecrawl CLI (fallback and downloads)

The bundled MCP covers the full remote toolset (scrape, search, find_tools, crawl, map, extract, agent, interact, monitor). The one capability it can't provide is parsing files on your local disk — for that, install the [Firecrawl CLI](https://github.com/firecrawl/cli):
The bundled MCP covers the full toolset (scrape, search, find_tools, crawl, map, agent, interact, parse, monitor, gov and paper search, feedback, and credit usage). Local files reach `parse` through a one-time upload. The one thing it can't do is save a whole site to your disk; for that, or when the MCP isn't connected, install the [Firecrawl CLI](https://github.com/firecrawl/cli):

```bash
npm install -g firecrawl-cli
firecrawl login --browser # or: firecrawl login --api-key "fc-YOUR-API-KEY"
```

The `firecrawl-cli` and `firecrawl-parse` skills use the CLI when present. **Get your free API key at:** https://firecrawl.dev/app/api-keys
The skills fall back to the CLI when the MCP isn't connected. **Get your free API key at:** https://firecrawl.dev/app/api-keys

## Usage

Expand Down Expand Up @@ -83,7 +86,7 @@ Research the latest developments in AI agents and give me a summary

### CLI Commands (optional fallback)

By default the plugin uses the bundled hosted MCP. The Firecrawl CLI is only needed when the MCP is unavailable or for local-file workflows (`download`/`parse`). When used, it runs these commands:
By default the plugin uses the bundled hosted MCP. The Firecrawl CLI is only needed when the MCP is unavailable or to download a site to files. When used, it runs these commands:

| Command | Description |
| -------------------------- | ------------------------------------------------------------------------------------ |
Expand Down Expand Up @@ -132,6 +135,20 @@ See the [Firecrawl documentation](https://docs.firecrawl.dev) for self-hosting i
- [API Reference](https://docs.firecrawl.dev/api-reference)
- [Get API Key](https://firecrawl.dev)

## Development

Run the checks with Node 22 or later:

```bash
node --test
```

They check the manifest, skill frontmatter, relative links between skills, that the bundled MCP connection carries no credentials, and that skills name exactly the tools the hosted MCP serves. That tool list is vendored in `tests/mcp-tools.json`; refresh it from [firecrawl-mcp-server](https://github.com/firecrawl/firecrawl-mcp-server) with `node scripts/refresh-mcp-tools.mjs`, then update the skills until the checks pass.

## Releasing

Bumping `version` in `.grok-plugin/plugin.json` is the release. The Grok plugin marketplace pins this repository, and xAI's bot moves the pin when the version changes, so merging a version bump ships everything on `main` to users. A change merged without a bump stays unreleased until the next one. Bump the version in the same PR as the change that should go out.

## License

This plugin is licensed under AGPL-3.0, consistent with Firecrawl's open-source license.
Expand Down
29 changes: 29 additions & 0 deletions scripts/refresh-mcp-tools.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Refreshes tests/mcp-tools.json from the hosted MCP contract snapshot in
// firecrawl/firecrawl-mcp-server. Usage: node scripts/refresh-mcp-tools.mjs [ref]
import { writeFileSync } from 'node:fs';

const repo = 'firecrawl/firecrawl-mcp-server';
const path = 'tests/contract-snapshots/hosted-full.json';
const ref = process.argv[2] ?? 'main';

async function fetchOk(url, init) {
const response = await fetch(url, init);
if (!response.ok) throw new Error(`${url}: HTTP ${response.status}`);
return response;
}

const { sha } = await (
await fetchOk(`https://api.github.com/repos/${repo}/commits/${ref}`, {
headers: { accept: 'application/vnd.github+json' },
})
).json();
const snapshot = await (
await fetchOk(`https://raw.githubusercontent.com/${repo}/${sha}/${path}`)
).json();
const tools = snapshot.sessions.apiKey.tools.map((tool) => tool.split('@')[0]);

writeFileSync(
new URL('../tests/mcp-tools.json', import.meta.url),
`${JSON.stringify({ source: { repo, path, commit: sha }, tools }, null, 2)}\n`
);
console.log(`tests/mcp-tools.json: ${tools.length} tools from ${repo}@${sha}`);
22 changes: 18 additions & 4 deletions skills/firecrawl-cli/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ allowed-tools:
- mcp__firecrawl__firecrawl_map
- mcp__firecrawl__firecrawl_crawl
- mcp__firecrawl__firecrawl_check_crawl_status
- mcp__firecrawl__firecrawl_extract
- mcp__firecrawl__firecrawl_agent
- mcp__firecrawl__firecrawl_agent_status
- mcp__firecrawl__firecrawl_interact
Expand All @@ -24,6 +23,14 @@ allowed-tools:
- mcp__firecrawl__firecrawl_monitor_run
- mcp__firecrawl__firecrawl_monitor_checks
- mcp__firecrawl__firecrawl_monitor_check
- mcp__firecrawl__firecrawl_parse
- mcp__firecrawl__firecrawl_gov_search
- mcp__firecrawl__firecrawl_research_search_papers
- mcp__firecrawl__firecrawl_research_inspect_paper
- mcp__firecrawl__firecrawl_research_related_papers
- mcp__firecrawl__firecrawl_research_read_paper
- mcp__firecrawl__firecrawl_feedback
- mcp__firecrawl__firecrawl_credit_usage
- Bash(firecrawl *)
- Bash(npx firecrawl *)
---
Expand All @@ -42,11 +49,16 @@ This plugin bundles Firecrawl's hosted **MCP server**. When it's connected, pref
| Structured data providers (Alexandria) | `firecrawl_search` (source `alexandria`) + `firecrawl_find_tools`, executed by `firecrawl_scrape` |
| Discover URLs on a site | `firecrawl_map` |
| Bulk-crawl a site | `firecrawl_crawl` (+ `firecrawl_check_crawl_status`) |
| Structured extraction | `firecrawl_extract` / `firecrawl_agent` (+ `firecrawl_agent_status`) |
| Structured extraction | `firecrawl_scrape` with a JSON format, or `firecrawl_agent` (+ `firecrawl_agent_status`) when the URLs aren't known |
| Interact with a page | `firecrawl_interact` (+ `firecrawl_interact_stop`) |
| Watch pages for changes | `firecrawl_monitor_*` |
| Watch pages for changes | `firecrawl_monitor_*` (see [firecrawl-monitor](../firecrawl-monitor/SKILL.md)) |
| Parse a local document | `firecrawl_parse` (upload in two calls, see [firecrawl-parse](../firecrawl-parse/SKILL.md)) |
| Law and regulation | `firecrawl_gov_search` |
| Scientific papers | `firecrawl_research_*` (see [firecrawl-search](../firecrawl-search/SKILL.md)) |
| Report scrape, parse, map, or Alexandria quality | `firecrawl_feedback` |
| Credit balance and usage | `firecrawl_credit_usage` |

The `firecrawl` **CLI** (commands below) is the fallback when the MCP isn't connected, and is **required** for local-filesystem operations the hosted MCP can't do: **download** (save a site to files) and **parse** (read a local PDF/DOCX/etc.).
The `firecrawl` **CLI** (commands below) is the fallback when the MCP isn't connected, and is **required** for **download** (saving a site as local files), which the hosted MCP can't do.

Search, scrape, and interact with the web. Returns clean markdown optimized for LLM context windows.

Expand Down Expand Up @@ -335,6 +347,8 @@ For interact, scrape multiple pages and interact with each independently using t

## Credit Usage

With the MCP, call `firecrawl_credit_usage` (`view: "current"` for the balance, `"historical"` for usage per period). With the CLI:

```bash
firecrawl credit-usage
firecrawl credit-usage --json --pretty -o .firecrawl/credits.json
Expand Down
2 changes: 1 addition & 1 deletion skills/firecrawl-crawl/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Bulk extract content from a website. Crawls pages following links up to a depth/

- You need content from many pages on a site (e.g., all `/docs/`)
- You want to extract an entire site section
- Step 4 in the [workflow escalation pattern](firecrawl-cli): search → scrape → map → **crawl** → interact
- Step 4 in the [workflow escalation pattern](../firecrawl-cli/SKILL.md): search → scrape → map → **crawl** → interact

## Quick start

Expand Down
2 changes: 1 addition & 1 deletion skills/firecrawl-interact/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Interact with scraped pages in a live browser session. Scrape a page first, then
- Content requires interaction: clicks, form fills, pagination, login
- `scrape` failed because content is behind JavaScript interaction
- You need to navigate a multi-step flow
- Last resort in the [workflow escalation pattern](firecrawl-cli): search → scrape → map → crawl → **interact**
- Last resort in the [workflow escalation pattern](../firecrawl-cli/SKILL.md): search → scrape → map → crawl → **interact**
- **Never use interact for web searches** — use `search` instead

## Quick start
Expand Down
2 changes: 1 addition & 1 deletion skills/firecrawl-map/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Discover URLs on a site. Use `--search` to find a specific page within a large s

- You need to find a specific subpage on a large site
- You want a list of all URLs on a site before scraping or crawling
- Step 3 in the [workflow escalation pattern](firecrawl-cli): search → scrape → **map** → crawl → interact
- Step 3 in the [workflow escalation pattern](../firecrawl-cli/SKILL.md): search → scrape → **map** → crawl → interact

## Quick start

Expand Down
4 changes: 2 additions & 2 deletions skills/firecrawl-monitor/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ allowed-tools:

## Via the Firecrawl MCP (preferred)

This plugin bundles the Firecrawl MCP server. When it's connected, prefer the native **`firecrawl_monitor_*`** tools over the CLI — `firecrawl_monitor_create`, `_list`, `_get`, `_update`, `_delete`, `_run`, `_checks`, and `_check`. They need no local install and authenticate through the plugin's one-time browser sign-in. The `firecrawl` CLI commands below are the fallback for when the MCP isn't connected.
This plugin bundles the Firecrawl MCP server. When it's connected, prefer the native **`firecrawl_monitor_*`** tools over the CLI — `firecrawl_monitor_create`, `firecrawl_monitor_list`, `firecrawl_monitor_get`, `firecrawl_monitor_update`, `firecrawl_monitor_delete`, `firecrawl_monitor_run`, `firecrawl_monitor_checks`, and `firecrawl_monitor_check`. They need no local install and authenticate through the plugin's one-time browser sign-in. The `firecrawl` CLI commands below are the fallback for when the MCP isn't connected.

Detect when content on a website changes and get notified by webhook or email. Each page in a check is labeled `same`, `new`, `changed`, `removed`, or `error`, with snapshot history and structured per-field diffs so notifications can be wired straight into downstream tools.

Expand All @@ -29,7 +29,7 @@ Detect when content on a website changes and get notified by webhook or email. E
- Ongoing change detection on any URL: pricing, docs, changelogs, blogs, job boards, status pages, competitor sites, regulatory pages, product availability, hiring pages, top-N rankings (HN, leaderboards, etc.)
- "Alert me when...", "notify me when...", "email me if...", "send a webhook when...", "ping me if X changes", "track this page"
- Anywhere the user would otherwise wire up cron + a scraper + a diff library + SMTP themselves
- Step 5 in the [workflow escalation pattern](firecrawl-cli): search → scrape → map → crawl → **monitor** → interact
- Step 5 in the [workflow escalation pattern](../firecrawl-cli/SKILL.md): search → scrape → map → crawl → **monitor** → interact

**Bias toward `monitor`** whenever the request implies notifications or recurrence. A single page read once = `scrape`. A single page where the user wants to be told when it changes = `monitor --page <url> --goal "..." --email|--webhook-url ...`.

Expand Down
12 changes: 10 additions & 2 deletions skills/firecrawl-parse/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,23 @@ name: firecrawl-parse
description: |
Efficiently extract and convert the contents of any local file—such as PDF, DOCX, DOC, ODT, RTF, XLSX, XLS, or HTML—into clean, well-formatted markdown saved to disk. Use this skill whenever the user requests to parse, read, or extract information from a file on their computer, including phrases like “parse this PDF”, “convert this document”, “read this file”, “extract text from”, or when a local file path (not a URL) is provided. This skill offers advanced options like generating AI-powered summaries and answering questions based on the file's content. Prefer this tool over `scrape` when handling local files to deliver precise, structured outputs for downstream tasks.
allowed-tools:
- mcp__firecrawl__firecrawl_parse
- mcp__firecrawl__firecrawl_feedback
- Bash(firecrawl *)
- Bash(npx firecrawl *)
---

# firecrawl parse

## MCP note
## Via the Firecrawl MCP (preferred)

This is a **local-filesystem** operation — it reads a file (PDF, DOCX, XLSX, etc.) on your machine — so it runs through the `firecrawl` CLI rather than the bundled (hosted) Firecrawl MCP, which cannot access local files. Install the CLI if you haven't: `npm install -g firecrawl-cli` (see the `firecrawl-cli` skill). To parse a document at a URL instead, use the MCP-backed `firecrawl-scrape` skill.
The hosted MCP can't read your disk, so `firecrawl_parse` works in two calls:

1. Call `firecrawl_parse` with `filePath` to get upload instructions.
2. Upload the file's bytes as instructed (the response includes a ready upload command for a local shell).
3. Call `firecrawl_parse` again with the returned `uploadRef` and the output you want (markdown, summary, a question, or JSON with a schema). Don't send `filePath` and `uploadRef` together.

Bound large PDFs with `pdfOptions.maxPages` when you only need part of the document. Keep the upload URL and reference out of your answer. If the result was poor, send `firecrawl_feedback` with `endpoint: "parse"` and the `data.metadata.scrapeId` from the response. The `firecrawl parse` CLI below does the upload in one step and is the fallback when the MCP isn't connected. To parse a document at a URL, use the `firecrawl-scrape` skill instead.

Turn a local document into clean markdown on disk. Supports **PDF, DOCX, DOC, ODT, RTF, XLSX, XLS, HTML/HTM/XHTML**.

Expand Down
Loading
Loading