Code Context logo

Code Context

Local code search with ranked retrieval, read-only SQL, exact matching, and repository-wide questions for AI coding agents.

Install Code Context

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "code-context": {
      "command": "npx",
      "args": [
        "-y",
        "@infino-ai/code-context"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

The code-context MCP server gives AI coding agents exact search, ranked semantic retrieval, read-only SQL, and repository-wide question answering over indexed files. Local `find` and plain SQL queries run against an on-machine keyword index, while ranked search, semantic SQL, and `ask` use Infino cloud compute. Reach for it when an agent needs complete match counts, cross-file investigation, ranked results, or searches spanning code, logs, tests, and configuration. Installation requires Claude Code, Node.js 22 or newer, and macOS or Linux.

Use cases

  • Review code changes by finding all callers and related files
  • Investigate how a feature works across an entire repository
  • Count and rank files or code regions with SQL
  • Trace failures across source code, logs, tests, and CI output

Key features

  • Exact repository-wide search with match counts
  • Hybrid keyword and semantic ranking
  • Read-only SQL over the code index
  • Repository questions with cited results
  • Search across code and operational file corpora

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

8/8 checks healthy over the last 41d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · @infino-ai/code-context (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars32Stargazers on the source repository.
npm downloads299Package downloads in the last 30 days.
Last commit3d agoMost recent push to the default branch.

How Code Context works

What code-context MCP server does

The code-context MCP server indexes a directory and exposes four tools for AI coding agents: find, search, sql, and ask. It is intended for repositories and other file collections, including logs, test output, stack traces, CI output, configuration, and documentation. The indexed material can be queried for exact matches, meaning-based matches, aggregations, or questions that span multiple files.

find returns every line containing an exact string, along with repository-wide and per-file counts. search combines keyword matching with semantic similarity and returns ranked code hits with path:line citations. sql provides read-only SQL over the index, including ranked searches as table-valued operations that can be counted or grouped. ask sends repository questions to small models in the Infino service; the response contains investigated rows and source citations rather than a prose answer.

How it works

The tools use an Infino index held in two locations. Exact lookup and plain SQL run locally over the keyword index, which keeps those operations on the machine. Ranked retrieval, SQL statements containing ranked search, and ask run in the Infino cloud, where embeddings and heavier computation are handled. The agent remains responsible for reasoning and composing the final response.

Files are indexed as the agent uses the server, with the first question indexing the opened directory. Several ask investigations can run concurrently. JSONL and NDJSON files are chunked at record boundaries, helping keep log messages and related stack-trace content together. The same tools can search multiple repositories or other corpora when each local operation receives a repository path.

Setup and configuration

Install Claude Code and Node.js 22 or newer on macOS or Linux. Add the marketplace and install the plugin with:

Terminal
claude plugin marketplace add infino-ai/supergrep
claude plugin install code-context@infino-ai

After installation, open Claude Code in a directory containing a repository, logs, notes, or other files and ask a question. The code-context MCP server is presented through the Claude Code plugin rather than a list of separately configured clients.

Tools and capabilities

  • find: exact, complete line matching with total and per-file counts.
  • search: ranked retrieval combining lexical and semantic matching.
  • sql: read-only queries, grouping, counting, and ranked-search aggregation.
  • ask: parallel repository investigations using Infino-hosted small models, with cited rows.
  • Multi-file corpus search across source code, logs, test output, configuration, and documentation.

Limitations and notes

Plain local operations and cloud-backed operations do not use the same execution location: semantic retrieval, ranked SQL, and ask send work to Infino cloud services, while exact find and plain SQL use the local index. Results include citations for retrieved code, but the agent still has to interpret them and write the answer. Performance and answer quality vary by model and question type; the README reports stronger results for repository-wide counts, rankings, and broad investigations than for locating a single named item that a large model can read directly.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Code Context

code-context is an MCP server that connects AI coding agents to an Infino index of local files. Its main tools are `find` for exact matches, `search` for ranked keyword and semantic retrieval, `sql` for read-only aggregation, and `ask` for repository-wide investigations that return cited rows.

Install it through Claude Code with `claude plugin marketplace add infino-ai/supergrep` followed by `claude plugin install code-context@infino-ai`. You need Claude Code and Node.js 22 or newer on macOS or Linux. Open Claude Code in a directory afterward; its first question indexes that directory.

The provided installation instructions document Claude Code, not Cursor. The README presents code-context as a Claude Code plugin and does not provide Cursor setup or compatibility details.

Yes, code-context can index logs, test output, stack traces, CI output, configuration, and documentation alongside source code. It supports exact, ranked, SQL, and repository-question workflows over those files; JSONL and NDJSON are chunked at record boundaries.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCode Context AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/code-context?style=directory)](https://allmcps.com/mcp/code-context)
HTML Embed
<a href="https://allmcps.com/mcp/code-context"><img src="https://allmcps.com/api/badge/code-context?style=directory" alt="Code Context on AllMCPs" /></a>