Feedback

Repomix (MCP client) Verified

@yamadashy Claim

Basic information

Runtime
node
Version
1.0.0
Category
License
MIT license
Transports
stdio
Author
yamadashy
Submitted by
Community
Quality
80
Stars
22.3K

About Repomix (MCP client)

📦 Repomix (formerly Repopack) is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Language Models (LLMs) or other AI tools like Claude, ChatGPT, DeepSeek, Perplexity, Gemini, Gemma, Llama,

Repomix is a MCP client in the Developer Tools category listed in the AddMCP.net directory, published by yamadashy. It exposes 8 tools, including pack_codebase, pack_remote_repository, attach_packed_output, read_repomix_output and more. Supported transport: stdio. Runtime: node. License: MIT license. The repository has 22,298 GitHub stars. Source code is hosted on github.com. Related topics: developer-tools, official.

Setup

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

Repomix (MCP client) config

Add this server to your MCP-compatible client using the configuration below.

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

Repomix (MCP client) tools

  • pack_codebase — Package a local code directory into a consolidated file for AI analysis. This tool analyzes the codebase structure, extracts relevant code content, and generates a comprehensive report including metrics, file tree, and formatted code content. Supports multiple output formats: XML (structured with <file> tags), Markdown (human-readable with ## headers and code blocks), JSON (machine-readable with files as key-value pairs), and Plain text (simple format with separators). Also supports Tree-sitter compression for efficient token usage.
  • pack_remote_repository — Fetch, clone, and package a GitHub repository into a consolidated file for AI analysis. This tool automatically clones the remote repository, analyzes its structure, and generates a comprehensive report. Supports multiple output formats: XML (structured with <file> tags), Markdown (human-readable with ## headers and code blocks), JSON (machine-readable with files as key-value pairs), and Plain text (simple format with separators). Also supports various GitHub URL formats and includes security checks to prevent exposure of sensitive information.
  • attach_packed_output — Attach an existing Repomix packed output file for AI analysis. This tool accepts either a directory containing a repomix output file or a direct path to a packed repository file. Supports multiple formats: XML (structured with <file> tags), Markdown (human-readable with ## headers and code blocks), JSON (machine-readable with files as key-value pairs), and Plain text (simple format with separators). Calling the tool again with the same file path will refresh the content if the file has been updated. It will return in that case a new output ID and the updated content.
  • read_repomix_output — Read the contents of a Repomix-generated output file. Supports partial reading with line range specification for large files. This tool is designed for environments where direct file system access is limited (e.g., web-based environments, sandboxed applications). For direct file system access, use standard file operations.
  • grep_repomix_output — Search for patterns in a Repomix output file using grep-like functionality with JavaScript RegExp syntax. Returns matching lines with optional context lines around matches.
  • file_system_read_file — Read a file from the local file system using an absolute path. Includes built-in security validation to detect and prevent access to files containing sensitive information (API keys, passwords, secrets).
  • file_system_read_directory — List the contents of a directory using an absolute path. Returns a formatted list showing files and subdirectories with clear [FILE]/[DIR] indicators. Useful for exploring project structure and understanding codebase organization.
  • generate_skill — Generate a Claude Agent Skill from a local code directory. Creates a skill package containing SKILL.md (entry point with metadata) and references/ folder with summary.md, project-structure.md, files.md, and optionally tech-stack.md. This tool creates Project Skills in <project>/.claude/skills/<name>/, which are shared with the team via version control. Output Structure: .claude/skills/<skill-name>/ ├── SKILL.md # Entry point with usage guide └── references/ ├── summary.md # Purpose, format, and statistics ├── project-structure.md # Directory tree with line counts ├── files.md # All file contents └── tech-stack.md # Languages, frameworks, dependencies (if detected) Example Path: /path/to/project/.claude/skills/repomix-reference-myproject/

Overview

What is Repomix?

Repomix is a powerful CLI tool that packs an entire repository into a single, AI-friendly file, designed for feeding codebases to large language models (LLMs) like Claude, ChatGPT, DeepSeek, and others. It runs via npx, npm global install, Docker, a web interface at repomix.com, and a community-maintained VSCode extension.

How to use Repomix?

Run npx repomix in any project directory to generate a repomix-output.txt file. Options include --include/--ignore for glob patterns, --remote for remote repositories, --compress for token reduction, --style xml for XML output, and --init to create a config file. A website at repomix.com allows browser-based use.

Key features of Repomix

  • Packs entire repository into a single AI-friendly file
  • Token counting for files and total repository
  • Git-aware; respects .gitignore and .git/info/exclude
  • Security checks via Secretlint to prevent sensitive data leaks
  • Code compression with Tree-sitter to reduce token count
  • Customizable include/exclude patterns and output style (Plain Text, XML, Markdown)

Use cases of Repomix

  • Code review and refactoring suggestions by feeding the packed file to an LLM
  • Generating project documentation from the codebase
  • Creating comprehensive test cases for main functions and classes
  • Assessing code quality and adherence to best practices
  • Getting a high-level overview of a library’s architecture

Frequently asked questions

1 What is Repomix and how does it differ from other tools?

Repomix is a tool that packs your entire repository into a single, AI-friendly file. It is optimized for LLM consumption with features like token counting, security scanning, and compression, unlike simple concatenation tools. It supports multiple output formats and can work with remote repositories.

2 What platforms or AI tools can I use with Repomix?

Repomix works with Claude, ChatGPT, DeepSeek, Perplexity, Gemini, Gemma, Llama, Grok, and more. You can copy the generated file into any LLM chat or use it with API-based workflows.

3 How do I install and run Repomix?

You can run it instantly with npx repomix without installation, or install globally via npm install -g repomix, yarn global add repomix, brew install repomix, or use the Docker image ghcr.io/yamadashy/repomix. A web version is available at repomix.com.

4 Is Repomix free and open source?

Yes, Repomix is open source (MIT license) and free to use. There is no pricing or licensing fee mentioned in the README.

5 Does Repomix support remote repositories?

Yes, use repomix --remote \x3Curl> to pack a remote repository. You can specify a branch, commit hash, or URL with branch/commit details.

Videos

Tutorials, guides, and showcases related to Repomix (MCP client). The player loads when you press play.

Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬