About Repomix
Repomix is an MCP server published by yamadashy in the AI category: 📦 Repomix 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, Grok, and more. Conduid read 8 tools from its source: attach_packed_output, file_system_read_directory, file_system_read_file, generate_skill, grep_repomix_output, pack_codebase and 2 more. It is published to npm as repomix and starts with npx.
The repository has 30K stars and 1.7K forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v1.19.0 (8 Nov 2026): This release moves the MCP server to SDK v2 with live progress and cancellation, makes --compress output far more accurate, and brings a big round of bug fixes from firs… It follows v1.18.1 (21 Sep 2026), and the 5 most recent releases go back to v1.16.1 (11 Jul 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions.
Install
claude mcp add repomix -- npx -y repomix --mcpnpx -y repomix --mcpgit clone https://github.com/yamadashy/repomixTools (8)
attach_packed_outputAttach 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.| Parameter | Type | Description |
|---|---|---|
| path * | string | Path to a directory containing repomix output file or direct path to a packed repository file (supports .xml, .md, .txt, .json formats) |
| topFilesLength | number | Number of largest files by size to display in the metrics summary (default: 10) |
file_system_read_directoryfile_system_read_filegenerate_skillGenerate 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-stacks.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-stacks.md # Languages, frameworks, dependencies (if detected) Example Path: /path/to/project/.claude/skills/repomix-reference-myproject/| Parameter | Type | Description |
|---|---|---|
| compress | boolean | Enable Tree-sitter compression to extract essential code signatures and structure while removing implementation details (default: false). |
| directory * | string | Directory to pack (Absolute path) |
| ignorePatterns | string | Specify additional files to exclude using fast-glob patterns. Multiple patterns can be comma-separated (e.g., "test/**,*.spec.js"). |
| includePatterns | string | Specify files to include using fast-glob patterns. Multiple patterns can be comma-separated (e.g., "**/*.{js,ts}", "src/**,docs/**"). |
| skillName | string | Name of the skill to generate (kebab-case, max 64 chars). Will be normalized if not in kebab-case. Used for the skill directory name and SKILL.md metadata. If omitted, auto-generates as "repomix-reference-<folder-name>". |
grep_repomix_outputSearch for patterns in a Repomix output file using grep-like functionality with JavaScript RegExp syntax. Returns matching lines with optional context lines around matches.| Parameter | Type | Description |
|---|---|---|
| afterLines | number | Number of context lines to show after each match (like grep -A). Takes precedence over contextLines. |
| beforeLines | number | Number of context lines to show before each match (like grep -B). Takes precedence over contextLines. |
| contextLines | number | Number of context lines to show before and after each match (default: 0). Overridden by beforeLines/afterLines if specified. |
| ignoreCase | boolean | Perform case-insensitive matching (default: false) |
| outputId * | string | ID of the Repomix output file to search |
| pattern * | string | Search pattern (JavaScript RegExp regular expression syntax) |
pack_codebasePackage 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_repositoryFetch, 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. Files matching known secret formats are excluded, but that scan is a heuristic, not an access boundary.| Parameter | Type | Description |
|---|---|---|
| compress | boolean | Enable Tree-sitter compression to extract essential code signatures and structure while removing implementation details. Reduces token usage by ~70% while preserving semantic meaning. Generally not needed since grep_repomix_output allows incremental content retrieval. Use only when you specifically need the entire codebase content for large repositories (default: false). |
| ignorePatterns | string | Specify additional files to exclude using fast-glob patterns. Multiple patterns can be comma-separated (e.g., "test/**,*.spec.js", "node_modules/**,dist/**"). These patterns supplement .gitignore and built-in exclusions. |
| includePatterns | string | Specify files to include using fast-glob patterns. Multiple patterns can be comma-separated (e.g., "**/*.{js,ts}", "src/**,docs/**"). Only matching files will be processed. Useful for focusing on specific parts of the codebase. |
| remote * | string | GitHub repository URL or user/repo format (e.g., "yamadashy/repomix", "https://github.com/user/repo", or "https://github.com/user/repo/tree/branch") |
| style | string | Output format style: xml (structured tags, default), markdown (human-readable with code blocks), json (machine-readable key-value), or plain (simple text with separators) |
| topFilesLength | number | Number of largest files by size to display in the metrics summary for codebase analysis (default: 10) |
read_repomix_outputRead 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.| Parameter | Type | Description |
|---|---|---|
| endLine | number | Ending line number (1-based, inclusive). If not specified, reads to end. |
| outputId * | string | ID of the Repomix output file to read |
| startLine | number | Starting line number (1-based, inclusive). If not specified, reads from beginning. |
Security checks
Static checks derived from the repository 22 hours ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 10K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by flake.lock and 4 more.
- ✓No dynamic code executionScanned 226 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiosrc/mcp/mcpServer.ts:2
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 1 callwebsite/client/components/api/client.ts:124
- Writes or deletes files
- 35 callssrc/cli/actions/initAction.ts:132, src/cli/actions/initAction.ts:133, src/cli/actions/initAction.ts:195
- Lockfile
- flake.lock and 4 more
Pattern matches on the source text of 226 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 10K words, fetched 22 hours ago. The original in the repository is authoritative.
Read full README