# git-enhanced [Health: Active]

**Category:** 🔄 Version Control  
**Repository:** https://github.com/davidweb3-ctrl/mcp-git-enhanced  
**GitHub Stars:** 1  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/git-enhanced

## Description
Enhanced Git MCP Server - Code review, commit analysis, and branch management

## Tools
Capabilities this server exposes over MCP:

- **git_diff** — Analyze working tree, staged, branch, commit, or path-specific diffs.
- **git_log** — Review commit history with filters for author, date range, branch, path, and stats.
- **git_branch** — List branches, compare a branch to its base, or suggest cleanup candidates.
- **git_status** — Summarize staged, unstaged, and untracked repository state.
- **git_commit_analyze** — Inspect one commit with metadata, changed files, statistics, and diff output.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/davidweb3-ctrl/mcp-git-enhanced), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
git clone https://github.com/davidweb3-ctrl/mcp-git-enhanced.git
```

2. Run:

```sh
cd mcp-git-enhanced
```

3. Install:

```sh
npm install
```

4. Start the server:

```sh
npm run build
```

5. Install:

```sh
npm install -g @davidweb3-ctrl/mcp-git-enhanced
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/git-enhanced/readme_

