Prerequisites
Ensure you have the following before starting:
- Tavily API key
- Claude Desktop or Cursor
- Node.js (v20 or higher)
Verify Node.js installation:
node --version
- Git installed (only needed for Git installation method)
Install Git
- macOS:
brew install git - Linux:
- Debian/Ubuntu:
sudo apt install git - RedHat/CentOS:
sudo yum install git
- Debian/Ubuntu:
- Windows: Download Git for Windows
Tavily MCP Server Installation
Running with NPX
npx -y [email protected]
Installing via Smithery
To install Tavily MCP Server for Claude Desktop automatically:
npx -y @smithery/cli install @tavily-ai/tavily-mcp --client claude
Configuring MCP Clients
Configuring Cline
Marketplace Setup
- Open Cline in VS Code.
- Click on the Cline icon in the sidebar.
- Navigate to the “MCP Servers” tab.
- Search “Tavily” and click “install”.
- Enter your Tavily API key when prompted.
Manual Setup
- macOS:
code ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json - Windows:
code %APPDATA%CodeUserglobalStoragesaoudrizwan.claude-devsettingscline_mcp_settings.json
Add the following configuration:
{
"mcpServers": {
"tavily-mcp": {
"command": "npx",
"args": ["-y", "[email protected]"],
"env": {
"TAVILY_API_KEY": "your-api-key-here"
},
"disabled": false,
"autoApprove": []
}
}
}
Save the file and restart Cline.
Configuring Cursor
- Open Cursor Settings.
- Navigate to Features > MCP Servers.
- Click on “+ Add New MCP Server”.
- Fill out the following information:
- Name: tavily-mcp
- Type: command
- Command:
env TAVILY_API_KEY=your-api-key npx -y [email protected]
Configuring Claude Desktop App
macOS
- Create the config file if it doesn’t exist:
touch "$HOME/Library/Application Support/Claude/claude_desktop_config.json" - Open the config file:
open -e "$HOME/Library/Application Support/Claude/claude_desktop_config.json"
Windows
code %APPDATA%Claudeclaude_desktop_config.json
Add the following configuration:
{
"mcpServers": {
"tavily-mcp": {
"command": "npx",
"args": ["-y", "[email protected]"],
"env": {
"TAVILY_API_KEY": "your-api-key-here"
}
}
}
}
Git Installation
- Clone the repository:
git clone https://github.com/tavily-ai/tavily-mcp.git cd tavily-mcp - Install dependencies:
npm install - Build the project:
npm run build
Add the following configuration:
{
"mcpServers": {
"tavily": {
"command": "npx",
"args": ["/path/to/tavily-mcp/build/index.js"],
"env": {
"TAVILY_API_KEY": "your-api-key-here"
}
}
}
}
Usage
Once the installation is complete, restart the Claude desktop app. You should see a hammer icon indicating available MCP tools.
Troubleshooting
Server Not Found
- Verify npm installation:
npm --version - Check Claude Desktop configuration syntax:
code ~/Library/Application Support/Claude/claude_desktop_config.json - Ensure