Tavily代理搜索
STDIO支持代理的AI网络搜索服务器
支持代理的AI网络搜索服务器
A Model Context Protocol server that provides AI-powered web search capabilities using Tavily's search API, with added support for HTTP/HTTPS proxy configurations. This server enables LLMs to perform sophisticated web searches through proxy servers, get direct answers to questions, and search recent news articles with AI-extracted relevant content.
tavily_web_search
- Performs comprehensive web searches with AI-powered content extraction.
query
(string, required): Search querymax_results
(integer, optional): Maximum number of results to return (default: 5, max: 20)search_depth
(string, optional): Either "basic" or "advanced" search depth (default: "basic")tavily_answer_search
- Performs web searches and generates direct answers with supporting evidence.
query
(string, required): Search querymax_results
(integer, optional): Maximum number of results to return (default: 5, max: 20)search_depth
(string, optional): Either "basic" or "advanced" search depth (default: "advanced")tavily_news_search
- Searches recent news articles with publication dates.
query
(string, required): Search querymax_results
(integer, optional): Maximum number of results to return (default: 5, max: 20)days
(integer, optional): Number of days back to search (default: 3)pip
pip install mcp-tavily-proxy
or if you have uv
installed:
uv pip install mcp-tavily-proxy
Clone this repository and build and install the program:
git clone https://github.com/tulong66/mcp-tavily-proxy.git cd mcp-tavily-proxy uv build uv pip install .
The server requires a Tavily API key and supports proxy configuration through environment variables:
# 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
python -m mcp_server_tavily --api-key=your_api_key_here
Add to your Claude settings:
{ "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" } } }
For a regular search:
Tell me about Anthropic's newly released MCP protocol
To generate a report with explicit exclusions:
Tell me about redwood trees. Please use MLA format in markdown syntax and include the URLs in the citations. Exclude Wikipedia sources.
For news search:
Give me the top 10 AI-related news in the last 5 days
Enable debug logging to see detailed proxy configuration information:
export TAVILY_LOG_LEVEL=DEBUG python -m mcp_server_tavily
You can also use the MCP inspector:
npx @modelcontextprotocol/inspector python -m mcp_server_tavily
Contributions are welcome! Please feel free to submit pull requests to help improve the proxy support or add new features.
This project is licensed under the MIT License - see the LICENSE file for details.
This project is based on the original mcp-tavily with added proxy support functionality.