Skip to main content
Glama

Tavily MCP Server with Proxy Support

by tulong66

具有代理支持的 Tavily MCP 服务器

模型上下文协议 (MLM) 服务器,使用 Tavily 的搜索 API 提供 AI 驱动的网页搜索功能,并新增对 HTTP/HTTPS 代理配置的支持。该服务器使 LLM 能够通过代理服务器执行复杂的网页搜索,直接获取问题的答案,并搜索包含 AI 提取的相关内容的最新新闻文章。

特征

  • 所有原始 Tavily MCP 服务器功能
  • 通过环境变量支持 HTTP/HTTPS 代理
  • 增强代理配置的日志记录
  • 针对代理相关问题的强大错误处理

可用工具

  • tavily_web_search - 通过人工智能内容提取执行全面的网络搜索。
    • query (字符串,必需):搜索查询
    • max_results (整数,可选):返回的最大结果数(默认值:5,最大值:20)
    • search_depth (字符串,可选):搜索深度为“基本”或“高级”(默认值为“基本”)
  • tavily_answer_search - 执行网络搜索并生成带有支持证据的直接答案。
    • query (字符串,必需):搜索查询
    • max_results (整数,可选):返回的最大结果数(默认值:5,最大值:20)
    • search_depth (字符串,可选):搜索深度为“基本”或“高级”(默认值为“高级”)
  • tavily_news_search搜索带有出版日期的最新新闻文章。
    • query (字符串,必需):搜索查询
    • max_results (整数,可选):返回的最大结果数(默认值:5,最大值:20)
    • days (整数,可选):返回搜索的天数(默认值:3)

安装

使用pip

pip install mcp-tavily-proxy

或者如果你已经安装了uv

uv pip install mcp-tavily-proxy

从源代码构建

克隆此存储库并构建和安装该程序:

git clone https://github.com/tulong66/mcp-tavily-proxy.git cd mcp-tavily-proxy uv build uv pip install .

配置

API 密钥和代理设置

该服务器需要 Tavily API 密钥,并支持通过环境变量配置代理:

  1. 设置所需的环境变量:
# Tavily API Key export TAVILY_API_KEY=your_api_key_here # Proxy Settings (if needed) export HTTP_PROXY=http://your-proxy:port export HTTPS_PROXY=http://your-proxy:port
  1. 或者提供 API 密钥作为命令行参数:
python -m mcp_server_tavily --api-key=your_api_key_here

为 Claude.app 配置

添加到您的 Claude 设置:

{ "mcpServers": { "tavily": { "command": "python", "args": ["-m", "mcp_server_tavily"] }, "env": { "TAVILY_API_KEY": "your_api_key_here", "HTTP_PROXY": "http://your-proxy:port", "HTTPS_PROXY": "http://your-proxy:port" } } }

示例

对于常规搜索:

Tell me about Anthropic's newly released MCP protocol

要生成具有明确排除项的报告:

Tell me about redwood trees. Please use MLA format in markdown syntax and include the URLs in the citations. Exclude Wikipedia sources.

新闻搜索:

Give me the top 10 AI-related news in the last 5 days

调试

启用调试日志记录以查看详细的代理配置信息:

export TAVILY_LOG_LEVEL=DEBUG python -m mcp_server_tavily

您还可以使用 MCP 检查器:

npx @modelcontextprotocol/inspector python -m mcp_server_tavily

贡献

欢迎贡献代码!欢迎提交 PR,帮助我们改进代理支持或添加新功能。

执照

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。

致谢

该项目基于原始的mcp-tavily ,并添加了代理支持功能。

-
security - not tested
F
license - not found
-
quality - not tested

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.

使 LLM 能够使用 Tavily 的 API 通过代理服务器执行复杂的网络搜索,支持全面的网络搜索、直接问答以及使用 AI 提取的内容检索最近的新闻文章。

  1. 特征
    1. 可用工具
      1. 安装
        1. 使用pip
        2. 从源代码构建
      2. 配置
        1. API 密钥和代理设置
        2. 为 Claude.app 配置
      3. 示例
        1. 调试
          1. 贡献
            1. 执照
              1. 致谢

                Related MCP Servers

                • A
                  security
                  A
                  license
                  A
                  quality
                  Integrates Tavily's search API with LLMs to provide advanced web search capabilities, including intelligent result summaries, domain filtering for quality control, and configurable search parameters.
                  Last updated -
                  3
                  668
                  9
                  JavaScript
                  MIT License
                  • 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
                  This server enables AI systems to integrate with Tavily's search and data extraction tools, providing real-time web information access and domain-specific searches.
                  Last updated -
                  2
                  6,996
                  621
                  JavaScript
                  MIT License
                  • Apple
                  • Linux
                • -
                  security
                  A
                  license
                  -
                  quality
                  Provides AI-powered web search capabilities using Tavily's search API, enabling LLMs to perform sophisticated web searches, get direct answers to questions, and search recent news articles.
                  Last updated -
                  67
                  Python
                  MIT License
                  • Linux
                  • Apple

                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/tulong66/mcp-tavily-proxy'

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