Add your description here
Project description
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
.envfile
# 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: .venv\Scripts\activate
- 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mseep_mcp2tavily-0.1.1.tar.gz.
File metadata
- Download URL: mseep_mcp2tavily-0.1.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4add3581502f9c930d0692fb2d420c1313a7cf15eebfde461628fbcf3396fae6
|
|
| MD5 |
87e1d26f9fa554dc95b3b08b681a6b40
|
|
| BLAKE2b-256 |
53f7c76631779a9cff2cae981e21e0e212ebf866ca76d391e41a812f687dda00
|
File details
Details for the file mseep_mcp2tavily-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mseep_mcp2tavily-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a886c6e2736257b0937e5f5a0559313ec1954f478972ff18c7a5898f1a9d028
|
|
| MD5 |
496d85e2ee81403f2a55c5acbd632b84
|
|
| BLAKE2b-256 |
9279544b570832b9d9fede0366bf24c1f1332199e043c6ee3b5db9599d58ce07
|