MCP Web Search Tool logo

MCP Web Search Tool

by gabrimatic

A Model Context Protocol (MCP) server providing real-time web search capabilities through pluggable search providers. It is currently integrated with the Brave Search API.

View on GitHub

Last updated: N/A

What is MCP Web Search Tool?

The MCP Web Search Tool is a server that enables AI assistants to access real-time information from the web. It uses a modular architecture with pluggable search providers, currently integrated with Brave Search API, to deliver search results in a structured JSON format.

How to use MCP Web Search Tool?

To use the server, clone the repository, install dependencies, configure environment variables with your Brave Search API key, build the project, and start the server using npm start. Optionally, integrate with Claude Desktop by creating a claude_desktop_config.json file pointing to the built index.js file.

Key features of MCP Web Search Tool

  • Real-Time Information Access

  • Pluggable Search Providers

  • Structured Output Format

  • Smart Query Handling

Use cases of MCP Web Search Tool

  • Answering questions requiring up-to-date information

  • Providing AI assistants with current events and news

  • Retrieving sports scores and results

  • Monitoring stock market and financial data

  • Fetching weather information

FAQ from MCP Web Search Tool

What is the default search provider?

The default search provider is Brave Search API.

What is the required Node.js version?

Node.js v16.x or newer is required.

How do I configure the API key?

Create a .env file and set the BRAVE_API_KEY variable.

Can I change the number of results?

Yes, set the MAX_RESULTS variable in the .env file. The default is 10.

How do I test the server?

Run node test-server.js to test the server.