Skip to main content

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

  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: .venv\Scripts\activate
  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

搜索示例

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mseep_mcp2tavily-0.1.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mseep_mcp2tavily-0.1.0-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file mseep_mcp2tavily-0.1.0.tar.gz.

File metadata

  • Download URL: mseep_mcp2tavily-0.1.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for mseep_mcp2tavily-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d46c40adeb4d1c0badab4d70a9a58d16362a44dbe34396938dcdcb5916bdae98
MD5 c44056197fe147b6dad7d0a2b1d155e8
BLAKE2b-256 c16746bae3776cf30196ba78d8960647d30924ac799a94f49b26aa2f51078f43

See more details on using hashes here.

File details

Details for the file mseep_mcp2tavily-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mseep_mcp2tavily-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c946b9bf6794fa97a338d03082fce64b1fe919ae0ece543cabf182d49200bb8
MD5 86b68940c87b4c1f9a150a4213e10f4e
BLAKE2b-256 e4feecbb41773d840afc710d8f8a710de2ad12d0bd5ae22dc82e43b851c5201d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page