Git Enhanced logo

Git Enhanced

Inspect Git changes, history, branches, status, and individual commits through focused MCP tools.

Install Git Enhanced

Run the project’s own setup commands, in order.

Setup steps from the project

git-enhanced installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/davidweb3-ctrl/mcp-git-enhanced.git
    
  2. 2. Run
    cd mcp-git-enhanced
    
  3. 3. Install
    npm install
    
  4. 4. Start the server
    npm run build
    
  5. 5. Install
    npm install -g @davidweb3-ctrl/mcp-git-enhanced
    

Overview

The git-enhanced MCP server exposes structured Git inspection tools for repository review and maintenance. It runs fixed Git commands against a validated local repository and returns information about diffs, history, branches, status, and commits. Reach for it when an AI coding assistant needs repository context for code review, issue triage, release preparation, or branch cleanup without broad shell access.

Use cases

  • Review a feature branch against its base
  • Find commits affecting a specific file
  • Check staged, unstaged, and untracked changes
  • Prepare release notes from branch history
  • Identify branches that may need cleanup

Key features

  • Working-tree, staged, branch, commit, and path-specific diff analysis
  • Filtered commit history with optional statistics
  • Branch listing, comparison, and cleanup suggestions
  • Repository status summaries
  • Detailed single-commit inspection
  • Read-oriented Git access without destructive operations

Tools5

What Git Enhanced lets your agent do. Expand a tool for its parameters.

Self-reported~104 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 85d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit6mo agoMost recent push to the default branch.
Tools exposed5Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Git Enhanced works

What git-enhanced MCP server does

The git-enhanced MCP server gives AI coding assistants focused, read-oriented access to local Git repositories. It supports common maintenance questions: what changed, which commits affected a file, whether work is staged, how a branch compares with its base, and which branches may be candidates for cleanup.

The server is intended for repository inspection rather than repository mutation. It does not provide tools for deleting branches, resetting files, checking out revisions, rebasing, pushing, or force-pushing. That makes it suitable for gathering context before a maintainer or another tool performs a change.

How it works

Each request includes a repository path, and the server checks that the path identifies a Git repository before handling the operation. It invokes fixed Git subcommands through spawnSync without shell interpolation, avoiding the use of broad, dynamically constructed shell commands.

The git-enhanced MCP server provides five MCP tools:

  • git_diff examines working-tree, staged, branch, commit, or path-scoped differences.
  • git_log searches commit history using filters such as author, date range, branch, path, commit count, and statistics.
  • git_branch lists branches, compares a branch with a base branch, or identifies possible cleanup candidates.
  • git_status summarizes staged, unstaged, and untracked files.
  • git_commit_analyze returns details for one commit, including metadata, changed files, statistics, and its diff.

These operations can be combined for workflows such as reviewing a feature branch against master, finding commits since a release, checking a local reproduction for uncommitted work, or preparing release notes.

Setup and configuration

The git-enhanced MCP server requires Node.js 18 or newer and a Git executable available on PATH. To build it from source, clone the repository, run npm install, and then run npm run build. The resulting server can be launched with Node using the built dist/index.js file.

A Claude Code configuration points the MCP entry at that file and passes its absolute path as the command argument. The repository also identifies @davidweb3-ctrl/mcp-git-enhanced as the package name for a future npm installation flow using npx; the README presents that route as future publication rather than the current source-install path.

Tool calls use repository paths and operation-specific fields. Examples include target, source, filePath, and staged for diffs; author, since, maxCount, and stat for history; an action and branch names for branch operations; and a commit hash for commit analysis.

Limitations and notes

The git-enhanced MCP server is designed for local repositories controlled by the user or maintainer. It provides inspection capabilities only, so it cannot apply fixes or complete Git operations such as merging, publishing, or branch deletion. Repository access also depends on the configured process being able to read the supplied path and invoke Git successfully.

The project is licensed under MIT. Development commands documented by the project include build, test, lint, and formatting checks.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Git Enhanced

git-enhanced is an MCP server that connects AI coding assistants to local Git repositories through read-oriented tools for diffs, commit history, branch operations, repository status, and individual commit analysis. It validates repository paths and runs fixed Git commands without exposing reset, checkout, push, rebase, or deletion tools.

Install it from source by cloning the repository, running `npm install`, and building with `npm run build`. Configure the MCP client to launch `dist/index.js` with Node.

Yes, git-enhanced works with Claude Code through a configuration that launches the built `dist/index.js` file with Node. The configuration uses an absolute path to the generated server entry point.

No, git-enhanced does not expose destructive Git operations. Its tools inspect branches and can suggest cleanup candidates, but they do not delete branches or perform reset, checkout, rebase, push, or force-push actions.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGit Enhanced AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/git-enhanced?style=directory)](https://allmcps.com/mcp/git-enhanced)
HTML Embed
<a href="https://allmcps.com/mcp/git-enhanced"><img src="https://allmcps.com/api/badge/git-enhanced?style=directory" alt="Git Enhanced on AllMCPs" /></a>