Provides REST endpoints for Git repository operations including status checking, diff viewing, and commit management with configurable directory access controls
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., "@Git MCP Servershow me the status of the current repository"
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.
git-mcp
Domain-neutral git utility service packaged for Model Context Protocol (MCP) agents. It exposes REST endpoints for repository status, diffs, and commits while enforcing a configurable root allowlist.
Features
/healthendpoint reporting configured root directories./v1/git/statusreturning branch, upstream, ahead/behind counts, and per-file codes./v1/git/diffstreaming rawgit diffoutput for a ref.Additional helpers for commit operations (extendable by downstream projects).
Installation
Usage
Set MCP_GIT_ROOTS to a colon-separated list of allowed directories (defaults to process.cwd()).
Development
License
MIT — see LICENSE.