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 🙏

© 2026 – Pkg Stats / Ryan Hefner

cap-mcp

v1.1.0

Published

MCP server for querying Organization data like GitHub repositories, Jira issues, and more

Readme

cap-mcp

MCP (Model Context Protocol) server for querying indexed GitHub repositories and git histories.

Overview

This MCP server provides access to an AI-powered knowledge base of indexed GitHub repositories and git histories. Ask questions about code, commits, pull requests, issues, and repository structures to get intelligent context-aware answers.

Installation

From npm (once published)

npm install -g cap-mcp

From source

Clone the repository and build:

git clone https://github.com/yourusername/cap-mcp.git
cd cap-mcp
npm install
npm run build

Usage

The MCP server provides a get_ai_context tool that queries indexed GitHub repositories and git histories.

Running the MCP Server

npm run dev

Configure in Cursor

Add this to your Cursor MCP config file at ~/.cursor/mcp.json:

Recommended (auto-downloads latest from npm):

{
  "mcpServers": {
    "cap-mcp": {
      "command": "npx -y cap-mcp@latest",
      "env": {}
    }
  }
}
  • @latest (Optional) ensures you always get the newest version
  • -y automatically installs without prompting for confirmation

Configure in Claude Desktop

Add this to your Claude Desktop MCP config file at ~/.claude/mcp.json (or %APPDATA%\Claude\mcp.json on Windows):

{
  "mcpServers": {
    "cap-mcp": {
      "command": "npx -y cap-mcp@latest",
      "env": {}
    }
  }
}

Note: The configuration is identical for both Cursor and Claude Desktop since they both use the same Model Context Protocol standard.

Available Tools

  • get_ai_context: Get context from indexed GitHub repositories and git histories
    • query: Your question about the repositories or git history (required)
      • Examples: "How does authentication work?", "What changed in the last commit?", "Show me all API endpoints"
    • additional_context: Additional context like repository name, file paths, branch names, commit SHAs, or date ranges (optional)

Use Cases

  • 🔍 Code Search: "Where is the user authentication implemented?"
  • 📝 Commit History: "What changes were made to the API in the last week?"
  • 🔧 Code Understanding: "How does the payment processing work?"
  • 🌳 Repository Structure: "What are the main components of this project?"
  • 🐛 Issue Tracking: "What issues are related to database performance?"
  • 🔀 Pull Request Context: "Summarize recent pull requests for the auth module"

Backend Requirements

The MCP server connects to an AI endpoint at http://127.0.0.1:5000/api/agent that:

  • Has indexed GitHub repositories and git histories
  • Accepts POST requests
  • Receives JSON body with: { "message": "...", "stream": false }
  • Returns JSON response with context from the indexed repositories

Example Queries

Query: "How does the authentication system work?"
Additional Context: "repository: my-app, focus on backend"

Query: "What files were changed in commit abc123?"
Additional Context: "repository: my-app"

Query: "Show me all REST API endpoints"
Additional Context: "repository: my-api, path: src/routes"

Query: "What are the recent changes to the database schema?"
Additional Context: "repository: my-app, last 30 days"