Provides REST endpoints for Git repository operations including status checking, diff viewing, and commit management with configurable directory access controls
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.
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Enables git repository operations through REST endpoints, providing access to repository status, diffs, and commits. Enforces security through configurable root directory allowlists for safe git operations.