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 "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
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.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Appeared in Searches
Latest Blog Posts
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/yevheniikravchuk/git-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server