Skip to main content
Glama
MegaSearch MCP

MegaSearch MCP

by ProDevs-Kol

MegaSearch MCP

npm version License: MIT

A local MCP (Model Context Protocol) server that connects Claude Desktop to MegaSearch API using OAuth 2.0 client credentials.

Features

  • No timeout issues - Direct stdio communication avoids HTTP/SSE transport timeouts

  • 5-minute timeout - Configurable timeout for comprehensive searches

  • OAuth 2.0 - Secure authentication with automatic token refresh

  • Simple setup - Just set environment variables

Related MCP server: Perplexity MCP Server

MegaSearch is an AI-powered metasearch engine that:

  • Fires 10+ search engines in parallel

  • Extracts and analyzes content from top results

  • Synthesizes comprehensive answers with citations

  • Iteratively refines queries until the answer is complete

Installation

npm install -g megasearch-mcp

Or use directly with npx (no installation needed):

npx megasearch-mcp

Quick Start

1. Create OAuth Client

  1. Go to MegaSearch Dashboard

  2. Sign up / Log in with Google

  3. Click "+ Create OAuth Client"

  4. Copy the Client ID and Client Secret (shown only once!)

2. Configure Claude Desktop

Add to your Claude Desktop config:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "megasearch": {
      "command": "npx",
      "args": ["megasearch-mcp"],
      "env": {
        "MEGASEARCH_CLIENT_ID": "mcp_your_client_id",
        "MEGASEARCH_CLIENT_SECRET": "your_client_secret"
      }
    }
  }
}

3. Restart Claude Desktop

After saving the config, restart Claude Desktop to load the MCP server.

Usage

Once configured, ask Claude to search for anything:

"Search for the latest developments in quantum computing"

"What are the best practices for React performance optimization?"

"Find recent news about AI regulations in the EU"

Claude will use MegaSearch to:

  1. Fire multiple search engines in parallel

  2. Extract content from top results

  3. Analyze and synthesize a comprehensive answer

  4. Return sources with citations

Environment Variables

Variable

Required

Default

Description

MEGASEARCH_CLIENT_ID

Yes

-

OAuth Client ID (starts with mcp_)

MEGASEARCH_CLIENT_SECRET

Yes

-

OAuth Client Secret

MEGASEARCH_BASE_URL

No

https://megasearch.prodevs.in

MegaSearch API URL

MEGASEARCH_TIMEOUT

No

300000

Request timeout in ms (default: 5 min)

Development

# Clone the repository
git clone https://github.com/ProDevs-Kol/megasearch-mcp.git
cd megasearch-mcp

# Install dependencies
npm install

# Build
npm run build

# Run locally
MEGASEARCH_CLIENT_ID=xxx MEGASEARCH_CLIENT_SECRET=yyy npm start

Troubleshooting

"Missing MEGASEARCH_CLIENT_ID or MEGASEARCH_CLIENT_SECRET"

Make sure you've set both environment variables in your Claude Desktop config.

"Failed to obtain access token"

  • Check that your Client ID and Secret are correct

  • Ensure your MegaSearch account is active

  • Try creating a new OAuth client

Search takes too long

MegaSearch performs comprehensive searches that may take 30-60 seconds. This is expected behavior. You can reduce the timeout with MEGASEARCH_TIMEOUT if needed.

License

MIT - see LICENSE for details.

Contributing

Contributions are welcome! Please read CONTRIBUTING.md for guidelines.

Available Tools

4 tools
search_async_resultA

Get the result of a completed async search task. Only call this after search_async_status shows status='completed'. Returns the full answer with sources and metadata.

Inputs: task_id (required).

search_async_startA

Start an async search that runs in the background. Returns a task_id immediately (<1 second). Use this for comprehensive searches that may take 60-120 seconds. After calling this, poll search_async_status with the task_id to check progress, then call search_async_result to get the final answer when done.

Inputs: query (required).

search_async_statusA

Check the status and progress of an async search task. Returns status (pending/running/completed/failed) and progress (0-100). Poll this every few seconds while status is 'running'.

Inputs: task_id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 4 tools

    Disambiguation4/5

    The async trio (start/status/result) has crisp, non-overlapping roles tied to a clear task lifecycle. The only potential confusion is between `search` and `search_async_start`, since both initiate a web search, but the descriptions give a concrete rule (>60s → use async), which mitigates it.

    Naming Consistency4/5

    Names use a predictable snake_case `search_async_<step>` pattern for the async lifecycle, which reads clearly as a family. The synchronous tool breaks the pattern slightly by being just `search` rather than something like `search_sync`, but the deviation is minor and still intuitive.

    Tool Count4/5

    Four tools is lean but each earns its place: one synchronous entry point plus the three steps required for a polling-based async job. It is on the sparse side of well-scoped, but nothing feels redundant or padded.

    Completeness4/5

    The core lifecycle (sync search, async start, poll, fetch result) is fully covered with no dead ends. Minor gaps exist — no cancel/abort for running tasks, no way to fetch partial results, and no search options like date range or source filters — but agents can work around these.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Exposes Perplexity AI's search and synthesis capabilities through MCP, enabling Claude Desktop and other MCP clients to search the web, synthesize sources, and get cited answers.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides Claude Code with local-first multimodal semantic search across documents, code, images, and video, plus multi-engine web research with active counter-evidence hunting and source-verified, extract-only briefings.
      4
      AGPL 3.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables Claude Desktop to run Perplexity web searches and deep research that survive the client's tool-call timeout, using background jobs whose results are collected later. Answers include numbered sources and the real cost of each query.
      MIT