ai
Firecrawl MCP, CLI, and Lua Integration for AI Agents
Firecrawl integration docs for AI agents: MCP gateway setup, Firecrawl CLI commands, Lua API reference, credentials, and function schemas.
6 functions 6 read 0 write API key auth
Firecrawl for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
firecrawl- route_slug
firecrawl- package
firecrawl- auth_strategy
api_keyAPI key- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Firecrawl CLIHeadless setup and direct function calls. Firecrawl MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Firecrawl MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Firecrawl.
Claude Code Firecrawl MCP setup for Claude Code. Cursor Firecrawl MCP setup for Cursor. Codex Firecrawl MCP setup for Codex. OpenAI Agents Firecrawl MCP setup for OpenAI Agents SDK. Claude Agent SDK Firecrawl MCP setup for Claude Agent SDK. Vercel AI SDK Firecrawl MCP setup for Vercel AI SDK. LangChain Firecrawl MCP setup for LangChain. LangGraph Firecrawl MCP setup for LangGraph. CrewAI Firecrawl MCP setup for CrewAI. MCP clients Firecrawl MCP setup for Generic MCP Clients.
Firecrawl CLI Matrix
Use these pages for direct Firecrawl CLI workflows in scripts, CI, cron, and agent wrappers.
CI Firecrawl CLI for CI. Cron Jobs Firecrawl CLI for cron jobs. Shell Scripts Firecrawl CLI for shell scripts. Headless Automation Firecrawl CLI for headless automation. Coding Agents Firecrawl CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
firecrawl.firecrawl_scrape | Read read | 8 | Scrape a single URL and extract its content. Returns the page content in the requested format (markdown by default). Supports actions like waiting for JavaScript, taking screenshots, and extracting specific elements. |
firecrawl.firecrawl_crawl | Read read | 9 | Start a crawl job to scrape all pages from a website starting at the given URL. Returns a crawl job ID — use firecrawl_get_crawl_status to check progress and retrieve results. |
firecrawl.firecrawl_get_crawl_status | Read read | 1 | Check the status and retrieve results of a crawl job. Returns the current status (scraping, completed, failed, cancelled) and all scraped data once complete. |
firecrawl.firecrawl_map | Read read | 7 | Map a website to discover all linked URLs. Returns a list of all URLs found on the site without scraping full content. Useful for understanding site structure before crawling. |
firecrawl.firecrawl_extract | Read read | 7 | Extract structured data from one or more URLs using AI. Provide a prompt describing what to extract, or a JSON schema for the expected output format. Ideal for pulling specific data points from web pages. |
firecrawl.firecrawl_get_current_user | Read read | 0 | Get the authenticated user's account information, including plan details and usage statistics. Useful for verifying API key validity and checking remaining credits. |