Price Per TokenPrice Per Token

Multi-Provider Web Search Server

by guptabhishek

GitHub 3 574 uses
0

About

Multi-Provider Web Search Server provides unified access to multiple search engines through a single interface, automatically managing provider fallback to maximize available search quotas. Key features: - Integrates with four major search providers: Google Custom Search, Tavily, DuckDuckGo, and Brave Search. - Implements intelligent priority-based fallback (default: Tavily → Google → DuckDuckGo → Brave) when providers reach quota limits or fail. - Exposes a single standardized `search` tool that returns consistent result formats regardless of the underlying provider. - Supports direct provider specification for targeted searches or automatic selection based on availability. - Configurable via environment variables for API keys and preferences.

README

MCP Search Server

[](https://smithery.ai/server/@guptabhishek/multi-search-mcp)

This package exists to provide a unified MCP (Model Context Protocol) interface for multi-provider web search. It allows you to leverage the free monthly quota given by multiple search services (such as Google and Tavily) by automatically falling back between them, maximizing your available search capacity for automation and AI workflows.

Features

  • Supports Google Custom Search, Tavily Search, DuckDuckGo Search, and Brave Search.
  • Exposes a single MCP tool: search.
  • Allows specifying a provider directly or uses a priority-based fallback (default: Tavily, Google, DuckDuckGo, Brave).
  • Standardizes search results into a common format.
  • Configurable via environment variables.
  • Brave Search support (requires API key passed via MCP env, not .env).
  • Getting Free API Credentials

    Tavily

    1. Go to Tavily and sign up for a free account. 2. After verifying your email, log in to your Tavily dashboard. 3. Navigate to the API section and generate a free API key. 4. Copy the API key and use it as TAVILY_API_KEY in your configuration.

    Brave Search

    1. Go to Brave Search API and click "Get started". 2. Sign in or create a Brave account. 3. Follow the instructions to subscribe to the Brave Search API (free tier available). 4. Once subscribed, go to your Brave dashboard and generate an API key. 5. Copy the API key and use it as BRAVE_API_KEY in your MCP client configuration (must be passed via MCP env, not .env).

    Google Custom Search

    1. Go to the Google Cloud Console and create a new project (or select an existing one). 2. Enable the Custom Search API for your project. 3. Go to the Custom Search Engine and create a new search engine. - For "Sites to search", you can enter www.example.com (you can edit this later to search the entire web). - After creation, go to the control panel of your search engine and enable "Search the entire web" in the "Sites to search" section. 4. Copy the Search Engine ID (CX) and use it as GOOGLE_CX. 5. In the Cloud Console, go to APIs & Services > Credentials and create an API key. 6. Use this API key as GOOGLE_API_KEY in your configuration.

    Setup

    Installing via Smithery

    To install multi-search-mcp for Claude Desktop automatically via Smithery:

    npx -y @smithery/cli install @guptabhishek/multi-search-mcp --client claude
    

    Installing Manually

    After updating your configuration or credentials, run:

    npm run build
    npm start
    

    1. Clone/Download: Get the server code. 2. Install Dependencies:

        npm install
        
    3. Configure API Keys (via MCP Client Settings): * Instead of using a .env file, you can configure the API keys and optional port directly within your MCP client's JSON settings (e.g., Cline's cline_mcp_settings.json). * Add or modify the server entry for mcp-search-server and provide the necessary keys in the env object:

        {
          "servers": {
            // ... other servers ...

    "search": { // Or your chosen name for this server "autoApprove": [], "disabled": false, // Set to false to enable "timeout": 120, "command": "npx", // Or the command to run the server "args": [ "-y", "mcp-search-server" ], "env": { // Required API Keys "TAVILY_API_KEY": "YOUR_TAVILY_API_KEY", "GOOGLE_API_KEY": "YOUR_GOOGLE_API_KEY", "GOOGLE_CX": "YOUR_GOOGLE_CUSTOM_SEARCH_ENGINE_ID", "BRAVE_API_KEY": "YOUR_BRAVE_SEARCH_API_KEY", // Brave Search API Key (must be passed via MCP env, not .env)

    // DuckDuckGo does not require an API key.

    // Optional: Configure providers and strategy "SEARCH_PROVIDERS": "tavily,google,duckduckgo,brave", // Comma-separated list of providers in desired priority "SEARCH_STRATEGY": "random", // Or "priority"

    // Optional Port Override "PORT": "3002" // Example: run on port 3002 instead of default }, "transportType": "stdio" // Assuming stdio transport }

    // ... other servers ... } }

    * Replace the placeholder values (YOUR_..._KEY, /path/to/your/MCP/...) with your actual keys and the correct path to the built index.js file. * Ensure you provide keys for the providers you intend to use.

    Running the Server

    npm start
    

    The server will start, typically on port 3001 (or the port specified in .env). It will print the available tool name and the status of loaded API keys

    Related MCP Servers

    AI Research Assistant

    AI Research Assistant

    hamid-vakilzadeh

    AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar

    Web & Search
    12 8
    Linkup

    Linkup

    LinkupPlatform

    Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages

    Web & Search
    2 24
    Math-MCP

    Math-MCP

    EthanHenrickson

    Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support

    Developer Tools
    22 81