Skip to main content
Glama

MCP2Tavily

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

搜索示例

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

An MCP protocol server that enables web search functionality using the Tavily API, allowing AI assistants to perform internet searches in real-time.

  1. Prerequisites
    1. Installation
      1. Usage
        1. Install as Claude extension
        2. Development mode with MCP Inspector
      2. Available Tools
        1. Environment Variables
          1. Step-by-Step Guide
            1. 手动添加Cline Continue Claude
              1. Cline
              2. Cline
              3. Cline
              4. EXAMPLE

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              This MCP server performs multi-topic searches in business, news, finance, and politics using the Tavily API, providing high-quality sources and intelligent summaries.
              Last updated -
              1
              1
              Python
              MIT License
              • Apple
              • Linux
            • A
              security
              A
              license
              A
              quality
              An MCP server implementation that integrates the Tavily Search API, providing optimized search capabilities for LLMs.
              Last updated -
              1
              2
              TypeScript
              MIT License
              • Apple
            • A
              security
              A
              license
              A
              quality
              🔍 A Model Context Protocol (MCP) server providing unified access to multiple search engines (Tavily, Brave, Kagi), AI tools (Perplexity, FastGPT), and content processing services (Jina AI, Kagi). Combines search, AI responses, content processing, and enhancement features through a single interface.
              Last updated -
              15
              576
              145
              TypeScript
              MIT License
              • Linux
            • -
              security
              A
              license
              -
              quality
              MCP server for using various search tools like Tavily API. Planning to support various search tools (i.e. wiki search, searxng, etc)
              Last updated -
              3
              Python
              MIT License
              • Apple
              • Linux

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/mcp2everything/mcp2tavily'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server