Redcon logo

Redcon

Deterministically ranks, compresses, and packs local repository context for coding agents through MCP or a CLI.

Install Redcon

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

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "redcon": {
      "command": "uvx",
      "args": [
        "redcon"
      ]
    }
  }
}

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

We couldn’t confirm it starts correctly

The install command installed and started the server, which then stopped for configuration (such as an API key) that our sandbox does not have — expected for servers that connect to your account.

uvx redcon

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The redcon MCP server ranks repository files, compresses their contents, and packs relevant context under a token budget for AI coding agents. It runs locally and uses deterministic scanning, relevance scoring, language-aware compression, and budgeted packing without embeddings. Agents can call nine MCP tools for ranking, repository mapping, search, compression, command execution, and quality checks. Reach for it when large repositories or command output consume too much context, or when CI needs repeatable context planning.

Use cases

  • Rank repository files before an agent starts a coding task
  • Pack relevant code under a fixed token budget
  • Compress test, diff, search, and log output
  • Audit pull requests for context growth
  • Run context-selection benchmarks in CI

Key features

  • Deterministic local repository ranking
  • Language-aware file compression
  • Token-budgeted context packing
  • Regex and AST-based code search
  • Compressed shell command output
  • Quality checks for preserved output facts

Security & health

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

ActiveLast checked

Recent health check succeeded.

16/16 checks healthy over the last 77d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 17d ago via OSV.dev · redcon (PyPI)

Adoption & maintenance

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

GitHub stars9Stargazers on the source repository.
Last commit20d agoMost recent push to the default branch.
Install checkRunsOur sandbox started it; it then asked for an API key or config.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Redcon works

What redcon does

The redcon MCP server helps coding agents select useful repository context instead of sending an entire codebase into every request. It scores files for a task, applies a suitable compression mode, and assembles the selected material within a token limit. Compression can preserve a complete file, a snippet, extracted symbols, or a summary.

The process is local and deterministic: identical inputs produce identical outputs. Redcon does not use embeddings or random chunking. The project also provides a CLI for planning, packing, benchmarking, pull-request context audits, and CI workflows. Results can be written as machine-readable JSON and human-readable Markdown.

How it works

The redcon MCP server follows a pull model. Rather than pushing one large context payload to an agent, it exposes tools that the agent calls as it explores the repository. A typical sequence is:

  1. Scan repository files, using cached incremental results where available.
  2. Rank files using task keywords, imports, file roles, and Git history.
  3. Compress individual files with an appropriate strategy.
  4. Pack the highest-ranked compressed files under the requested token budget.

Agents can begin with ranked files or a lightweight repository map, then inspect selected files or search more narrowly. Search can target ranked files or the full repository. Structural search uses ast-grep patterns that match syntax trees rather than plain text.

Command output is also handled through the same model. The redcon_run tool executes a shell command and returns a compressed, budget-aware result. Built-in handling covers outputs such as Git diffs, tests, searches, directory listings, logs, coverage reports, profilers, package commands, Kubernetes output, and SQL execution plans. A quality harness checks that declared important facts remain in compressed output.

Setup and configuration

Install the MCP-enabled package with pip install "redcon[mcp]", then run redcon init. Initialization creates redcon.toml, registers the MCP server, and can write an AGENTS.md instruction section. Configuration files are generated for detected clients, including Claude Code, Cursor, and Windsurf.

The VS Code extension provides an alternative setup path. It installs the CLI through pip, registers the MCP server for supported clients, and exposes budget, ranking, and compression views in a sidebar. For CLI-only use, install redcon and run redcon init --no-mcp.

Tools and capabilities

The redcon MCP server exposes nine tools:

  • redcon_rank returns top-ranked files with scores and reasons.
  • redcon_overview groups a lightweight repository map by directory.
  • redcon_repo_map returns ranked files and code signatures within a budget.
  • redcon_compress produces a compressed view of one file.
  • redcon_search performs regular-expression searches.
  • redcon_structural_search searches code by AST pattern.
  • redcon_budget plans which files fit a token budget.
  • redcon_run executes commands and compresses their output.
  • redcon_quality_check verifies compressed command output with the quality harness.

The CLI also supports commands such as plan, pack, benchmark, pr-audit, cmd-quality, and cmd-bench.

Limitations and notes

Results depend on the repository, task description, token budget, and available Git information. The project reports benchmark results for its own evaluation data, but those figures should not be treated as a guarantee for every codebase or task. Compression is designed to preserve declared facts, and the quality harness rejects regressions it detects; developers should still validate whether the retained context is sufficient for their workflow.

The MCP integration is intended for local repositories.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

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

Frequently Asked Questions about Redcon

redcon is an MCP server that connects AI coding agents to local repository context through nine tools for ranking files, mapping repositories, compressing files, searching code, planning token budgets, running commands, and checking compressed output quality. It uses deterministic, local processing rather than embeddings.

Install it with `pip install "redcon[mcp]"`, then run `redcon init`. The command creates configuration and registers the MCP server for detected clients, including Claude Code, Cursor, and Windsurf.

redcon supports Claude Code, Cursor, Windsurf, Cline, and Zed, and its initializer can also configure VS Code, Codex CLI, and Gemini CLI when detected.

Yes. The `redcon_run` MCP tool executes a shell command and returns a budget-aware compressed result. Supported output categories include Git, tests, searches, directory listings, logs, coverage, profiling, Kubernetes, package commands, and SQL plans.

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 PreviewRedcon AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/redcon?style=directory)](https://allmcps.com/mcp/redcon)
HTML Embed
<a href="https://allmcps.com/mcp/redcon"><img src="https://allmcps.com/api/badge/redcon?style=directory" alt="Redcon on AllMCPs" /></a>