Get the FREE Ultimate OpenClaw Setup Guide →

repomix

📦 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.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio yamadashy-repomix npx -y repomix

How to use

Repomix is a powerful tool designed to pack your entire code repository into a single, AI-friendly file. This is particularly useful when you need to provide your codebase to Large Language Models (LLMs) or other AI tools such as Claude, ChatGPT, and more. With just one command, you can generate a repomix-output.xml file that contains all the files in your repository formatted for easy processing by AI. You can then send this file to an AI assistant with specific prompts to get insights or refactor suggestions based on your code.

How to install

To install Repomix, you can use several methods depending on your preference. First, ensure you have Node.js installed on your system. Then, you can either run it directly without installation using the command:

npx repomix@latest

For a global installation, you can use npm:

npm install -g repomix

Alternatively, you can use yarn, bun, or Homebrew:

yarn global add repomix
bun add -g repomix
brew install repomix

After installation, you can run Repomix in any project directory by simply typing repomix in your terminal.

Additional notes

Repomix automatically respects your .gitignore, .ignore, and .repomixignore files, ensuring that sensitive information is not included in the output. It also provides token counts for each file, which is useful for understanding LLM context limits. If you encounter issues, make sure your Node.js version is compatible and check the official documentation for troubleshooting tips. Additionally, you can customize the output format and other options when using the web interface.

Related MCP Servers

Sponsor this space

Reach thousands of developers