Repomix

Level ALocal

Pack local or remote codebases into AI-friendly files that LLMs and coding agents can read or search

Overview

Repomix packs a local or remote codebase into a single AI-friendly file that LLMs and coding agents can read or search. It supports XML, Markdown, and plain-text output, provides per-file and repository token counts, offers include/exclude customization, respects .gitignore-style rules, uses Secretlint to omit sensitive files, and can compress code with Tree-sitter to reduce token usage.

⭐ 29.2kSearch & InfoTypeScriptRepo ↗Updated 2026-11-08

Installation

MCP client config (paste into mcp.json)

{
  "mcpServers": {
    "repomix": {
      "command": "npx",
      "args": [
        "-y",
        "repomix",
        "--mcp"
      ]
    }
  }
}

Agent install prompt

Copy and paste into Cursor / Claude / other agents to install this MCP for you

Please read this MCP repository and install it into my current environment:
https://github.com/yamadashy/repomix

Known working client config (can write into mcp.json):
{
  "mcpServers": {
    "repomix": {
      "command": "npx",
      "args": [
        "-y",
        "repomix",
        "--mcp"
      ]
    }
  }
}

Please: 1) check README for deps and env vars; 2) write config for my client; 3) if secrets are missing, tell me what to fill — do not invent values.

Related servers