Official Tavily search MCP server
## Tavily MCP Server: Search API for AI Agents The **Tavily MCP Server** integrates the search API designed specifically for AI agents directly into Google Antigravity, enabling AI assistants to perform optimized web searches with clean, LLM-ready results. This integration brings agent-optimized search to your development workflow. ### Why Tavily MCP? - **Agent-Optimized**: Built specifically for AI agents with clean, structured responses - **Fast Responses**: Optimized for speed with pre-processed, relevant content extraction - **Context-Aware**: Search results tailored for LLM consumption without HTML noise - **Answer Generation**: Option to get direct answers alongside search results - **Customizable Depth**: Control search depth from quick lookups to comprehensive research ### Key Features #### 1. Quick Search ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Quick search for the latest Next.js version and its new features" }], tools=[{ "name": "tavily_search", "description": "Fast web search" }] ) ``` #### 2. Deep Search ```python # Comprehensive search response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Deep search for microservices deployment best practices with examples" }], tools=[{"name": "tavily_deep", "description": "Comprehensive search"}] ) ``` #### 3. Answer Mode ```python # Get direct answers response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "What is the current LTS version of Node.js?" }], tools=[{"name": "tavily_answer", "description": "Direct answers"}] ) ``` #### 4. Domain Focus ```python # Search specific domains response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Search for authentication patterns on github.com and stackoverflow.com only" }], tools=[{"name": "tavily_domains", "description": "Domain-focused search"}] ) ``` ### Configuration ```json { "mcpServers": { "tavily": { "command": "npx", "args": ["-y", "@anthropic/mcp-tavily"], "env": { "TAVILY_API_KEY": "your-tavily-api-key" } } } } ``` ### Use Cases **AI Agent Tools**: Power autonomous agents with reliable, fast web search capabilities. **Real-Time Data**: Access current information for applications requiring fresh data. **Research Automation**: Automate research tasks with structured, clean results. **Fact Checking**: Verify information with quick searches returning relevant sources. The Tavily MCP Server brings agent-optimized search directly into your development workflow, enabling fast and reliable information retrieval for AI applications.
{
"mcpServers": {
"tavily": {
"mcpServers": {
"tavily": {
"env": {
"TAVILY_API_KEY": "YOUR_TAVILY_API_KEY"
},
"args": [
"-y",
"@tavily/mcp-server"
],
"command": "npx"
}
}
}
}
}