Git log, diff, blame, branch stats for AI agents
Git MCP Server
Published by Abhishekkumar2021Local Git via MCP: status, log, diff, file history, branches, and gated stage/commit. Pure-JS.
- CATEGORY
- More to explore
- DEPLOYMENT
- Local package
- LATEST SOURCE VERSION
- 0.2.0
- SOURCE CHECKED
- Nov 27, 2026
Quick answers
How do I add Git MCP Server to Claude Code, Cursor or Codex?
Claude CodeCommand
Run this in your terminal:
claude mcp add --env 'GIT_ROOTS=<your-git-roots>' --transport stdio git -- npx -y @abhishekmcp/gitReplace the <your-…> placeholder with your own GIT_ROOTS.
CursorConfig
Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:
{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"@abhishekmcp/git"
],
"env": {
"GIT_ROOTS": "<your-git-roots>"
}
}
}
}Replace the <your-…> placeholder with your own GIT_ROOTS.
CodexCommand
Run this in your terminal:
codex mcp add git --env 'GIT_ROOTS=<your-git-roots>' -- npx -y @abhishekmcp/gitReplace the <your-…> placeholder with your own GIT_ROOTS.
VS CodeConfig
Add this to .mcp.json at the root of your workspace:
{
"mcpServers": {
"git": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@abhishekmcp/git"
],
"env": {
"GIT_ROOTS": "<your-git-roots>"
}
}
}
}Replace the <your-…> placeholder with your own GIT_ROOTS.
Claude DesktopConfig
Add this to claude_desktop_config.json, then restart Claude:
{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"@abhishekmcp/git"
],
"env": {
"GIT_ROOTS": "<your-git-roots>"
}
}
}
}Replace the <your-…> placeholder with your own GIT_ROOTS.
ChatGPTNot available
ChatGPT can't add it from its published details: it connects from the cloud and needs a public address, and this server runs on your computer.
ChatGPT setup guideWhich apps can use Git MCP Server?
Claude Code, Cursor, Codex, VS Code and Claude Desktop can add it from its published details. ChatGPT can't: it connects from the cloud and needs a public address, and this server runs on your computer.
Does Git MCP Server need an API key?
To run it on your computer, set GIT_ROOTS first, with values from the publisher.
Is Git MCP Server official?
It's published by Abhishekkumar2021. The Official MCP Registry accepts names under io.github.Abhishekkumar2021 only from the GitHub account or organisation Abhishekkumar2021. We last checked its listing on Nov 27, 2026. A listing shows where a server comes from; it isn't a security review.
Published packages
npm · @abhishekmcp/git@0.2.0