Tavily MCP Server
Tavily MCP Server allows you to use the Tavily API in your MCP clients.
Compatible with both Cursor and Claude Desktop!
Tavily MCP is also compatible with any MCP client.
Check out our tutorial on combining Tavily MCP with Neo4j MCP server!
The Model Context Protocol (MCP) is an open standard that enables AI systems to interact seamlessly with various data sources and tools, facilitating secure, two-way connections.
Developed by Anthropic, the Model Context Protocol (MCP) enables AI assistants like Claude to seamlessly integrate with Tavily’s advanced search and data extraction capabilities. This integration provides AI models with real-time access to web information, complete with sophisticated filtering options and domain-specific search features.
The Model Context Protocol (MCP) is an open standard that enables AI systems to interact seamlessly with various data sources and tools, facilitating secure, two-way connections.
Developed by Anthropic, the Model Context Protocol (MCP) enables AI assistants like Claude to seamlessly integrate with Tavily’s advanced search and data extraction capabilities. This integration provides AI models with real-time access to web information, complete with sophisticated filtering options and domain-specific search features.
The Tavily MCP server provides:
- Seamless interaction with the tavily-search and tavily-extract tools
- Real-time web search capabilities through the tavily-search tool
- Intelligent data extraction from web pages via the tavily-extract tool
Prerequisites
Required Tools
Required Tools
- Tavily API key
- If you don’t have a Tavily API key, you can sign up for a free account here
- Claude Desktop or Cursor
- Node.js (v20 or higher)
- You can verify your Node.js installation by running:
- You can verify your Node.js installation by running:
Git Installation (Optional)
Git Installation (Optional)
Only needed if using Git installation method:
- On macOS:
brew install git
- On Linux:
- Debian/Ubuntu:
sudo apt install git
- RedHat/CentOS:
sudo yum install git
- Debian/Ubuntu:
- On Windows: Download Git for Windows
Installation Methods
Although you can launch a server on its own, it’s not particularly helpful in isolation. Instead, you should integrate it into an MCP client.
Configuring MCP Clients
Note: Requires Cursor version 0.45.6 or higher
To set up the Tavily MCP server in Cursor:
- Open Cursor Settings
- Navigate to Features > MCP Servers
- Click on the ”+ Add New MCP Server” button
- Fill out the following information:
- Name: Enter a nickname for the server (e.g., “tavily-mcp”)
- Type: Select “command” as the type
- Command: Enter the command to run the server:
Replace
tvly-YOUR_API_KEY
with your Tavily API key from app.tavily.com/home
Note: Requires Cursor version 0.45.6 or higher
To set up the Tavily MCP server in Cursor:
- Open Cursor Settings
- Navigate to Features > MCP Servers
- Click on the ”+ Add New MCP Server” button
- Fill out the following information:
- Name: Enter a nickname for the server (e.g., “tavily-mcp”)
- Type: Select “command” as the type
- Command: Enter the command to run the server:
Replace
tvly-YOUR_API_KEY
with your Tavily API key from app.tavily.com/home
Usage Examples
Tavily Search Examples
Tavily Search Examples
- General Web Search:
- News Search:
- Domain-Specific Search:
Tavily Extract Examples
Tavily Extract Examples
Extract Article Content: Extract the main content from this article: https://example.com/article
Combined Usage
Combined Usage
Troubleshooting
Server Not Found
Server Not Found
If you encounter server connection issues, run these commands to verify your environment:
Make sure to also check your configuration syntax for any errors.
NPX Issues
NPX Issues
If experiencing problems with npx, locate your executable:
Once you have the path, update your configuration to use the full path to the npx executable.
API Key Issues
API Key Issues
When troubleshooting API key problems, verify that your key is:
- Properly formatted with the
tvly-
prefix - Valid and active in your Tavily dashboard
- Correctly configured in your environment variables
You can test your API key validity by making a simple test request through the Tavily Playground