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.1.tar.gz (2.3 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.1-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

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

Hashes for mseep_mcp2tavily-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4add3581502f9c930d0692fb2d420c1313a7cf15eebfde461628fbcf3396fae6
MD5 87e1d26f9fa554dc95b3b08b681a6b40
BLAKE2b-256 53f7c76631779a9cff2cae981e21e0e212ebf866ca76d391e41a812f687dda00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mseep_mcp2tavily-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7a886c6e2736257b0937e5f5a0559313ec1954f478972ff18c7a5898f1a9d028
MD5 496d85e2ee81403f2a55c5acbd632b84
BLAKE2b-256 9279544b570832b9d9fede0366bf24c1f1332199e043c6ee3b5db9599d58ce07

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