Get the FREE Ultimate OpenClaw Setup Guide →

mcp -repomix

MCP server from mlopezgez/mcp-server-repomix

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio mlopezgez-mcp-server-repomix cargo run --release \
  --env REPoMIX_PATH="Path to Repomix executable if using a custom installation (optional)"

How to use

The Repomix MCP Server integrates Repomix with Zed's Model Context Protocol, enabling AI assistants to pack and analyze entire codebases directly from within Zed. Once the extension is installed and enabled, you can use the built-in MCP tools to: pack repositories into an AI-friendly single file, read the contents of packed outputs, and search within packed data for specific patterns or code elements. The server supports packing both local and remote repositories (via a repository URL) and can generate outputs in multiple formats suitable for AI consumption.

In practice, you’ll interact with three main MCP tools exposed by this extension: pack_repository to convert a local or remote repository into a packed output, read_packed_output to retrieve and inspect the contents of a previously packed result, and search_packed_output to locate specific code patterns or symbols across the packed data. Use prompts in the Zed Assistant to trigger these actions, such as asking it to pack the current repository, analyze the repository structure, or locate authentication logic within the pack.

How to install

Prerequisites

  • Zed Editor with MCP support installed
  • Rust toolchain (cargo) installed
  • Node.js installed for Repomix if you plan to use the Repomix CLI in workflows
  • Repomix installed globally (required by the MCP server): npm install -g repomix

From Source

  1. Clone the repository: git clone https://github.com/mlopezgez/zed-mcp-server-repomix.git cd zed-mcp-server-repomix

  2. Build the extension (release): cargo build --release

  3. Install in Zed: mkdir -p ~/.config/zed/extensions cp -r . ~/.config/zed/extensions/mcp-server-repomix

  4. Start Zed and ensure the extension is enabled in Zed settings under context_servers.

Alternative (From Zed Extension Marketplace)

  1. Open Zed and install the Repomix MCP Server extension from the marketplace.
  2. Ensure Repomix is installed globally (npm install -g repomix) and that Node.js is available.
  3. In Zed settings, add or verify the MCP server is configured (see Basic Setup in README).

Notes

  • If you customize Repomix path, add settings.repomix_path in your Zed configuration (as described in Basic Setup).

Additional notes

Tips and troubleshooting: Ensure Repomix is installed and accessible in your PATH (repomix --version). If the MCP server fails to start, verify Rust build completed successfully and that you started the server from the project root or set the correct working directory. For remote repositories, provide the repository URL to the pack_repository tool (HTTPS or SSH formats are supported). If you encounter permission issues, confirm you have write permissions in the destination directory and that Repomix can execute (which repomix). You can enable debug logging in Zed to get more detailed MCP server output by setting { "assistant": { "debug": true } } in your Zed settings.

Related MCP Servers

Sponsor this space

Reach thousands of developers