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

@edjl/git-mcp

v1.0.8

Published

Git tools for MCP (Model Context Protocol)

Downloads

25

Readme

Git MCP

A Model Context Protocol (MCP) server providing Git version control tools for AI assistants.

Features

19 Git tools with the git_ prefix:

Repository Operations

  • git_status - Show working tree status
  • git_diff - Show unstaged changes (ignores lock files by default)
  • git_diff_staged - Show staged changes (ignores lock files by default)
  • git_add - Stage files for commit
  • git_reset - Reset HEAD to specified state
  • git_stash - Stash/retrieve changes
  • git_clone - Clone repositories
  • git_pull - Pull changes from remote
  • git_push - Push changes to remote
  • git_fetch - Fetch changes without merging
  • git_remote - Manage remote repositories
  • git_tag - Create and manage tags

Commit Operations

  • git_log - List commits with hashes and filtering options
  • git_show - Show commit changes and details
  • git_commit - Create commits

Branch Operations

  • git_branch - List, create, delete branches
  • git_checkout - Switch branches or restore files
  • git_merge - Merge branches
  • git_rebase - Rebase branches

Installation

  1. Clone the repository
  2. Install dependencies:
    npm install
  3. Build the project:
    npm run build

Usage with Cursor

Add to your ~/.cursor/mcp.json:

{
  "mcpServers": {
    "git-mcp": {
      "command": "node",
      "args": [
        "/path/to/git-mcp/build/index.js"
      ]
    }
  }
}

Development

  • npm run dev - Watch mode for development
  • npm run build - Build the project
  • npm start - Run the server

Tool Usage Examples

# List commits
git_log(count: 10, oneline: true)

# Show commit changes
git_show(commit: "abc123")

# Check status
git_status(short: true)

# Stage files
git_add(paths: ["src/", "README.md"])

# Commit changes
git_commit(message: "Add new feature")

# Push to remote
git_push(remote: "origin", branch: "main")

Special Features

Lock File Filtering

The git_diff and git_diff_staged tools automatically ignore common lock files by default:

  • package-lock.json
  • yarn.lock
  • pnpm-lock.yaml
  • composer.lock
  • Gemfile.lock
  • And many more...

This can be disabled by setting ignoreLockFiles: false.