MCP2Tavily
A MCP protocol server that implements web search functionality using the Tavily API.
Prerequisites
- Python 3.11+
- UV package manager
- Tavily API key
Installation
- Clone the repository
git clone <repository-url>
cd mcp2tavily
- Create and edit the
.env
file
# Create .env file
touch .env
# Add your Tavily API key to .env
echo "TAVILY_API_KEY=your_api_key_here" > .env
- Set up virtual environment with UV
# Create and activate virtual environment
uv venv
source .venv/bin/activate # On Windows use: .venvScriptsactivate
- Install dependencies
uv sync
Usage
Install as Claude extension
fastmcp install mcp2tavily.py
Development mode with MCP Inspector
To test the functionality using MCP Inspector:
fastmcp dev mcp2tavily.py
Once 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
MCP2Tavily
Project Details
- mcp2everything/mcp2tavily
- Last Updated: 2/14/2025
Recomended MCP Servers
This is a Model Context Protocol (MCP) server that integrates with AWS CodePipeline, allowing you to manage your...
An MCP for WireShark (tshark). Empower LLM's with realtime network traffic analysis capability
A Model Context Protocol (MCP) server that enables AI assistants to generate images, text, and audio through the...
A TypeScript Model Context Protocol for Twitter/X platform integration.
A Model Context Protocol (MCP) server that provides access to the Art Institute of Chicago Collection through natural...
A personal assistant AI agent built with the Model Context Protocol (MCP)
Collection of Google-native tools (e.g., Gmail, Calendar) for the MCP
A Model Content Protocol server that provides tools to search and retrieve academic papers from PubMed database.
A Model Context Protocol (MCP) server implementation providing persistent note management created with Python SDK.
A specialized MCP server for Claude Desktop that enhances AI-assisted medical learning