Skip to main content

Agent Development Kit (ADK)

Integrate Firecrawl with Google's ADK using MCP for advanced agent workflows
3 min read

Integrate Firecrawl with Google's Agent Development Kit (ADK) to build powerful AI agents with web scraping capabilities through the Model Context Protocol (MCP).

Overview#

Firecrawl provides an MCP server that seamlessly integrates with Google's ADK, enabling your agents to efficiently scrape, crawl, and extract structured data from any website. The integration supports both cloud-based and self-hosted Firecrawl instances with streamable HTTP for optimal performance.

Features#

  • Efficient web scraping, crawling, and content discovery from any website
  • Advanced search capabilities and intelligent content extraction
  • Deep research
  • Flexible deployment (cloud-based or self-hosted)
  • Optimized for modern web environments with streamable HTTP support

Prerequisites#

  • Obtain an API key for Firecrawl from firecrawl.dev
  • Install Google ADK

Setup#

Set FIRECRAWL_API_KEY in the environment that starts ADK. Do not put its value in agent prompts, source control, or the MCP URL. The local MCP package requires Node.js 22 or newer.

Available Tools#

ToolNameDescription
Scrape Toolfirecrawl_scrapeScrape content from a single URL with advanced options
Map Toolfirecrawl_mapMap a website to discover all indexed URLs on the site
Search Toolfirecrawl_searchSearch the web and optionally extract content from search results
Crawl Toolfirecrawl_crawlStart an asynchronous crawl with advanced options
Check Crawl Statusfirecrawl_check_crawl_statusCheck the status of a crawl job

Configuration#

Required Configuration#

FIRECRAWL_API_KEY: Your Firecrawl API key

  • Required when using cloud API (default)
  • Optional when using self-hosted instance with FIRECRAWL_API_URL

Optional Configuration#

Firecrawl API URL (for self-hosted instances):

  • FIRECRAWL_API_URL: Custom API endpoint
  • Example: https://firecrawl.your-domain.com
  • If not provided, the cloud API will be used

Example: Web Research Agent#

Best Practices#

  1. Use the right tool for the job:

    • firecrawl_search when you need to find relevant pages first
    • firecrawl_scrape for single pages
    • firecrawl_crawl for discovering and scraping entire sites
    • repeated firecrawl_scrape calls when you already have a short list of known URLs
  2. Monitor your usage: Use your Firecrawl dashboard and API responses to track credit usage.

  3. Handle errors gracefully: Surface MCP/API errors to the user and retry only when your agent workflow can do so safely.

  4. Optimize performance: Use firecrawl_map before scraping when the agent needs to discover relevant URLs.