Search the web using Tavily API
Tavily Search provides a seamless integration with the Tavily API to perform web searches directly from your AI assistant. This MCP server enables you to search the web for up-to-date information, retrieve relevant results, and get AI-summarized answers to your queries. The search results include both an AI-generated response and the source URLs with titles for reference.
Tavily Search is an MCP server that connects to the Tavily API to perform web searches based on your queries. It returns comprehensive search results including AI-generated summaries, source URLs, and titles of the search results.
Before installing Tavily Search, you need to:
The easiest way to install Tavily Search is through Smithery:
npx -y @smithery/cli install tavily-search --client claude
git clone https://github.com/Tomatio13/mcp-server-tavily.git
Navigate to the Claude Desktop configuration file:
~/Library/Application\ Support/Claude/claude_desktop_config.json
C:\Users\[username]\AppData\Roaming\Claude\claude_desktop_config.json
Add the following configuration to the JSON file:
"mcpServers": {
"tavily-search": {
"command": "uv",
"args": [
"--directory",
"PATH_TO_REPOSITORY/mcp-server-tavily",
"run",
"tavily-search"
],
"env": {
"TAVILY_API_KEY": "YOUR_TAVILY_API_KEY",
"PYTHONIOENCODING": "utf-8"
}
}
}
Replace PATH_TO_REPOSITORY
with the actual path where you cloned the repository and YOUR_TAVILY_API_KEY
with your actual Tavily API key.
Restart Claude Desktop.
tavily-search.sh
) with the following content:#!/bin/bash
TARGET_DIR=/path/to/mcp-server-tavily
cd "${TARGET_DIR}"
export TAVILY_API_KEY="your-api-key"
export PYTHONIOENCODING=utf-8
uv --directory $PWD run tavily-search
chmod +x tavily-search.sh
Configure Cursor's MCP Server settings:
Save the settings and restart Cursor.
For operating systems where Claude Desktop isn't available:
git clone https://github.com/Tomatio13/mcp-server-tavily.git
docker compose up -d
docker exec mcp_server uv --directory /usr/src/app/mcp-server-tavily/src run client.py
Once installed, you can use Tavily Search by asking your AI assistant to search for information. For example:
The search results will include:
Logs are stored in the following locations:
C:\Users\[username]\AppData\Roaming\Claude\logs\mcp-server-tavily-search
If you encounter issues: