Tavily MCP Server with Proxy Support
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.
Features
All original Tavily MCP Server features
HTTP/HTTPS proxy support through environment variables
Enhanced logging for proxy configurations
Robust error handling for proxy-related issues
Available Tools
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)
Installation
Use pip
or if you have uv installed:
Build from Source
Clone this repository and build and install the program:
Configuration
API Key and Proxy Settings
The server requires a Tavily API key and supports proxy configuration through environment variables:
Set required environment variables:
Or provide API key as a command-line argument:
Configure for Claude.app
Add to your Claude settings:
Examples
For a regular search:
To generate a report with explicit exclusions:
For news search:
Debugging
Enable debug logging to see detailed proxy configuration information:
You can also use the MCP inspector:
Contributing
Contributions are welcome! Please feel free to submit pull requests to help improve the proxy support or add new features.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
This project is based on the original mcp-tavily with added proxy support functionality.
Related MCP Servers
- AsecurityAlicenseAqualityIntegrates 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 -238MIT License
- -securityAlicense-qualityProvides 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 -72MIT License
- AsecurityFlicenseAqualityEnables web search capabilities through the Tavily API, allowing users to search the internet for information using natural language queries. Demonstrates MCP server implementation with external API integration.Last updated -3
- AsecurityFlicenseAqualityEnables web search capabilities through the Tavily API. Allows users to search the web for information using natural language queries via the MCP protocol.Last updated -41
Appeared in Searches
- A web browsing and summarization service
- MCP server for finding research data and models for AI/ML training
- Google search for articles about children's allergic reactions to cephalosporin antibiotics
- A search service for finding answers to questions
- A server for finding China housing price MCP (Model Context Protocol)