CrawlForge MCP
CLI

CrawlForge CLI

The crawlforge command ships with the crawlforge-mcp-server package, so a single global install gives you both the MCP server and a standalone CLI for one-off commands and scripting—no MCP client required. Set an API key and you're scraping in seconds.

Install & Authenticate

Install crawlforge-mcp-server globally—the crawlforge command is included. The recommended way to authenticate is crawlforge login, which approves a new key in your browser and stores it in ~/.crawlforge/config.json for the CLI to read automatically; npx crawlforge-setup does the same with a key you paste. Get a key from your API Keys dashboard.

Bash
npm install -g crawlforge-mcp-server
crawlforge login            # browser sign-in (recommended)
npx crawlforge-setup        # or paste a key by hand
crawlforge --help

Dependencies, including crawlforge-extractors, install automatically.

Sign in with crawlforge login

crawlforge login prints an approval URL. Open it in a browser, sign in to CrawlForge and approve the request; the CLI waits for the approval, validates the new key and saves it to ~/.crawlforge/config.json (readable only by you). It gives up after 10 minutes if nobody approves; --wait <seconds> changes that limit.

Bash
crawlforge login                 # prints an approval URL, then waits for you to approve it
crawlforge login --name ci-box   # label the key as it will appear in the dashboard
crawlforge login --wait 120      # stop waiting after 120 s (default 600)
crawlforge login --json          # machine-readable URL and result for scripts

--name sets the key's label in the API Keys dashboard; --json prints the URL and result as JSON for scripts. login only stores the key—run crawlforge init --client <name> afterwards to register the MCP server with Claude Code, Claude Desktop or Cursor, or use the MCP configurator for other clients.

Other ways to authenticate: export CRAWLFORGE_API_KEY=cf_live_... in your ~/.zshrc / ~/.bashrc, or pass --api-key cf_live_... on any command. Priority: --api-key > environment variable > stored config.

Commands

The 16 tool commands below cover 28 of the 31 CrawlForge tools (some commands expose multiple tools via flags; reddit_search, extract_embedded_state and read_result are available via MCP and the REST API only). Run crawlforge <command> --help to see flags and options for any command.

One crawlforge browser invocation is one whole session, and a session cannot span two CLI processes: the command opens the page, snapshots it, runs the steps in --steps, optionally reads, then closes. Use the browser_session MCP tool or the REST API when a session has to outlive the call that opened it.

CommandPurpose
scrapeFetch a URL (fetch_url); add --extract for cleaned text/markdown
searchWeb search (--provider crawlforge or searxng)
crawlDeep multi-page crawl with depth/page/concurrency controls
mapGenerate a sitemap (--format json or xml)
extractStructured extraction via --schema (CSS) or --prompt (LLM)
trackTrack content changes (--selector, --threshold)
analyzeSentiment, entities, and readability analysis
researchMulti-source deep research with source verification
stealthAnti-bot browser mode (--engine playwright or camoufox)
batchScrape many URLs from a newline-delimited file
actionsBrowser automation from a JSON action script (--script)
browserBrowser session run end to end: open, snapshot, act on the refs it returns, read, close (--steps, --read)
localizeLocale/geo-aware fetch (--locale, --country, --currency)
llmstxtGenerate llms.txt and llms-full.txt (--include-full)
templateRun a pre-built site template (--list shows all 10)
monitorScheduled change monitoring (--interval, --webhook)

Skills installers

Two helper commands copy CrawlForge skill files into your AI coding tool so it knows how to use every CrawlForge command.

CommandPurpose
install-skillsInstall CrawlForge skills into Claude Code, Cursor, or VS Code (--target, --dry-run)
uninstall-skillsRemove installed CrawlForge skill files (--target)
Running the MCP server by hand: the same binary also starts the server over stdio with crawlforge mcp (alias crawlforge serve). MCP clients normally launch it for you—see the Claude Desktop and Cursor guides.

Examples

1. Scrape a page as clean markdown

Bash
crawlforge scrape https://example.com --extract --format markdown

Without --extract the command runs fetch_url (raw headers + body); with it, extract_content returns cleaned text or markdown. Add --pretty to print indented JSON.

2. Run deep research with multiple sources

Bash
crawlforge research "AI agent frameworks 2026" --depth deep --max-urls 10

Analyzes up to 10 sources, verifies citations, and emits a structured research report. Depth is basic, standard, or deep. Costs 10 credits.

3. Use a pre-built site template

Bash
crawlforge template github-repo https://github.com/anthropics/claude-code --pretty
crawlforge template --list   # show all 10 templates

Templates extract a known schema for popular sites (GitHub repos, Amazon products, YouTube videos, and more) without writing selectors yourself. The target URL is a positional argument.

4. Pipe JSON into other tools

Bash
crawlforge search "nodejs MCP server" --json | jq '.results[].url'

--json emits single-line JSON for shell pipelines and CI; --quiet returns only an exit code.

Global Flags

These flags work with any command and shape how output is delivered.

FlagDescription
--jsonOutput compact JSON (pipe-friendly)
--prettyOutput pretty-printed JSON
--quietSuppress all stdout output (exit code only)
--api-key <key>Override the CRAWLFORGE_API_KEY env var
--timeout <ms>Global request timeout in ms (default: 30000)

Next Steps

API Reference
All 31 tools, parameters, and credit costs.
MCP Protocol
Use the same backend from any MCP-compatible client.
Getting Started
5-minute quickstart for new accounts.
Ready to scrape from the terminal?
Sign up for free credits and start running commands in minutes.
Get Free CreditsManage API Keys

Footer

CrawlForge MCP

Enterprise web scraping for AI Agents. 31 specialized MCP tools designed for modern developers building intelligent systems.

Product

  • Features
  • Playground
  • Pricing
  • Use Cases
  • Integrations
  • Alternatives
  • Changelog

Resources

  • Getting Started
  • API Reference
  • Templates
  • Guides
  • Blog
  • Glossary
  • FAQ
  • Sitemap

Developers

  • MCP Protocol
  • Claude Desktop
  • Cursor IDE
  • LangChain
  • LlamaIndex

Company

  • About
  • Contact
  • Privacy
  • Terms
  • Acceptable Use
  • Security
  • Cookies

Stay updated

Get the latest updates on new tools and features.

Built with Next.js and MCP protocol

© 2025-2026 CrawlForge. All rights reserved.