# Codigest

> Codigest is an open-source MCP server for developer tools. Local MCP server packaging code, diffs and terminal output into LLM-ready context. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Windows, Linux
- **Repository:** https://github.com/nanisaac/codigest
- **MCP Registry name:** io.github.NaNIsaac/codigest
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-18

## About

Codigest solves the problem of choosing what to show a coding assistant. Pasting only an error can leave out the function under test, while pasting a whole repository drowns the problem. Its commands bundle exactly the files you pick, the local files they import, what changed since a baseline, or a failing command together with the files its error names.

Everything runs on your machine and the tool never calls a model itself. Each bundle reports its size, and the `pack` command explains why every file was included and which were left out. It excludes .env files and known key patterns and tries to mask tokens, though the README warns that you should still review a bundle before sharing it.

A `digest` mode lists signatures and docstrings only for a compact overview, and MCP clients such as Claude Code and Cursor can request the same output. The MCP package is published on PyPI and runs over stdio.

## Features

- **Selective bundles:** Collect a project, chosen files or folders, or files with their local imports.
- **Change views:** Text or function-level diffs against a baseline without touching Git history.
- **Terminal capture:** Record commands and hand over a failing one with the files its error mentions.
- **Compact digests:** List signatures and docstrings only for a smaller overview.
- **Inclusion report:** Shows the size and reason for each included and omitted file.
- **Secret filtering:** Skips .env files and known key patterns, and tries to mask tokens.

## Good for

- Share a failing test and the files it touches with a chat assistant
- Send a reviewer the function-level diff since a baseline
- Give an agent a signature-only overview of a large codebase
- Trim a prompt to a few files with line ranges

## Install

### Claude Code (Terminal)

```sh
claude mcp add codigest -- uvx codigest
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "codigest": {
      "command": "uvx",
      "args": [
        "codigest"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "codigest": {
      "command": "uvx",
      "args": [
        "codigest"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "codigest": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "codigest"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "codigest": {
      "command": "uvx",
      "args": [
        "codigest"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "codigest": {
      "command": "uvx",
      "args": [
        "codigest"
      ]
    }
  }
}
```

## FAQ

### Does it send my code to a model?

No. The README says it calls no AI model and only prepares text for you to send.

### How do I install it?

Use the prebuilt installer script, or install the `codigest` package from PyPI with uv.

### Which languages are supported for import following?

The README mentions Python and JS/TS for local imports, plus MATLAB in digests.

### Is secret filtering guaranteed?

No. The README advises reviewing a bundle before sharing it.

### Is Codigest free?

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

### How do I add Codigest to Claude Code?

Run this command in your terminal: claude mcp add codigest -- uvx codigest

### What are the best alternatives to Codigest?

The closest alternatives to Codigest are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

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

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/codigest
