git-graph-mcp
git-graph-mcp
Ein lokal-first Terminaltool für Git-Commit-Graphen, das zugleich einen standardmäßigen MCP-stdio-Dienst bereitstellt. Es ermöglicht die Auswahl von Commits oder Bereichen im Terminal, sodass MCP-Clients wie Claude Code, Codex oder Cursor denselben budgetbegrenzten Git-Kontext lesen können.

Was es kann
Commit-Graph, Branches, Commit-Details und Arbeitsbereichsstatus im Terminal anzeigen;
Commit-, Range- und Ref-Auswahlen speichern und zwischen CLI/TUI/MCP wiederverwenden;
graph, status, context, search, diff, history und resources über MCP lesen;
Sichere Vorschauen für Branch-Aktionen und reset erzeugen, ohne reset/checkout/push automatisch auszuführen;
Mit
doctorNode.js, Git, Repository, MCP-Konfiguration und stdio-Handshake prüfen.
Related MCP server: org-as-code MCP Server
Schnellstart
Voraussetzungen: Git muss sich im PATH befinden; offiziell unterstützt wird Node.js 22+.
npm ci
node .\bin\git-graph-mcp.js graph --plain --limit 8
node .\bin\git-graph-mcp.js doctorInteraktive TUI:
node .\bin\git-graph-mcp.js graphHäufige Vorgänge:
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 --jsonWenn sich das Ziel-Repositorium nicht im aktullen Verzeichnis befindet, hängen Sie --repo <path> an den Befehl an.
MCP-Konfiguration
Die .mcp.json im Repositorium-Stammverzeichnis verwendet lokales stdio:
{
"mcpServers": {
"git-graph": {
"type": "stdio",
"command": "node",
"args": ["./bin/git-graph-mcp.js", "mcp"]
}
}
}Der Server bietet 12 begrenzte Tools und zwei schreibgeschützte resources:
git-graph://defaul/selection und git-graph://defaul/status. MCP stdout
enthält ausschließlich Protokollnachrichten; Diagnoseinformationen werden nach stderr geschrieben und geben keine Repositorium-Pfade, Konfigurationswerte oder Anforderungsinhalte wieder.
Sicherheitsgrenzen
Der Standard-Workflow ist schreibgeschützt. Das Erstellen von Branches erfordert einen expliziten Aufruf und verschiebt keine vorhandenen Branches; reset erzeugt nur
Vorschauen, und git_revalidate_plan validiert vor der Aktion den Zustands-Fingerabdruck des Repositoriums. Das Projekt startet keine Netzwerk-Listener,
und lädt keine Repositorium-Inhalte hoch.
Entwicklung und Veröffentlichung
npm run check
npm run test:package-installWeitere Information:
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