MCP Web Search Tool
A Model Context Protocol server that provides real-time web search capabilities to AI assistants through pluggable search providers, currently integrated with the Brave Search API.
gabrimatic
README
MCP Web Search Tool
A powerful Model Context Protocol (MCP) server providing real-time web search capabilities through pluggable search providers. Currently integrated with the Brave Search API.

β¨ Features
- Real-Time Information Access: Enables AI assistants to retrieve up-to-date information from the web
- Pluggable Search Providers: Modular architecture allows for easy switching between different search engines
- Structured Output Format: Returns search results in a clean, consistent JSON format
- Smart Query Handling: Automatically categorizes queries and provides AI assistants with context-aware guidance
π Requirements
- Node.js: v16.x or newer
- npm: v7.x or newer
- Brave Search API Key: Required for accessing the Brave Search API
π Installation
-
Clone the Repository:
git clone https://github.com/gabrimatic/mcp-web-search-tool.git cd mcp-web-search-tool -
Install Dependencies:
npm install -
Configure Environment Variables: Create a
.envfile in the project root:BRAVE_API_KEY=your_api_key_here MAX_RESULTS=10 # Optional: Default is 10 REQUEST_TIMEOUT=10000 # Optional: Default is 10000ms -
Build the Project:
npm run build
π» Usage
Starting the Server
npm start
Testing the Server
node test-server.js
Integration with Claude Desktop App (optional)
One of the most exciting aspects of this project is its seamless integration with the Claude Desktop app. This integration allows users to ask Claude questions that require real-time information, and Claude will automatically use the web search tool to provide up-to-date answers.
Configuration
-
Create a
claude_desktop_config.jsonfile:{ "mcpServers": { "mcp-web-search": { "command": "node", "args": [ "/path/to/your/mcp-web-search-tool/build/index.js" ] } } } -
Launch Claude Desktop with your configuration file.
-
Ask Claude questions requiring real-time information, and it will automatically use the web search tool.
π₯ YouTube Video
Watch Claude in action using the MCP Web Search Tool for real-time AI browsing!
πΊ Claude + MCP Web Search β Live Demo
Example Queries:
- "What are analysts saying about the MVP race after tonightβs NBA games?"
- "What are the latest news about artificial intelligence?"
- "What's the weather like in New York today?"
- "How is the stock market performing right now?"
π οΈ Available Tools
Web Search
- Tool Name:
web_search - Description: Search the web for REAL-TIME information
- Necessarily For: Weather, current events, sports scores, stock market updates
- Parameters:
search_term(string): The search term to look upprovider(string, optional): Search provider (defaults to Brave)
Query Categories
The tool automatically categorizes queries into:
- Weather information
- Current events and news
- Sports scores and results
- Stock market and financial data
- Time-sensitive information
- General information seeking
π License
π¨βπ» Developer
Β© All rights reserved.
π Medium Article
Read more about the MCP Web Search Tool, its capabilities, and how it enhances AI-driven web search in our detailed Medium article: π Deep Dive into MCP Web Search Tool
β Support
<a href="https://www.buymeacoffee.com/gabrimatic" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Book" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a>
Recommended Servers
MCP PubMed Search
Server to search PubMed (PubMed is a free, online database that allows users to search for biomedical and life sciences literature). I have created on a day MCP came out but was on vacation, I saw someone post similar server in your DB, but figured to post mine.
dbt Semantic Layer MCP Server
A server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.
mixpanel
Connect to your Mixpanel data. Query events, retention, and funnel data from Mixpanel analytics.
Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.
Crypto Price & Market Analysis MCP Server
A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.
Nefino MCP Server
Provides large language models with access to news and information about renewable energy projects in Germany, allowing filtering by location, topic (solar, wind, hydrogen), and date range.
Vectorize
Vectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.
Mentor MCP Server
Provides LLM Agents with AI-powered mentorship for code review, design critique, writing feedback, and brainstorming using the Deepseek API, enabling enhanced output in various development and strategic planning tasks.
MCP-Logic
MCP-Logic is a server that provides AI systems with automated reasoning capabilities, enabling logical theorem proving and model verification using Prover9/Mace4 through a clean MCP interface.
Substack Reader
Enables fetching and reading subscriber-only content from Trade Companion by Adam Mancini on Substack, allowing Claude to access and discuss the latest financial trading articles.