tavily-search-mcp-server
An MCP server implementation that integrates the Tavily Search API, providing optimized search capabilities for LLMs.
Documentation
Tavily Search MCP Server
An MCP server implementation that integrates the Tavily Search API, providing optimized search capabilities for LLMs.
Features
- Web Search: Perform web searches optimized for LLMs, with control over search depth, topic, and time range.
- Content Extraction: Extracts the most relevant content from search results, optimizing for quality and size.
- Optional Features: Include images, image descriptions, short LLM-generated answers, and raw HTML content.
- Domain Filtering: Include or exclude specific domains in search results.
Tools
- tavily_search
Setup Guide ๐
1. Prerequisites
- Claude Desktop installed on your computer.
- A Tavily API key:
a. Sign up for a Tavily API account.
b. Choose a plan (Free tier available).
c. Generate your API key from the Tavily dashboard.
2. Installation
1. Clone this repository somewhere on your computer:
git clone https://github.com/apappascs/tavily-search-mcp-server.git2. Install dependencies & build the project:
cd tavily-search-mcp-servernpm installnpm run build3. Integration with Claude Desktop
1. Open your Claude Desktop configuration file:
# On Mac:
~/Library/Application\ Support/Claude/claude_desktop_config.json
# On Windows:
%APPDATA%\Claude\claude_desktop_config.json2. Add one of the following to the `mcpServers` object in your config, depending on whether you want to run the server using `npm` or `docker`:
Option A: Using NPM (stdio transport)
{
"mcpServers": {
"tavily-search-server": {
"command": "node",
"args": [
"/Users///tavily-search-mcp-server/dist/index.js"
],
"env": {
"TAVILY_API_KEY": "your_api_key_here"
}
}
}
}Option B: Using NPM (SSE transport)
{
"mcpServers": {
"tavily-search-server": {
"command": "node",
"args": [
"/Users///tavily-search-mcp-server/dist/sse.js"
],
"env": {
"TAVILY_API_KEY": "your_api_key_here"
},
"port": 3001
}
}
}Option C: Using Docker
{
"mcpServers": {
"tavily-search-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"TAVILY_API_KEY",
"-v",
"/Users///tavily-search-mcp-server:/app",
"tavily-search-mcp-server"
],
"env": {
"TAVILY_API_KEY": "your_api_key_here"
}
}
}
}3. Important Steps:
4. Restart Claude Desktop for the changes to take effect.
Installing via Smithery
To install Tavily Search for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @apappascs/tavily-search-mcp-server --client claudeEnvironment Setup (for npm)
1. Copy `.env.example` to `.env`:
cp .env.example .env2. Update the `.env` file with your actual Tavily API key:
TAVILY_API_KEY=your_api_key_hereNote: Never commit your actual API key to version control. The `.env` file is ignored by git for security reasons.
Running with NPM
Start the server using Node.js:
node dist/index.jsFor sse transport:
node dist/sse.jsRunning with Docker
1. Build the Docker image (if you haven't already):
docker build -t tavily-search-mcp-server:latest .2. Run the Docker container with:
For stdio transport:
docker run -it --rm -e TAVILY_API_KEY="your_api_key_here" tavily-search-mcp-server:latestFor sse transport:
docker run -it --rm -p 3001:3001 -e TAVILY_API_KEY="your_api_key_here" -e TRANSPORT="sse" tavily-search-mcp-server:latestYou can also leverage your shell's environment variables directly, which is a more secure practice:
docker run -it --rm -p 3001:3001 -e TAVILY_API_KEY=$TAVILY_API_KEY -e TRANSPORT="sse" tavily-search-mcp-server:latestNote: The second command demonstrates the recommended approach of using `-e TAVILY_API_KEY=$TAVILY_API_KEY` to pass the value of your `TAVILY_API_KEY` environment variable into the Docker container. This keeps your API key out of your command history, and it is generally preferred over hardcoding secrets in commands.
3. Using docker compose
Run:
docker compose up -dTo stop the server:
docker compose downLicense
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
Frequently asked questions
What is tavily-search-mcp-server?
tavily-search-mcp-server is An MCP server implementation that integrates the Tavily Search API, providing optimized search capabilities for LLMs.
How do I install tavily-search-mcp-server?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is tavily-search-mcp-server open source?
Yes โ it is hosted on GitHub at https://github.com/apappascs/tavily-search-mcp-server and has 3 stars.
Related MCP tools
๐ Cherry Studio is a desktop client that supports for multiple LLM providers. Built for the Model Context Protocol to enhance AI capabilities.
Enhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini...
FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, ...
Composio equips your AI agents & LLMs with 100+ high-quality integrations via function calling for the Model Context Protocol. Enhance AI assistants with powerf
๐ฆ Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Lan...
AI Agents & MCPs & AI Workflow Automation โข (~400 MCP servers for AI agents) โข AI Automation / AI Agent with MCPs โข AI Workflows & AI Agents โข MCPs for AI Ag...
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP