
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
repomix-reader-mcp
Advanced tools
Simple Model Context Protocol server for reading and grep-searching Repomix output files
A simple Model Context Protocol (MCP) server for reading and grep-searching Repomix output files. This MCP provides secure file access by restricting operations to a pre-selected set of Repomix output files specified at startup.
npm install
npm run build
Configure your MCP-compatible client to use this server with the Repomix files you want to make available:
{
"mcpServers": {
"repomix-reader": {
"command": "npx",
"args": [
"repomix-reader-mcp",
"/path/to/first-repomix-output.xml",
"/path/to/second-repomix-output.xml"
]
}
}
}
Note: You must specify at least one Repomix output file as a command line argument. Only these files will be accessible through the MCP tools.
list_repomix_filesList all available Repomix files that can be read or searched.
Parameters: None
Returns: A list of available files with their IDs, filenames, and descriptions (extracted from user-provided headers in the XML files).
read_repomix_outputRead content from a Repomix output file with optional line range.
Parameters:
fileId (string, required): ID of the Repomix output file to read (use list_repomix_files to see available IDs)startLine (number, optional): Starting line number (1-based, inclusive)endLine (number, optional): Ending line number (1-based, inclusive)Example:
{
"fileId": "1",
"startLine": 1,
"endLine": 100
}
grep_repomix_outputSearch for patterns in a Repomix output file with grep-like functionality.
Parameters:
fileId (string, required): ID of the Repomix output file to search (use list_repomix_files to see available IDs)pattern (string, required): Search pattern (supports regex)flags (string, optional): Regex flags (e.g., "i" for case-insensitive, "g" for global)contextLines (number, optional): Number of context lines to show around matches (default: 2)maxMatches (number, optional): Maximum number of matches to return (default: 100)Example:
{
"fileId": "1",
"pattern": "function.*authenticate",
"flags": "i",
"contextLines": 3,
"maxMatches": 50
}
npm install
npm run build
npm run dev
npm run clean
repomix-reader-mcp/
├── .github/
│ └── workflows/ # GitHub Actions CI/CD
│ ├── ci.yml # Continuous integration
│ ├── release.yml # Automated releases
│ └── manual-release.yml # Manual release workflow
├── src/
│ ├── tools/ # Tool implementations
│ │ ├── index.ts # Tool exports
│ │ ├── listRepomixFiles.ts # List files tool
│ │ ├── readRepomixOutput.ts # Read tool implementation
│ │ └── grepRepomixOutput.ts # Grep tool implementation
│ ├── fileManager.ts # File management utility
│ ├── types.ts # Shared type definitions
│ └── index.ts # Main MCP server
├── scripts/
│ └── security-check.js # Security scanner script
├── build/ # Compiled output (auto-generated)
├── package.json # Dependencies & scripts
├── tsconfig.json # TypeScript config
└── README.md # Documentation
@modelcontextprotocol/sdk - MCP SDK for creating MCP serversThis MCP server provides secure file operations:
Works with any Repomix output format:
# Start with specific Repomix files
node build/index.js output1.xml output2.xml /path/to/output3.xml
{
"tool": "list_repomix_files"
}
{
"tool": "read_repomix_output",
"fileId": "1",
"startLine": 1,
"endLine": 50
}
{
"tool": "grep_repomix_output",
"fileId": "1",
"pattern": "function\\s+\\w+",
"flags": "gi",
"contextLines": 2
}
MIT
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/amazing-featurenpm run security:checknpm run buildgit commit -m "feat: add amazing feature"git push origin feature/amazing-featureThe CI pipeline will automatically run tests and security checks on your PR.
Special thanks to the Repomix team for creating an excellent tool for packaging codebases into AI-friendly formats. This MCP server extends Repomix's capabilities by providing used to structured access to Repomix output files.
Without Repomix's innovative approach to codebase analysis and packaging, this project wouldn't exist. We're grateful for their open-source contribution to the AI development community.
FAQs
Simple Model Context Protocol server for reading and grep-searching Repomix output files
The npm package repomix-reader-mcp receives a total of 13 weekly downloads. As such, repomix-reader-mcp popularity was classified as not popular.
We found that repomix-reader-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.