A sophisticated multi-agent system built with Google ADK that uses Firecrawl MCP tools for web scraping and coordinates between specialized research and summary agents.
Sign in to save downloads to your library and vote.
Preview
Multi-Agent Web Research System (YAML-based)
A sophisticated multi-agent system built with Google ADK that uses Firecrawl MCP tools for web scraping and coordinates between specialized research and summary agents.
Architecture
This system consists of:
- Main Coordinator Agent (
root_agent.yaml) - Orchestrates the entire workflow - Research Agent (
research_agent.yaml) - Uses Firecrawl MCP tools for web scraping and content analysis - Summary Agent (
summary_agent.yaml) - Creates comprehensive reports and summaries - Firecrawl MCP Integration - Advanced web scraping with proper sub-agent configuration
Features
- ๐ Advanced Web Scraping: Uses Firecrawl MCP tools for reliable content extraction
- ๐ฌ Intelligent Content Analysis: Research agent extracts insights, patterns, and key data
- ๐ Comprehensive Report Generation: Summary agent creates structured reports and recommendations
- ๐ค Multi-Agent Coordination: Main agent orchestrates the entire workflow seamlessly
- ๐ Secure API Management: Firecrawl API key managed via environment variables
- โก Sub-Agent MCP Support: Properly configured MCP tools in sub-agents
Setup
Prerequisites
-
Install Google ADK:
pip install google-adk -
Get Firecrawl API key from firecrawl.dev
-
Set environment variables in
.envfile:Option A: Google AI Studio (Recommended for development)
GOOGLE_GENAI_USE_VERTEXAI=0 GOOGLE_API_KEY=<your-google-gemini-api-key> FIRECRAWL_API_KEY=<your-firecrawl-api-key>Option B: Vertex AI (Recommended for production)
GOOGLE_GENAI_USE_VERTEXAI=1 GOOGLE_CLOUD_PROJECT=<your-gcp-project-id> GOOGLE_CLOUD_LOCATION=us-central1 FIRECRAWL_API_KEY=<your-firecrawl-api-key>Getting API Keys:
- Google AI Studio: Get your API key from Google AI Studio
- Vertex AI: Set up authentication using Google Cloud Authentication
- Firecrawl: Get your API key from Firecrawl
Installation
-
Navigate to the agent directory:
cd ai_agent_framework_crash_course/google_adk_crash_course/adk_yaml_examples/multi_agent_web_research_team/multi_agent_web_researcher -
Verify ADK installation:
adk --version
Usage
Running the Agent
Choose one of these methods to run your agent:
-
Web Interface (Recommended for testing):
adk web -
Command Line:
adk run -
API Server (For integration):
adk api_server
Agent Configuration
Main Agent (root_agent.yaml)
The coordinator agent that:
- Delegates tasks to specialized sub-agents
- Coordinates between research and summary agents
- Synthesizes final comprehensive reports
- Provides clear instructions to sub-agents
Research Agent (research_agent.yaml)
Specialized for web scraping and content analysis:
- Firecrawl MCP Tools: Uses
firecrawl_scrapeandfirecrawl_search - Content Analysis: Extracts key findings and insights
- Pattern Recognition: Identifies trends and relationships
- Data Extraction: Highlights important quotes and data points
- Research Suggestions: Suggests areas for further investigation
Available Firecrawl Tools:
firecrawl_scrape: Scrape content from single URLsfirecrawl_search: Search the web for relevant contentfirecrawl_batch_scrape: Scrape multiple URLs efficientlyfirecrawl_map: Discover URLs on websitesfirecrawl_crawl: Comprehensive website crawling
Summary Agent (summary_agent.yaml)
Specialized for report generation:
- Creates executive summaries
- Organizes information by topic
- Generates key takeaways
- Provides actionable recommendations
Workflow
- Input: User provides URL or research topic
- Delegation: Main agent passes clear instructions to research_agent
- Web Scraping: Research agent uses Firecrawl MCP tools to extract content
- Analysis: Research agent analyzes scraped content for insights
- Summarization: Summary agent creates comprehensive report
- Synthesis: Main agent combines findings into final report
Environment Variables
Google AI Studio Configuration
| Variable | Description | Required |
|---|---|---|
GOOGLE_GENAI_USE_VERTEXAI | Set to 0 for Google AI Studio | Yes |
GOOGLE_API_KEY | Google Gemini API key from AI Studio | Yes |
FIRECRAWL_API_KEY | Firecrawl API key for web scraping | Yes |
Vertex AI Configuration
| Variable | Description | Required |
|---|---|---|
GOOGLE_GENAI_USE_VERTEXAI | Set to 1 for Vertex AI | Yes |
GOOGLE_CLOUD_PROJECT | Your Google Cloud Project ID | Yes |
GOOGLE_CLOUD_LOCATION | GCP region (e.g., us-central1) | Yes |
FIRECRAWL_API_KEY | Firecrawl API key for web scraping | Yes |
Authentication Methods
Google AI Studio:
- Simple API key authentication
- Best for development and testing
- No Google Cloud setup required
Vertex AI:
- Enterprise-grade authentication
- Best for production deployments
- Requires Google Cloud Project setup
- Supports advanced features like grounding and safety settings
Example Usage
Web Interface
- Run
adk web - Open browser to the provided URL
- Enter a URL or research topic (e.g., "Scrape and analyze https://example.com" or "Research AI trends")
- Watch the multi-agent system process your request
Command Line
adk run
# Enter your research query when prompted
Troubleshooting
Common Issues
- API Key Errors: Ensure all required API keys are set in
.env - ADK Not Found: Make sure ADK is installed and Python environment is activated
- Firecrawl Errors: Verify your Firecrawl API key is valid and has sufficient credits
- MCP Connection Issues: Check that Node.js and npm are properly installed
- Authentication Issues:
- Google AI Studio: Verify your API key is valid and has proper permissions
- Vertex AI: Ensure Google Cloud authentication is set up correctly (
gcloud auth application-default login) - Project ID: Verify your Google Cloud Project ID is correct for Vertex AI
References
Ingestion metadata
- Source catalog
- awesome-llm-apps
- Repository
- Shubhamsaboo/awesome-llm-apps ยท main
- File path
- ai_agent_framework_crash_course/google_adk_crash_course/adk_yaml_examples/multi_agent_web_research_team/README.md
- Last refreshed
- 7/23/2026, 10:39:09 PM (4h ago)
- Refresh schedule
- Daily ยท 03:00 UTC
- Dedupe status
- Unique ยท deduped by (source, url)