Utilizes .ENV for environment variable management, specifically for storing and accessing the Tavily API key needed for web search functionality.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP2Tavilysearch for latest AI developments in 2024"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP2Tavily
A MCP protocol server that implements web search functionality using the Tavily API.
Prerequisites
Python 3.11+
UV package manager
Tavily API key
Related MCP server: All-Search MCP Server
Installation
Clone the repository
git clone <repository-url>
cd mcp2tavilyCreate and edit the
.envfile
# Create .env file
touch .env
# Add your Tavily API key to .env
echo "TAVILY_API_KEY=your_api_key_here" > .envSet up virtual environment with UV
# Create and activate virtual environment
uv venv
source .venv/bin/activate # On Windows use: .venv\Scripts\activateInstall dependencies
uv syncUsage
Install as Claude extension
fastmcp install mcp2tavily.pyDevelopment mode with MCP Inspector
To test the functionality using MCP Inspector:
fastmcp dev mcp2tavily.pyOnce running, you can access the MCP Inspector at: http://localhost:5173
Available Tools
search_web(query: str): Search the web using Tavily APIsearch_web_info(query: str): Same as above, with Chinese description
Environment Variables
TAVILY_API_KEY: Your Tavily API key (required)
Step-by-Step Guide
手动添加Cline Continue Claude
Cline Continue Claude的MCP JSON FILE
"mcp2tavily": {
"command": "uv",
"args": [
"run",
"--with",
"fastmcp",
"--with",
"python-dotenv",
"--with",
"tavily-python",
"fastmcp",
"run",
"C:\\Users\\你的真实路径\\mcp2tavily.py"
],
"env": {
"TAVILY_API_KEY": "API密钥"
}
}Cline

Cline

Cline

EXAMPLE

Resources
Looking for Admin?
Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.