# Agg Search

> Agg Search is an open-source MCP server for web search and scraping. Multi-engine web search MCP server with RRF fusion, reranking and tiered page fetching. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted, Linux, macOS, Windows
- **Repository:** https://github.com/tsukimiorinka/agg-search
- **MCP Registry name:** io.github.TsukimioRinka/agg-search
- **Categories:** [web search and scraping](https://ai-powered.com/categories/web-search-and-scraping)
- **Listing updated:** 2026-11-20

## About

The README describes agg-search as a search stack that sends one query to many engines at once, then merges the results with reciprocal rank fusion and a Jina reranker. Engines without a configured key are skipped, so a partial setup still returns results. A fallback chain moves from Jina v3.5 to v3 to v2, and if all fail the RRF order is kept.

Beyond search, it includes a fetcher that escalates from DeepSeek's fetch endpoint to static and dynamic retrieval and then anti-bot handling, running the heavier steps in an isolated container. It ships as a CLI and as an MCP server over stdio or streamable HTTP, with domain profiles for academic, code and news queries.

The project suits developers wiring web search into coding agents or research workflows who want control over which engines, keys and caches are used. Its README also notes a local feedback loop that adjusts engine weights based on which results were used, stored as hashes and counts.

## Features

- **Parallel multi-engine recall:** Queries fan out to many search engines at once, and engines missing a key are dropped before running.
- **RRF and Jina reranking:** Results are fused with reciprocal rank fusion and then reranked by a listwise Jina model, with fallbacks.
- **Tiered page fetching:** Page retrieval escalates through several methods, running browser-based steps in a container.
- **Domain profiles:** Academic, code and news profiles change engine mix, weights, recency defaults and snippet length.
- **Local feedback tuning:** Engine weights are adjusted from recorded surfaced and used results, kept as hashes and counts only.
- **Stdio and HTTP transports:** Runs as an MCP server over stdio or streamable HTTP, with an HTTP mode bound to localhost by default.

## Good for

- Give a coding agent web search across several engines through one MCP tool
- Run academic-focused searches that favour scholarly sources and domain filters
- Fetch readable page text for agents from URLs returned by search
- Compare results from multiple search providers without managing separate accounts in one place

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add agg-search --env EXA_API_KEY='<EXA_API_KEY>' --env BRAVE_API_KEY='<BRAVE_API_KEY>' --env SERPER_API_KEY='<SERPER_API_KEY>' --env MCP_ANYSEARCH_API_KEY='<MCP_ANYSEARCH_API_KEY>' --env FIRECRAWL_API_KEY='<FIRECRAWL_API_KEY>' --env TAVILY_API_KEY='<TAVILY_API_KEY>' --env DEEPSEEK_API_KEY='<DEEPSEEK_API_KEY>' --env JINA_API_KEY='<JINA_API_KEY>' -- uvx agg-search
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "agg-search": {
      "command": "uvx",
      "args": [
        "agg-search"
      ],
      "env": {
        "EXA_API_KEY": "<EXA_API_KEY>",
        "BRAVE_API_KEY": "<BRAVE_API_KEY>",
        "SERPER_API_KEY": "<SERPER_API_KEY>",
        "MCP_ANYSEARCH_API_KEY": "<MCP_ANYSEARCH_API_KEY>",
        "FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>",
        "TAVILY_API_KEY": "<TAVILY_API_KEY>",
        "DEEPSEEK_API_KEY": "<DEEPSEEK_API_KEY>",
        "JINA_API_KEY": "<JINA_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "agg-search": {
      "command": "uvx",
      "args": [
        "agg-search"
      ],
      "env": {
        "EXA_API_KEY": "<EXA_API_KEY>",
        "BRAVE_API_KEY": "<BRAVE_API_KEY>",
        "SERPER_API_KEY": "<SERPER_API_KEY>",
        "MCP_ANYSEARCH_API_KEY": "<MCP_ANYSEARCH_API_KEY>",
        "FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>",
        "TAVILY_API_KEY": "<TAVILY_API_KEY>",
        "DEEPSEEK_API_KEY": "<DEEPSEEK_API_KEY>",
        "JINA_API_KEY": "<JINA_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "agg-search": {
      "command": "uvx",
      "args": [
        "agg-search"
      ],
      "env": {
        "EXA_API_KEY": "<EXA_API_KEY>",
        "BRAVE_API_KEY": "<BRAVE_API_KEY>",
        "SERPER_API_KEY": "<SERPER_API_KEY>",
        "MCP_ANYSEARCH_API_KEY": "<MCP_ANYSEARCH_API_KEY>",
        "FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>",
        "TAVILY_API_KEY": "<TAVILY_API_KEY>",
        "DEEPSEEK_API_KEY": "<DEEPSEEK_API_KEY>",
        "JINA_API_KEY": "<JINA_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "agg-search": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "agg-search"
      ],
      "env": {
        "EXA_API_KEY": "<EXA_API_KEY>",
        "BRAVE_API_KEY": "<BRAVE_API_KEY>",
        "SERPER_API_KEY": "<SERPER_API_KEY>",
        "MCP_ANYSEARCH_API_KEY": "<MCP_ANYSEARCH_API_KEY>",
        "FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>",
        "TAVILY_API_KEY": "<TAVILY_API_KEY>",
        "DEEPSEEK_API_KEY": "<DEEPSEEK_API_KEY>",
        "JINA_API_KEY": "<JINA_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add agg-search --env EXA_API_KEY='<EXA_API_KEY>' --env BRAVE_API_KEY='<BRAVE_API_KEY>' --env SERPER_API_KEY='<SERPER_API_KEY>' --env MCP_ANYSEARCH_API_KEY='<MCP_ANYSEARCH_API_KEY>' --env FIRECRAWL_API_KEY='<FIRECRAWL_API_KEY>' --env TAVILY_API_KEY='<TAVILY_API_KEY>' --env DEEPSEEK_API_KEY='<DEEPSEEK_API_KEY>' --env JINA_API_KEY='<JINA_API_KEY>' -- uvx agg-search
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.agg-search]
command = "uvx"
args = ["agg-search"]
env = { EXA_API_KEY = "<EXA_API_KEY>", BRAVE_API_KEY = "<BRAVE_API_KEY>", SERPER_API_KEY = "<SERPER_API_KEY>", MCP_ANYSEARCH_API_KEY = "<MCP_ANYSEARCH_API_KEY>", FIRECRAWL_API_KEY = "<FIRECRAWL_API_KEY>", TAVILY_API_KEY = "<TAVILY_API_KEY>", DEEPSEEK_API_KEY = "<DEEPSEEK_API_KEY>", JINA_API_KEY = "<JINA_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "agg-search": {
      "command": "uvx",
      "args": [
        "agg-search"
      ],
      "env": {
        "EXA_API_KEY": "<EXA_API_KEY>",
        "BRAVE_API_KEY": "<BRAVE_API_KEY>",
        "SERPER_API_KEY": "<SERPER_API_KEY>",
        "MCP_ANYSEARCH_API_KEY": "<MCP_ANYSEARCH_API_KEY>",
        "FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>",
        "TAVILY_API_KEY": "<TAVILY_API_KEY>",
        "DEEPSEEK_API_KEY": "<DEEPSEEK_API_KEY>",
        "JINA_API_KEY": "<JINA_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e EXA_API_KEY='<EXA_API_KEY>' -e BRAVE_API_KEY='<BRAVE_API_KEY>' -e SERPER_API_KEY='<SERPER_API_KEY>' -e MCP_ANYSEARCH_API_KEY='<MCP_ANYSEARCH_API_KEY>' -e FIRECRAWL_API_KEY='<FIRECRAWL_API_KEY>' -e TAVILY_API_KEY='<TAVILY_API_KEY>' -e DEEPSEEK_API_KEY='<DEEPSEEK_API_KEY>' -e JINA_API_KEY='<JINA_API_KEY>' agg-search uvx -- agg-search

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "agg-search": {
      "command": "uvx",
      "args": [
        "agg-search"
      ],
      "env": {
        "EXA_API_KEY": "<EXA_API_KEY>",
        "BRAVE_API_KEY": "<BRAVE_API_KEY>",
        "SERPER_API_KEY": "<SERPER_API_KEY>",
        "MCP_ANYSEARCH_API_KEY": "<MCP_ANYSEARCH_API_KEY>",
        "FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>",
        "TAVILY_API_KEY": "<TAVILY_API_KEY>",
        "DEEPSEEK_API_KEY": "<DEEPSEEK_API_KEY>",
        "JINA_API_KEY": "<JINA_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "agg-search": {
      "command": "uvx",
      "args": [
        "agg-search"
      ],
      "env": {
        "EXA_API_KEY": "<EXA_API_KEY>",
        "BRAVE_API_KEY": "<BRAVE_API_KEY>",
        "SERPER_API_KEY": "<SERPER_API_KEY>",
        "MCP_ANYSEARCH_API_KEY": "<MCP_ANYSEARCH_API_KEY>",
        "FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>",
        "TAVILY_API_KEY": "<TAVILY_API_KEY>",
        "DEEPSEEK_API_KEY": "<DEEPSEEK_API_KEY>",
        "JINA_API_KEY": "<JINA_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "agg-search": {
      "command": "uvx",
      "args": [
        "agg-search"
      ],
      "env": {
        "EXA_API_KEY": "<EXA_API_KEY>",
        "BRAVE_API_KEY": "<BRAVE_API_KEY>",
        "SERPER_API_KEY": "<SERPER_API_KEY>",
        "MCP_ANYSEARCH_API_KEY": "<MCP_ANYSEARCH_API_KEY>",
        "FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>",
        "TAVILY_API_KEY": "<TAVILY_API_KEY>",
        "DEEPSEEK_API_KEY": "<DEEPSEEK_API_KEY>",
        "JINA_API_KEY": "<JINA_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "agg-search": {
      "command": "uvx",
      "args": [
        "agg-search"
      ],
      "env": {
        "EXA_API_KEY": "<EXA_API_KEY>",
        "BRAVE_API_KEY": "<BRAVE_API_KEY>",
        "SERPER_API_KEY": "<SERPER_API_KEY>",
        "MCP_ANYSEARCH_API_KEY": "<MCP_ANYSEARCH_API_KEY>",
        "FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>",
        "TAVILY_API_KEY": "<TAVILY_API_KEY>",
        "DEEPSEEK_API_KEY": "<DEEPSEEK_API_KEY>",
        "JINA_API_KEY": "<JINA_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "agg-search": {
      "command": "uvx",
      "args": [
        "agg-search"
      ],
      "env": {
        "EXA_API_KEY": "<EXA_API_KEY>",
        "BRAVE_API_KEY": "<BRAVE_API_KEY>",
        "SERPER_API_KEY": "<SERPER_API_KEY>",
        "MCP_ANYSEARCH_API_KEY": "<MCP_ANYSEARCH_API_KEY>",
        "FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>",
        "TAVILY_API_KEY": "<TAVILY_API_KEY>",
        "DEEPSEEK_API_KEY": "<DEEPSEEK_API_KEY>",
        "JINA_API_KEY": "<JINA_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "agg-search": {
      "command": "uvx",
      "args": [
        "agg-search"
      ],
      "env": {
        "EXA_API_KEY": "<EXA_API_KEY>",
        "BRAVE_API_KEY": "<BRAVE_API_KEY>",
        "SERPER_API_KEY": "<SERPER_API_KEY>",
        "MCP_ANYSEARCH_API_KEY": "<MCP_ANYSEARCH_API_KEY>",
        "FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>",
        "TAVILY_API_KEY": "<TAVILY_API_KEY>",
        "DEEPSEEK_API_KEY": "<DEEPSEEK_API_KEY>",
        "JINA_API_KEY": "<JINA_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "agg-search": {
      "command": "uvx",
      "args": [
        "agg-search"
      ],
      "env": {
        "EXA_API_KEY": "<EXA_API_KEY>",
        "BRAVE_API_KEY": "<BRAVE_API_KEY>",
        "SERPER_API_KEY": "<SERPER_API_KEY>",
        "MCP_ANYSEARCH_API_KEY": "<MCP_ANYSEARCH_API_KEY>",
        "FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>",
        "TAVILY_API_KEY": "<TAVILY_API_KEY>",
        "DEEPSEEK_API_KEY": "<DEEPSEEK_API_KEY>",
        "JINA_API_KEY": "<JINA_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "agg-search": {
      "command": "uvx",
      "args": [
        "agg-search"
      ],
      "env": {
        "EXA_API_KEY": "<EXA_API_KEY>",
        "BRAVE_API_KEY": "<BRAVE_API_KEY>",
        "SERPER_API_KEY": "<SERPER_API_KEY>",
        "MCP_ANYSEARCH_API_KEY": "<MCP_ANYSEARCH_API_KEY>",
        "FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>",
        "TAVILY_API_KEY": "<TAVILY_API_KEY>",
        "DEEPSEEK_API_KEY": "<DEEPSEEK_API_KEY>",
        "JINA_API_KEY": "<JINA_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 3 tools read data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `search` (name suggests: reads): Parallel multi-engine recall with fusion and reranking, returning text and structured content.
- `fetch` (name suggests: reads): Tiered retrieval of page text for one or more URLs.
- `answer`: Available only in the academic portal; synthesises a cited answer from sources or URLs.

## FAQ

### Which search engines does Agg Search support?

The README lists Exa, Brave, Serper, DeepSeek, Firecrawl, AnySearch, Tavily and SearXNG, plus keyless OpenAlex, Hacker News and Stack Exchange sources.

### Does Agg Search need API keys?

Keys are read from environment variables. Engines whose keys are missing are skipped, and the three domain sources need no key.

### How is Agg Search licensed?

The README states the project is released under the MIT licence.

### Is the HTTP transport safe to expose publicly?

The README says the HTTP endpoint has no authentication and must be placed behind a reverse proxy before any public exposure.

### Is Agg Search free?

Yes. Agg Search is open source, so you can use and self-host it for free.

### How do I add Agg Search to Claude Code?

Run this command in your terminal: claude mcp add agg-search --env EXA_API_KEY='<EXA_API_KEY>' --env BRAVE_API_KEY='<BRAVE_API_KEY>' --env SERPER_API_KEY='<SERPER_API_KEY>' --env MCP_ANYSEARCH_API_KEY='<MCP_ANYSEARCH_API_KEY>' --env FIRECRAWL_API_KEY='<FIRECRAWL_API_KEY>' --env TAVILY_API_KEY='<TAVILY_API_KEY>' --env DEEPSEEK_API_KEY='<DEEPSEEK_API_KEY>' --env JINA_API_KEY='<JINA_API_KEY>' -- uvx agg-search

### What are the best alternatives to Agg Search?

The closest alternatives to Agg Search are Search that shows its work, websearch, web-retrieval-mcp, WebSearch MCP Server and PyreCrawl.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Search that shows its work](https://ai-powered.com/mcp/search-that-shows-its-work): Search that shows its work is an open-source MCP server for web search and scraping.
- [websearch](https://ai-powered.com/mcp/websearch-2): websearch is an open-source MCP server for design and media.
- [web-retrieval-mcp](https://ai-powered.com/mcp/web-retrieval-mcp): web-retrieval-mcp is an open-source MCP server for web search and scraping.
- [WebSearch MCP Server](https://ai-powered.com/mcp/websearch-mcp-server): WebSearch MCP Server is a free MCP server for web search and scraping.
- [PyreCrawl](https://ai-powered.com/mcp/pyrecrawl): PyreCrawl is an open-source MCP server for web search and scraping.
- [ShadowCrawl](https://ai-powered.com/mcp/shadowcrawl): ShadowCrawl is an open-source MCP server for web search and scraping.
- [Webshift](https://ai-powered.com/mcp/webshift-3): Webshift is an open-source MCP server for web search and scraping.
- [聚搜GO Jusou — Aggregated Search (8 engines, 1 key)](https://ai-powered.com/mcp/go-jusou-aggregated-search-8-engines-1-key): 聚搜GO Jusou — Aggregated Search (8 engines, 1 key) is a paid MCP server for web search and scraping.

---
Source: https://ai-powered.com/mcp/agg-search
