Skip to main content
Glama

MCP2Tavily

MCP2塔维利

使用 Tavily API 实现网络搜索功能的 MCP 协议服务器。

先决条件

  • Python 3.11+
  • UV包管理器
  • Tavily API 密钥

安装

  1. 克隆存储库
git clone <repository-url> cd mcp2tavily
  1. 创建并编辑.env文件
# Create .env file touch .env # Add your Tavily API key to .env echo "TAVILY_API_KEY=your_api_key_here" > .env
  1. 使用 UV 设置虚拟环境
# Create and activate virtual environment uv venv source .venv/bin/activate # On Windows use: .venv\Scripts\activate
  1. 安装依赖项
uv sync

用法

安装为 Claude 扩展

fastmcp install mcp2tavily.py

使用 MCP Inspector 的开发模式

要使用 MCP Inspector 测试功能:

fastmcp dev mcp2tavily.py

运行后,您可以通过以下网址访问 MCP Inspector: http://localhost:5173

可用工具

  • search_web(query: str) :使用 Tavily API 搜索网页
  • search_web_info(query: str) :同上,带中文描述

环境变量

  • TAVILY_API_KEY :您的 Tavily API 密钥(必需)

分步指南

手动添加 Cline 继续 Claude

Cline 继续 Claude 的 MCP 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密钥" } }

克莱恩

司

克莱恩

司

克莱恩

司

例子

搜索示例

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.

MCP 协议服务器使用 Tavily API 实现网络搜索功能,允许 AI 助手实时执行互联网搜索。

  1. 先决条件
    1. 安装
      1. 用法
        1. 安装为 Claude 扩展
        2. 使用 MCP Inspector 的开发模式
      2. 可用工具
        1. 环境变量
          1. 分步指南
            1. 手动添加 Cline 继续 Claude
              1. 克莱恩
              2. 克莱恩
              3. 克莱恩
              4. 例子

            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
              991
              153
              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