The Tavily MCP Server for Claude is an implementation of the Model Context Protocol (MCP) developed by Anthropic. It enables seamless integration between AI assistants like Claude and Tavily's advanced search and data extraction tools. This integration provides real-time access to web information, complete with sophisticated filtering options and domain-specific search features.
tavily-search
and tavily-extract
tools.Before getting started, ensure you have the following:
- Tavily API Key: Sign up for a free account here.
- Claude Desktop or Cursor: Download Claude Desktop or Cursor.
- Node.js: Version 20 or higher. Verify installation with node --version
.
- Git: Required for cloning the repository. Install via:
- macOS: brew install git
- Linux (Debian/Ubuntu): sudo apt install git
- Linux (RedHat/CentOS): sudo yum install git
- Windows: Download Git for Windows.
npx -y [email protected]
npx -y @smithery/cli install @tavily-ai/tavily-mcp --client claude
shell
git clone https://github.com/tavily-ai/tavily-mcp.git
cd tavily-mcp
shell
npm install
shell
npm run build
Alternatively, manually configure by editing the cline_mcp_settings.json
file:
{
"mcpServers": {
"tavily-mcp": {
"command": "npx",
"args": ["-y", "[email protected]"],
"env": {
"TAVILY_API_KEY": "your-api-key-here"
},
"disabled": false,
"autoApprove": []
}
}
}
shell
env TAVILY_API_KEY=your-api-key npx -y [email protected]
For macOS:
touch "$HOME/Library/Application Support/Claude/claude_desktop_config.json"
open -e "$HOME/Library/Application Support/Claude/claude_desktop_config.json"
For Windows:
code %APPDATA%\Claude\claude_desktop_config.json
Add the Tavily server configuration:
{
"mcpServers": {
"tavily-mcp": {
"command": "npx",
"args": ["-y", "[email protected]"],
"env": {
"TAVILY_API_KEY": "your-api-key-here"
}
}
}
}
Can you search for recent developments in quantum computing?
Search for news articles about AI startups from the last 7 days.
Search for climate change research on nature.com and sciencedirect.com.
Extract the main content from this article: https://example.com/article
Search for news articles about AI startups from the last 7 days and extract the main content from each article to generate a detailed report.
npx
executable.This project is licensed under the MIT License.