Web search MCP server uses Tavily API to provide real-time internet search for AI models
The Web Search MCP Server is an advanced Model Context Protocol (MCP) server designed to bridge AI applications with real-time web search capabilities via Tavily API. It enables AI models to access up-to-date information from the internet, enhancing their performance and relevance in dynamic, data-rich environments. By leveraging MCP, this server provides a seamless integration point for popular MCP clients such as Claude Desktop, Continue, and Cursor, ensuring seamless and secure data retrieval.
The Web Search MCP Server offers robust real-time search functionalities with customizable parameters:
search_topic (general, news, finance)search_depth (basic, advanced)max_results (number of search results)time_range (day, week, month, year)include_domains & exclude_domainsThese features enable AI applications to request specific and targeted information seamlessly. By adhering to the MCP protocol, this server ensures compatibility with various popular AI platforms.
The Web Search MCP Server implements a strict Model Context Protocol to communicate between AI models and the Tavily API. The protocol follows a structured flow:
This architecture ensures secure and efficient data transmission and processing.
To install and run the Web Search MCP Server, follow these steps:
Clone or download the repository:
git clone https://github.com/your-repo/web-search-mcp-server.git
Set up a virtual environment (recommended) using uv:
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
Install dependencies using uv:
uv pip sync
Create and configure the .env file based on the template provided in env-sample.
In financial analysis, AI models require real-time updates to make informed decisions. The Web Search MCP Server enables AI systems like Claude Desktop and Continue to fetch up-to-date stock prices, news articles, and economic reports directly from the internet.
search_depth of "advanced".News aggregation applications benefit from constant content updates to provide users with fresh news articles. Using the Web Search MCP Server, systems like Cursor can periodically search for recent news articles on specified topics.
"topic": "news".The Web Search MCP Server supports compatibility across multiple popular AI clients:
Refer to the MCP client compatibility matrix below for detailed status.
The following table outlines the Web Search MCP Server's compatibility with various AI clients:
| MCP Client | Resources | Tools | Prompts | Status |
|---|---|---|---|---|
| Claude Desktop | ✅ | ✅ | ✅ | Full Support |
| Continue | ✅ | ✅ | ✅ | Full Support |
| Cursor | ❌ | ✅ | ❌ | Tools Only |
{
"toolName": "search_web_tool",
"parameters": {
"query": "latest tech news",
"search_topic": "news", // general, news, finance
"search_depth": "advanced", // basic, advanced
"max_results": 5,
"time_range": "week", // day, week, month, year
"include_domains": ["techcrunch.com"],
"exclude_domains": []
}
}
{
"mcpServers": {
"web_search_server": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/web-search-mcp-server"],
"env": {
"TAVILY_API_KEY": "your-api-key-here"
}
}
}
}
By enabling real-time data retrieval and integration, it allows AI models to access current information, improving their decision-making capabilities.
Common use cases include financial analysis, news aggregation, content creation, and research support.
You can configure the .env file by copying env-sample, and add your Tavily API key as required.
The server supports variable search depths ('basic' or 'advanced') and configurable maximum result limits, but these can be adjusted based on operational needs.
Security is ensured through secure API key handling and adherence to MCP protocol standards for data transmission.
Contributions are welcome! To contribute to the Web Search MCP Server, please follow these steps:
git clone https://github.com/your-repo/web-search-mcp-server.git
For more information about the Model Context Protocol (MCP), visit Model Context Protocol documentation.
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[data processing & integration layer]
D --> E[Tavily API]
F[E]--->G[NLP Models]
G--->A
style A fill:#e1f5fe
style B fill:#c7ddef
style C fill:#f3e5f5
style D fill:#f6ebe4
style E fill:#b7f4a2
graph TD;
A[Web Search MCP Server] --> B[MCP Client]
B --> C[Data Processing & Integration Layer]
C --> D[Tavily API]
D --> E[NLP Models & Custom AI Tools]
style A fill:#e1f5fe,stroke:#003f92
style B fill:#c7ddef,stroke:#0b4666
style C fill:#f3e5f5,stroke:#91e7a6
style D fill:#b7f4a2,stroke:#0a4520
This comprehensive documentation outlines the Web Search MCP Server's features, installation process, and integration capabilities. By providing robust real-time search functionalities and adhering to strict MCP protocol standards, this server is a valuable asset for developers building AI applications that require current, accurate information.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration