npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

repomix-mcp

v1.0.3

Published

MCP server for intelligent context gathering using repomix

Readme

repomix-mcp

An MCP server that provides intelligent context gathering capabilities using repomix. This tool helps AI assistants understand your codebase better by automatically analyzing project structure and gathering relevant context.

Features

  • Smart directory detection and context gathering
  • Project type detection (React, Vue, Angular)
  • Configurable file patterns and exclusions
  • Automatic configuration file inclusion
  • Project structure analysis for optimal context gathering
  • Concise summaries for users with full context for AI

Installation

You can use repomix-mcp directly with npx without installing:

npx repomix-mcp

Or install globally:

npm install -g repomix-mcp

Usage

As an MCP Server

Add to your MCP settings configuration file (e.g., claude_desktop_config.json):

{
  "mcpServers": {
    "repomix": {
      "command": "npx",
      "args": ["repomix-mcp"],
      "env": {},
      "disabled": false,
      "autoApprove": []
    }
  }
}

Or if installed globally:

{
  "mcpServers": {
    "repomix": {
      "command": "repomix-mcp",
      "args": [],
      "env": {},
      "disabled": false,
      "autoApprove": []
    }
  }
}

Available Tools

1. gather_context

Gathers context from specified directories using repomix.

Parameters:

  • baseDir (required): Base directory to search in
  • targetDirs (optional): Target directories to find (e.g. ['translations', 'src'])
  • patterns (optional): File patterns to include
  • depth (optional): Context gathering depth ('shallow', 'dependencies', 'full')
  • includeConfigs (optional): Include configuration files
  • excludePatterns (optional): Patterns to exclude

Example:

await mcp.use("repomix", "gather_context", {
  baseDir: "/path/to/project",
  targetDirs: ["src", "translations"],
  patterns: ["*.ts", "*.tsx"],
  includeConfigs: true,
  excludePatterns: ["**/*.test.*"],
});

Output:

📦 Context Summary:

Total Files: 2
Total Lines: 150
Total Characters: 4500

Files Included:
- src/index.ts (100 lines, 3000 chars)
- translations/en.ts (50 lines, 1500 chars)

2. analyze_project

Analyzes project structure and suggests context gathering strategy.

Parameters:

  • projectDir (required): Project directory to analyze

Example:

await mcp.use("repomix", "analyze_project", {
  projectDir: "/path/to/project",
});

Output:

{
  "projectType": "react",
  "suggestedConfig": {
    "baseDir": "/path/to/project",
    "targetDirs": ["src", "components", "pages", "hooks"],
    "patterns": ["*.tsx", "*.jsx"],
    "includeConfigs": true,
    "depth": "dependencies",
    "excludePatterns": ["**/*.test.*", "**/*.spec.*", "**/node_modules/**"]
  }
}

Development

  1. Clone the repository:
git clone https://github.com/yourusername/repomix-mcp.git
cd repomix-mcp
  1. Install dependencies:
npm install
  1. Build the project:
npm run build
  1. Run locally:
npm start

License

MIT