# supergrep [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/infino-ai/supergrep  
**GitHub Stars:** 31  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/supergrep

## Description
Code search at scale.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/infino-ai/supergrep), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Sign in:

```sh
npx -y @infino-ai/code-context login --platform https://api.supergrep.infino.ai
```

2. Sign in:

```sh
npx -y @infino-ai/code-context login --db https://api.supergrep.infino.ai --yes < keyfile
```

3. Install:

```sh
git clone https://github.com/infino-ai/supergrep.git
```

4. Run:

```sh
cd supergrep
```

5. Install:

```sh
npm ci && npm run build
```

6. Install:

```sh
hermes plugins install https://github.com/infino-ai/supergrep/tree/main/hermes_supergrep --enable
```

## Documentation

## What supergrep does

supergrep provides retrieval tools for AI coding agents working with code and other file-based data. It builds an index for a directory and exposes that index through MCP. Agents can search source code, logs, test output, stack traces, CI output, configuration, documentation, and issue exports without repeatedly scanning every file.

The server is particularly suited to questions that span a repository or several repositories: finding every caller of a symbol, counting occurrences, ranking files by relevance, or investigating a failure across source and generated output. Each local operation accepts a repository or directory path, allowing one session to work across multiple codebases without requiring a separate checkout for every question.

## How it works

The index has a local keyword-oriented side and an Infino cloud side. `find` performs exact matching locally and returns every matching line, along with repository-wide and per-file counts. Local SQL also queries the keyword index. These operations are intended to respond quickly without sending the indexed data away from the machine.

`search` performs a ranked retrieval pass that combines exact keyword matching with semantic similarity. It runs through Infino in the cloud, where embeddings and heavier retrieval computation are handled. SQL can call ranked search functions as table-valued inputs, allowing one read-only statement to retrieve, group, count, and rank results.

Files such as `.log`, `.out`, `.err`, `.jsonl`, and `.ndjson` are chunked at record boundaries. This keeps related log or event records together during retrieval. Larger datasets can also be written to Parquet in object storage and searched without first downloading them to the local machine.

## Setup and configuration

The documented installation targets Claude Code on macOS or Linux and requires Node.js 22.19 or newer. Install the plugin with:

```bash
claude plugin marketplace add infino-ai/supergrep
claude plugin install supergrep@infino-ai
```

After installation, open Claude Code in a directory and ask a question. The first question indexes that directory; later tool calls use the resulting index. Per-directory configuration is not required, and local indexing and local tools can be used without an account.

Semantic `search` requires an Infino account. Authenticate once from a terminal with:

```bash
npx -y @infino-ai/code-context login --platform https://api.supergrep.infino.ai
```

The login command is run by the user rather than automatically by the agent. The service offers a free account without requiring a credit card.

## Tools and capabilities

- `find`: Returns every line containing an exact string, with cited file locations and counts.
- `search`: Produces ranked results using keyword matching and semantic similarity; results include code and `path:line` citations.
- `sql`: Runs read-only SQL over the index and can incorporate ranked searches for aggregation and ranking.
- Cross-corpus retrieval: Searches code alongside logs, test output, issues, configuration, and documentation.
- Object-storage retrieval: Reads Parquet-based data from object storage without loading the full dataset onto the local machine.

## Limitations and notes

Exact matching and plain SQL use the local keyword index, while semantic search and SQL statements containing ranked search use the Infino cloud. The cloud path therefore requires account setup and operates over a copy of the index kept there. The documented installation flow is specific to Claude Code, macOS or Linux, and Node.js 22.19 or newer.

Supergrep is most useful for whole-codebase questions, counts, rankings, and finding all occurrences. For locating one named item inside a large model-readable file, conventional file reading may be more effective. Search quality, cost, and response time can vary with the model and the question.

_Full upstream README: https://allmcps.com/mcp/supergrep/readme_

