Overview
AI-native search API optimized for LLM agents with deep search and answer extraction.
Setup
Run with npx:
npx -y @modelcontextprotocol/server-tavily-searchConfiguration
TAVILY_API_KEY environment variableDocumentation
Tavily Search MCP
Overview
Tavily Search MCP provides access to Tavily's AI-native search API, specifically designed for LLM agents. Unlike traditional search APIs, Tavily returns structured results with extracted answers, making it ideal for AI agent workflows that need to understand and synthesize search results.
Features
- AI-Optimized Results: Returns search results with extracted answers and context
- Deep Search: Performs multi-step research with source verification
- Answer Extraction: Gets direct answers from search results
- Source Attribution: Full citation of sources for fact-checking
- Search Depth Control: Choose between "basic" and "advanced" search modes
- Result Filtering: Filter by content type, date range, and domain
Installation
npx -y @modelcontextprotocol/server-tavily-search
Configuration
Add to your Claude Desktop config:
{
"mcpServers": {
"tavily-search": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-tavily-search"],
"env": {
"TAVILY_API_KEY": "your-api-key"
}
}
}
}
Getting API Credentials
- Sign up at Tavily
- Get your API key from the dashboard
- Free tier includes 1000 searches/month
Available Tools
| Tool | Description |
|---|---|
search | Perform a web search with Tavily's AI-optimized algorithm |
deep_research | Conduct multi-step research with comprehensive analysis |
Usage Examples
Basic Search
Search for: "How does CrewAI work?"
Returns structured results with:
- Query
- Answer summary
- Individual results with titles, URLs, and content snippets
- Source citations
Deep Research
Deep research on: "Compare LangGraph vs CrewAI for multi-agent systems"
Performs multi-step research:
- Initial search to understand the topic
- Follow-up searches for specific aspects
- Synthesis of findings into comprehensive answer
Search with Filters
Search with:
- Query: "LangChain documentation"
- Search depth: advanced
- Max results: 10
- Include domains: ["python.langchain.com"]
Claude Desktop Setup
- Install the MCP server
- Add configuration to
claude_desktop_config.json - Restart Claude Desktop
- The Tavily Search tool will appear in your available tools
Pros
- ✅ AI-native design optimized for LLM consumption
- ✅ Built-in answer extraction and synthesis
- ✅ Deep research capability for complex queries
- ✅ Excellent source attribution
- ✅ Generous free tier (1000 searches/month)
- ✅ Fast response times
Cons
- ❌ Requires API key (paid for high volume)
- ❌ Less customizable than raw search APIs
- ❌ Results may differ from Google directly
- ❌ Advanced features require paid plan
