https://github.com/mcp2everything/mcp2tavily
一个MCP服务器,让你的Claude Cline以及Langchain实现网络搜索功能。An MCP server that allows your Claude Cline and Langchain to implement network search functions.
https://github.com/mcp2everything/mcp2tavily
Last synced: 1 day ago
JSON representation
一个MCP服务器,让你的Claude Cline以及Langchain实现网络搜索功能。An MCP server that allows your Claude Cline and Langchain to implement network search functions.
- Host: GitHub
- URL: https://github.com/mcp2everything/mcp2tavily
- Owner: mcp2everything
- Created: 2025-01-04T03:59:35.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-01-06T09:34:36.000Z (6 months ago)
- Last Synced: 2025-04-13T15:17:10.607Z (2 months ago)
- Language: Python
- Size: 340 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- mcp-index - Tavily Web Search - This server implements web search functionality using the Tavily API, providing real-time search capabilities for applications. It allows users to retrieve information from the web quickly and easily. (APIs and HTTP Requests)
README
# 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
1. Clone the repository
```bash
git clone
cd mcp2tavily
```2. Create and edit the `.env` file
```bash
# Create .env file
touch .env
# Add your Tavily API key to .env
echo "TAVILY_API_KEY=your_api_key_here" > .env
```3. Set up virtual environment with UV
```bash
# Create and activate virtual environment
uv venv
source .venv/bin/activate # On Windows use: .venv\Scripts\activate
```4. Install dependencies
```bash
uv sync
```## Usage
### Install as Claude extension
```bash
fastmcp install mcp2tavily.py
```### Development mode with MCP Inspector
To test the functionality using MCP Inspector:```bash
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 API
- `search_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
```json"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
