git-graph-mcp
git-graph-mcp
Una herramienta de terminal para el gráfico de commits de Git con prioridad local, que además ofrece un servicio estándar MCP stdio. Permite seleccionar commits o rangos en la terminal y que clientes MCP como Claude Code, Codex, Cursor, etc., lean el mismo contexto de Git sujeto a presupuesto.

Qué puede hacer
Ver el gráfico de commits, las ramas, los detalles de los commits y el estado del área de trabajo en la terminal;
Guardar selecciones de commit, range y ref, y reutilizarlas entre CLI/TUI/MCP;
Leer graph, status, context, search, diff, history y resources a través de MCP;
Generar acciones de rama seguras y vistas previas de reset, sin ejecutar automáticamente reset/checkout/push;
Usar
doctorpara comprobar Node.js, Git, el repositorio, la configuración de MCP y el handshake de stdio.
Related MCP server: org-as-code MCP Server
Inicio rápido
Requisitos: Git en PATH, soporte oficial para Node.js 22+.
npm ci
node .\bin\git-graph-mcp.js graph --plain --limit 8
node .\bin\git-graph-mcp.js doctorTUI interactiva:
node .\bin\git-graph-mcp.js graphOperaciones comunes:
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 --jsonCuando el repositorio de destino no sea el directorio actual, añade --repo <path> al comando.
Configuración de MCP
El .mcp.json en la raíz del repositorio usa stdio local:
{
"mcpServers": {
"git-graph": {
"type": "stdio",
"command": "node",
"args": ["./bin/git-graph-mcp.js", "mcp"]
}
}
}El servidor proporciona 12 herramientas acotadas y dos resources de solo lectura:
git-graph://default/selection, git-graph://default/status. El stdout de MCP
solo conserva mensajes de protocolo; la información de diagnóstico se escribe en stderr y no refleja rutas del repositorio, valores de configuración ni contenido de solicitudes.
Límites de seguridad
El flujo de trabajo predeterminado es de solo lectura. La creación de ramas exige una invocación explícita y no mueve ramas existentes; reset solo genera
vistas previas, y git_revalidate_plan verifica la huella del estado del repositorio antes de la acción. El proyecto no inicia listeners de red,
ni sube contenido del repositorio.
Desarrollo y publicación
npm run check
npm run test:package-installMás información:
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