Git MCP Server
Provides REST endpoints for Git repository operations including status checking, diff viewing, and commit management with configurable directory access controls
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Git hosting for agents: edit repos in caissons, open pull requests, read issues and CI.
1Read and write KukGit repositories, files, issues and pull requests from an AI assistant.
Read projects, issues, merge requests and pipelines; create issues and comments in GitLab.
1Access the GitHub API, enabling file operations, repository management, search functionality, and…