MetaSearch

v1.0.0Search & Data Extractionstable

Open-source metasearch backend, MCP server, and AI search API for LLM agents. Python FastAPI search gateway with Google search via SerpBase and Serper, multi-engine search aggregation, structured JSON output, provider fallback, deduplication, and Sea

agent-toolsai-agentsgoogle-searchgoogle-search-apillm
Share:
45
Stars
0
Downloads
0
Weekly
0/5

What is MetaSearch?

MetaSearch is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to open-source metasearch backend, mcp server, and ai search api for llm agents. python fastapi search gateway with google search via serpbase and serper, multi-engine search aggregation, structured json...

Open-source metasearch backend, MCP server, and AI search API for LLM agents. Python FastAPI search gateway with Google search via SerpBase and Serper, multi-engine search aggregation, structured JSON output, provider fallback, deduplication, and Sea

This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Open-source metasearch backend, MCP server, and AI search AP

Use Cases

Multi-engine search aggregation
LLM agent search API with fallback
gefsikatsinelou

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx metasearchmcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use MetaSearch

MetaSearchMCP is an open-source metasearch gateway that aggregates results from multiple search engines and data sources — Google (via SerpBase or Serper), Brave, GitHub, academic databases, Reddit, finance APIs, and more — into a single structured JSON response for LLM agents. It runs as both a FastAPI HTTP server and an MCP server, exposing seven search tools with automatic provider fallback, deduplication, and configurable result limits. This makes it an ideal drop-in search backend for AI agents that need reliable, multi-source search without being locked into a single provider.

Prerequisites

  • Python 3.10+ with pip installed
  • At least one search provider API key: SERPBASE_API_KEY or SERPER_API_KEY for Google results, BRAVE_API_KEY for web search
  • Optional keys for extended providers: GITHUB_TOKEN, ALPHA_VANTAGE_API_KEY, NCBI_API_KEY, etc.
  • An MCP client such as Claude Desktop, or an HTTP client for the FastAPI endpoint
  • Git to clone the repository
1

Clone the repository

Clone MetaSearchMCP from GitHub and enter the project directory.

git clone https://github.com/gefsikatsinelou/MetaSearchMCP.git
cd MetaSearchMCP
2

Run the automated installer

The install script sets up a virtual environment, installs dependencies, and creates a .env file from the template.

python scripts/install.py
3

Configure your API keys

Edit the .env file created by the installer and add at least one search provider API key. Multiple keys enable fallback behavior.

# .env
SERPBASE_API_KEY=your_serpbase_key
SERPER_API_KEY=your_serper_key
BRAVE_API_KEY=your_brave_key
GITHUB_TOKEN=your_github_token
ALPHA_VANTAGE_API_KEY=your_alpha_vantage_key
ENABLED_PROVIDERS=serpbase,serper,brave,github
MAX_RESULTS_PER_PROVIDER=10
4

Add to your MCP client configuration

Register the MetaSearchMCP server in your claude_desktop_config.json using the metasearchmcp-mcp command.

{
  "mcpServers": {
    "MetaSearchMCP": {
      "command": "metasearchmcp-mcp",
      "env": {
        "SERPBASE_API_KEY": "your_serpbase_key",
        "BRAVE_API_KEY": "your_brave_key",
        "ALLOW_UNSTABLE_PROVIDERS": "true"
      }
    }
  }
}
5

Restart and verify the connection

Restart your MCP client and confirm the MetaSearchMCP server is listed as connected. The server exposes seven tools: search_web, search_google, search_academic, search_github, compare_engines, search_finance, and search_code.

MetaSearch Examples

Client configuration

Full claude_desktop_config.json entry for MetaSearchMCP with Google and Brave providers.

{
  "mcpServers": {
    "MetaSearchMCP": {
      "command": "metasearchmcp-mcp",
      "env": {
        "SERPBASE_API_KEY": "your_serpbase_api_key",
        "SERPER_API_KEY": "your_serper_api_key",
        "BRAVE_API_KEY": "your_brave_api_key",
        "GITHUB_TOKEN": "your_github_token",
        "ALLOW_UNSTABLE_PROVIDERS": "true",
        "MAX_RESULTS_PER_PROVIDER": "10"
      }
    }
  }
}

Prompts to try

Sample prompts to use with MetaSearchMCP connected in your AI assistant.

- "Search the web for 'Rust async runtime comparison 2025' using all available providers"
- "Search GitHub for repositories about 'MCP server Python' with max 20 results"
- "Search academic sources for papers on 'large language model hallucination mitigation'"
- "Compare search engine results for 'best vector database 2025' across Google and Brave"
- "Search finance data for Apple stock news and analyst reports"
- "Search code repositories for examples of 'FastAPI streaming responses'"

Troubleshooting MetaSearch

All search tools return empty results or provider errors

Check that at least one provider API key is set correctly in the .env file or environment. Run 'python scripts/install.py --test' to validate provider connectivity before starting the MCP server.

metasearchmcp-mcp command not found after installation

Ensure the package was installed in editable mode with 'pip install -e .[dev]' inside the project directory. Alternatively, run the server directly with 'python -m metasearchmcp.mcp_server' and adjust the MCP config command accordingly.

Rate limit errors from a specific provider

Set ALLOW_UNSTABLE_PROVIDERS=true to enable provider fallback. The server will automatically skip rate-limited providers and use the next available one. Reduce MAX_RESULTS_PER_PROVIDER to lower API usage.

Frequently Asked Questions about MetaSearch

What is MetaSearch?

MetaSearch is a Model Context Protocol (MCP) server that open-source metasearch backend, mcp server, and ai search api for llm agents. python fastapi search gateway with google search via serpbase and serper, multi-engine search aggregation, structured json output, provider fallback, deduplication, and sea It connects AI assistants to external tools and data sources through a standardized interface.

How do I install MetaSearch?

Follow the installation instructions on the MetaSearch GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with MetaSearch?

MetaSearch works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is MetaSearch free to use?

Yes, MetaSearch is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Search & Data Extraction MCP Servers

Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "metasearchmcp": { "command": "npx", "args": ["-y", "metasearchmcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use MetaSearch?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides