Add batch scrape tools (firecrawl_batch_scrape, firecrawl_check_batch_scrape_status)#181
Open
MaxwellCalkin wants to merge 1 commit into
Open
Add batch scrape tools (firecrawl_batch_scrape, firecrawl_check_batch_scrape_status)#181MaxwellCalkin wants to merge 1 commit into
MaxwellCalkin wants to merge 1 commit into
Conversation
Fixes firecrawl#113. The crawl tool description referenced "map + batch_scrape" as a recommended workflow, but no batch scrape tool existed in the MCP server. Add two new tools using the JS SDK's startBatchScrape() and getBatchScrapeStatus() methods: - firecrawl_batch_scrape: starts a batch scrape job for a list of URLs with support for scrapeOptions, webhook, ignoreInvalidURLs, and maxConcurrency - firecrawl_check_batch_scrape_status: polls job status and retrieves results Also update the crawl tool description to reference the correct tool name (firecrawl_batch_scrape instead of bare "batch_scrape"). AI disclosure: this PR was authored by an AI (Claude Opus 4.6, Anthropic).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #113
Problem
The
firecrawl_crawltool description references "map + batch_scrape" as a recommended workflow for large-scale scraping, but there is no batch scrape tool registered in the MCP server. The JS SDK (@mendable/firecrawl-js) already exposesstartBatchScrape()andgetBatchScrapeStatus()methods, but the MCP server never wired them up as tools.Solution
Add two new tools following the same patterns as the existing crawl/check_crawl_status pair:
firecrawl_batch_scrape— Starts a batch scrape job for a list of URLs usingclient.startBatchScrape(). AcceptsscrapeOptions(reuses the existingscrapeParamsSchema),webhook/webhookHeaders(disabled in safe mode),ignoreInvalidURLs, andmaxConcurrency. Returns the job ID and status URL.firecrawl_check_batch_scrape_status— Polls a batch scrape job usingclient.getBatchScrapeStatus(). Returns status, progress (completed/total), and scraped data when available.Also updates the
firecrawl_crawldescription to reference the correct tool name (firecrawl_batch_scrapeinstead of barebatch_scrape).Changes
src/index.ts: Add two newserver.addTool()calls afterfirecrawl_check_crawl_status. Fix crawl description references.Testing
tsc --noEmitpasses with zero errors)!SAFE_MODEjust like crawl