Optimal routing of research tasks across Perplexity MCP, Firecrawl MCP, and Context7 MCP.
From claude-code-expertnpx claudepluginhub markus41/claude --plugin claude-code-expertThis skill uses the workspace's default tool permissions.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
Optimal routing of research tasks across Perplexity MCP, Firecrawl MCP, and Context7 MCP. Each tool has distinct strengths ā use the right one for each job.
| Tool | Best For | Cost | Speed |
|---|---|---|---|
| Context7 | Library/framework docs, API reference | Free | Fast (cached <5ms) |
| Perplexity Ask | Knowledge Q&A, current events, fact-checking | ~$0.02/query | Fast |
| Perplexity Research | Deep investigations, comprehensive reports | ~$0.10/query | Slow |
| Firecrawl Scrape | Extract content from specific URL | 1 credit | Fast |
| Firecrawl Map | Discover all URLs on a site | 1 credit | Fast |
| Firecrawl Extract | Structured JSON from pages | 5-20 credits | Medium |
| Firecrawl Agent | Autonomous multi-page research | 100-1500+ credits | Slow |
What do you need to find out?
āā LIBRARY DOCS?
ā "How does React useEffect work?"
ā "What's the Prisma findMany API?"
ā "Next.js App Router conventions?"
ā āāā Context7 (resolve-library-id ā query-docs)
ā Free, current, version-specific, no hallucination
ā
āā GENERAL KNOWLEDGE?
ā "What is the latest in AI?"
ā "Explain event sourcing"
ā "Compare Redis vs Memcached"
ā āāā Perplexity Ask (perplexity_ask)
ā Fast, cheap, citations included
ā
āā CURRENT EVENTS?
ā "What happened at AWS re:Invent?"
ā "Latest security vulnerability in Log4j?"
ā āāā Perplexity Search (perplexity_search)
ā Real-time web search with ranked results
ā
āā DEEP RESEARCH?
ā "Comprehensive comparison of 5 auth solutions"
ā "Full analysis of microservice vs monolith tradeoffs"
ā āāā Perplexity Research (perplexity_research)
ā Deep-Research model, thorough, multiple sources
ā
āā EXTRACT FROM KNOWN URL?
ā "Get the pricing from https://example.com/pricing"
ā "Extract the API reference from this page"
ā āāā Firecrawl Scrape (firecrawl_scrape)
ā 1 credit, clean markdown or JSON output
ā
āā FIND PAGES ON A SITE?
ā "What docs pages exist on docs.example.com?"
ā "Find the webhook documentation page"
ā āāā Firecrawl Map (firecrawl_map)
ā Discover URLs, then scrape the relevant ones
ā
āā STRUCTURED DATA EXTRACTION?
ā "Get all product prices as JSON from this catalog"
ā "Extract API endpoints with parameters"
ā āāā Firecrawl Extract (firecrawl_extract)
ā Custom JSON schema extraction
ā
āā COMPLEX MULTI-SOURCE?
"Research X across official docs, blogs, and forums"
āāā Chain: Context7 ā Perplexity ā Firecrawl
1. Context7: Official library docs (free)
2. Perplexity: Broader knowledge synthesis ($0.02)
3. Firecrawl: Extract from specific URLs found (1 credit each)
onlyMainContent: true to skip headers/footerswaitFor: 5000search parameter to find specific pageslimit and maxDiscoveryDepthfirecrawl_agent_statusQuality audits and planners MUST use Context7.
Before auditing code:
1. Identify libraries used in the code under review
2. Context7: resolve-library-id for each library
3. Context7: query-docs for current best practices
4. Compare code against official patterns
5. Flag deviations as audit findings with doc links
Before designing architecture:
1. List all proposed libraries/frameworks
2. Context7: verify API compatibility for each
3. Context7: check for breaking changes between versions
4. Context7: find recommended integration patterns
5. Include doc-backed justifications in plan
During review:
1. Identify library API calls in changed code
2. Context7: verify correct API usage
3. Context7: check for deprecated methods
4. Flag incorrect usage with links to official docs
For a typical research task:
| Approach | Cost | When to Use |
|---|---|---|
| Context7 only | Free | Library docs, API reference |
| Perplexity only | ~$0.02 | Knowledge Q&A, current events |
| Context7 + Perplexity | ~$0.02 | Library + broader context |
| Perplexity + Firecrawl Scrape | ~$0.03 | Knowledge + extraction |
| Full chain (all 3) | ~$0.05 | Comprehensive research |
| Firecrawl Agent | $0.08-$1.20 | AVOID ā use chain instead |
Rule: Start cheap (Context7 ā Perplexity ā Firecrawl Scrape). Only escalate if cheaper tools don't have the answer.