mcp-git
Provides tools for inspecting and working with local git repositories, including status, diffs, commit history, branches, staging, and committing changes.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-gitWhat's the current git status?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Created: 2026 August 13
mcp-git
Table of Contents
1.0 Overview 2.0 Installation 2.1 Development install 2.2 De-installation 3.0 Configuration 4.0 Tools Version History
Related MCP server: local-code-mcp
1.0 Overview
A local git MCP server. It exposes 12 git operations to an MCP client (e.g. Claude Desktop or Claude Code) over stdio, so the client can inspect and work with a git repository on your machine — status, diffs, log, branches, staging, and commits.
2.0 Installation
Requires Python 3.9+. Installs the latest release into its own virtual environment at ~/.local/share/mcp-git/venv — no clone required:
curl -fsSL https://raw.githubusercontent.com/William12556/mcp-git/main/bin/install.sh | bashThe script prints the full path to the installed mcp-git command when it finishes — use that path in your MCP client configuration (§3.0).
To confirm it installed correctly:
~/.local/share/mcp-git/venv/bin/python -c "import mcp_git; print(mcp_git.__version__)"2.1 Development install
To work on mcp-git itself (run tests, use bin/build.sh / bin/release.sh), clone the repository instead:
git clone https://github.com/William12556/mcp-git.git
cd mcp-git
python3 -m venv venv
source venv/bin/activate
pip install -e .[dev]2.2 De-installation
Remove the install directory:
rm -rf ~/.local/share/mcp-gitIf the MCP_GIT_HOME environment variable was set to a non-default location during installation, remove that directory instead. Then remove the mcp-git entry from your MCP client configuration (§3.0).
For a development install, remove the cloned repository directory in place of the above.
3.0 Configuration
Add mcp-git to your MCP client's configuration, pointing at the installed console script. For Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"git": {
"command": "/Users/<you>/.local/share/mcp-git/venv/bin/mcp-git"
}
}
}Use the full path printed by the install script (or, for a development install, the venv you created). No startup arguments are needed — every tool call takes its own repo_path, so one server instance can work with any repository on your machine.
4.0 Tools
Tool | What it does |
| Show staged, unstaged, and untracked files |
| Diff of unstaged working-tree changes |
| Diff of staged (index) changes |
| Diff against a branch, tag, or commit |
| Commit history |
| Details and diff of a specific commit |
| List local, remote, or all branches |
| Create a new branch |
| Commit staged changes |
| Stage files |
| Unstage all changes |
| Initialise a new repository |
Every tool operates only on the repository at the repo_path you give it — nothing outside that path is touched, and mcp-git makes no network calls.
Version History
Version | Date | Description |
0.1 | 2026-08-13 | Initial skeleton (P01 project initialisation) |
0.2 | 2026-08-13 | Added installation, configuration, and tool reference now that the server is implemented |
0.3 | 2026-08-13 | Replaced git-clone installation with the curl-piped bin/install.sh; clone retained only for §2.1 Development install |
0.4 | 2026-08-13 | Added §2.2 De-installation |
Copyright (c) 2026 William Watson. MIT License.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-quality-maintenanceA lightweight MCP server that enables AI assistants to manage local Git repositories by executing commands like status, add, and commit. It streamlines development workflows by providing repository context and diffs directly to the assistant.
- Flicense-qualityBmaintenanceProfile-driven MCP server for safely inspecting and changing local Git repositories via a Streamable HTTP endpoint with deny-by-default security.1
- Flicense-qualityCmaintenanceA local-only MCP server that exposes git repository history, diffs, and status as tools for LLM clients, working entirely against a local git repo on disk.
- AlicenseAqualityBmaintenanceA local MCP server that provides a safe, explicit set of Git operations for version control tasks like status, diff, branching, staging, committing, fetching, merging, and pushing.1345MIT
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
MCP server for Clipkit — gives AI agents a video toolbox via the Clipkit schema.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/William12556/mcp-git'
If you have feedback or need assistance with the MCP directory API, please join our Discord server