MCP2Tavily - UBOS

✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more

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
git clone <repository-url>
cd mcp2tavily
  1. 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
  1. Set up virtual environment with UV
# Create and activate virtual environment
uv venv
source .venv/bin/activate  # On Windows use: .venvScriptsactivate
  1. 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 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


"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

搜索示例

Featured Templates

View More
Data Analysis
Pharmacy Admin Panel
232 1467
Customer service
AI-Powered Product List Manager
140 508
AI Characters
Sarcastic AI Chat Bot
127 1232
Customer service
Multi-language AI Translator
135 529
AI Agents
AI Video Generator
244 1222 5.0

Start your free trial

Build your solution today. No credit card required.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.