git-graph-mcp
Provides a local-first Git commit graph and repository inspection tool, allowing users to view branches, commit history, status, diffs, and search results, as well as save commit/range selections and generate safe branch and reset previews.
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-graph-mcpshow me the recent commit graph"
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-graph-mcp
A local-first Git commit graph terminal tool that also provides a standard MCP stdio service. It lets you select commits or ranges in the terminal, then have MCP clients such as Claude Code, Codex, and Cursor read the same budget-constrained Git context.

What it can do
View the commit graph, branches, commit details, and workspace status in the terminal;
Save commit, range, and ref selections, and reuse them across CLI/TUI/MCP;
Read graph, status, context, search, diff, history, and resources via MCP;
Generate safe branch actions and reset previews without automatically executing reset/checkout/push;
Use
doctorto check Node.js, Git, the repository, MCP configuration, and the stdio handshake.
Related MCP server: org-as-code MCP Server
Quick Start
Requirements: Git on PATH; Node.js 22+ officially supported.
npm ci
node .\bin\git-graph-mcp.js graph --plain --limit 8
node .\bin\git-graph-mcp.js doctorInteractive TUI:
node .\bin\git-graph-mcp.js graphCommon operations:
node .\bin\git-graph-mcp.js status
node .\bin\git-graph-mcp.js search --limit 20
node .\bin\git-graph-mcp.js select commit <commit-oid>
node .\bin\git-graph-mcp.js selected
node .\bin\git-graph-mcp.js doctor --jsonWhen the target repository is not the current directory, append --repo <path> to the command.
MCP Configuration
The .mcp.json at the repository root uses local stdio:
{
"mcpServers": {
"git-graph": {
"type": "stdio",
"command": "node",
"args": ["./bin/git-graph-mcp.js", "mcp"]
}
}
}The server provides 12 bounded tools and two read-only resources:
git-graph://default/selection, git-graph://default/status. MCP stdout
carries only protocol messages; diagnostics are written to stderr and never echo repository paths, configuration values, or request contents.
Security Boundary
The default workflow is read-only. Branch creation requires an explicit invocation and never moves existing branches; reset only generates
previews, and git_revalidate_plan validates the repository state fingerprint before acting. The project does not start network listeners,
nor does it upload repository contents.
Development and Releases
npm run check
npm run test:package-installMore:
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceProvides batch file operations, search, and essential git workflows via stdio MCP.731Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with a Git-native organizational governance system, supporting proposal-validation workflows, decision-making, and audit trail management through 21 MCP tools over stdio transport.1MIT
- FlicenseNot gradedqualityBmaintenanceProfile-driven MCP server for safely inspecting and changing local Git repositories via a Streamable HTTP endpoint with deny-by-default security.1
- FlicenseNot gradedqualityCmaintenanceA local-only MCP server that exposes git repository history, diffs, and status as tools for LLM clients, working entirely against a local git repo on disk.
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
Create, browse, remix, collaborate on, and run durable AI workflow nodes from MCP hosts.
TradeOS MCP: ticker search, My Agent, chart TA, macro news. npm stdio or HTTP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/ShinonomeAya/git-graph-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server