Tavily MCP Server with Proxy Support
具有代理支持的 Tavily MCP 服务器
模型上下文协议 (MLM) 服务器,使用 Tavily 的搜索 API 提供 AI 驱动的网页搜索功能,并新增对 HTTP/HTTPS 代理配置的支持。该服务器使 LLM 能够通过代理服务器执行复杂的网页搜索,直接获取问题的答案,并搜索包含 AI 提取的相关内容的最新新闻文章。
特征
所有原始 Tavily MCP 服务器功能
通过环境变量支持 HTTP/HTTPS 代理
增强代理配置的日志记录
针对代理相关问题的强大错误处理
Related MCP server: Tavily MCP Server
可用工具
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 密钥,并支持通过环境变量配置代理:
设置所需的环境变量:
# 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或者提供 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 ,并添加了代理支持功能。
This server cannot be deployed
Maintenance
Related MCP Connectors
LLM-ready web search + instant answers + URL-to-clean-text fetch for agents and RAG.
Web search, fetch, extract, and research for AI agents. Markdown output + AI-synthesized answers.
Web search, browser automation, scraping, crawling and CAPTCHA solving for AI agents.
Web search, agentic search, news, page retrieval, sitemaps, and trending topics through Search1API.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceProvides 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.72MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to perform up-to-date web searches through the Tavily API, providing comprehensive search results with AI-generated summaries.7MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to perform real-time web searches, extract data from web pages, map website structures, and crawl websites using the Tavily API.71 npmMIT
- FlicenseNot gradedqualityCmaintenanceProvides web search capabilities using the Tavily API, enabling AI models to search the internet and retrieve up-to-date information.-