Why Tavily Over Google API
| Feature | Google Search API | Tavily |
|---|---|---|
| Output | HTML snippets | Clean text, LLM-ready |
| Content extraction | Manual scraping needed | Built-in |
| Source quality | All results | Filtered for relevance |
| Token efficiency | Wasteful (HTML tags) | Optimized for LLMs |
| Pricing | Per query | 1,000 free/month |
MCP Tools Available
tavily_search
"Search for best practices for deploying Claude Code in enterprise"Returns: clean text results with URLs and relevance scores.
tavily_extract
"Extract the main content from https://docs.anthropic.com/en/docs/agents"Returns: clean markdown from any URL.
Python SDK
from tavily import TavilyClient
client = TavilyClient(api_key="tvly-...")
# Basic search
results = client.search("latest AI agent frameworks 2026")
# Advanced search with content extraction
results = client.search(
query="Claude Code best practices",
search_depth="advanced",
include_raw_content=True,
max_results=5
)
for r in results["results"]:
print(f"{r['title']}: {r['content'][:200]}")Integration with Agent Frameworks
# LangChain
from langchain_community.tools import TavilySearchResults
tool = TavilySearchResults(max_results=5)
# CrewAI
from crewai_tools import TavilySearchTool
search = TavilySearchTool()Key Stats
- 5,000+ GitHub stars
- 1,000 free searches/month
- LLM-optimized output
- MCP server + Python/JS SDKs
- LangChain, CrewAI integrations
FAQ
Q: What is Tavily? A: Tavily is a search API built for AI agents that returns clean, LLM-ready text results instead of HTML, with built-in content extraction and source attribution.
Q: Is Tavily free? A: Free tier includes 1,000 searches/month. Paid plans for higher volume.
Q: How is Tavily different from Firecrawl? A: Tavily is a search engine — it finds relevant pages. Firecrawl is a scraper — it extracts content from URLs you specify. They complement each other.