Git MCP Server
Provides REST endpoints for Git repository operations including status checking, diff viewing, and commit management with configurable directory access controls
Click on "Deploy 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
pnpm install git-mcp
# or
npm install git-mcpUsage
import { createApp } from "git-mcp";
const app = createApp();
app.listen({ host: "127.0.0.1", port: 8787 });Set MCP_GIT_ROOTS to a colon-separated list of allowed directories (defaults to process.cwd()).
Development
pnpm install
pnpm run lint
pnpm run test
pnpm run buildLicense
MIT — see LICENSE.
Related MCP Connectors
Read and write KukGit repositories, files, issues and pull requests from an AI assistant.
Access the GitHub API, enabling file operations, repository management, search functionality, and…
Generate SBOMs, scan vulnerabilities, and analyze dependencies from local projects or Git repos.
Deep security scans of repos you own from your editor: dependency CVEs, SAST, git-history secrets.