Skip to main content
Glama
rog0x

mcp-git-tools

by rog0x

mcp-git-tools

Git-Repository-Analysewerkzeuge für KI-Agenten, bereitgestellt über MCP (Model Context Protocol). Analysiert lokale Repositories mit nativen Git-Befehlen – keine GitHub-API erforderlich.

Tools

Tool

Beschreibung

git_log

Commit-Verlauf abrufen mit Filtern nach Autor, Datumsbereich und Dateipfad

git_diff

Diff zwischen Commits, Branches oder Tags anzeigen mit Änderungsübersichten

git_blame

Anzeigen, wer jede Zeile einer Datei zuletzt geändert hat, mit Commit-Informationen

git_stats

Repository-Statistiken: Commits, Mitwirkende, Aktivität im Zeitverlauf, am häufigsten geänderte Dateien

git_branch

Branches auflisten mit letzter Commit-Info, Vor-/Zurück-Zählern, zusammengeführt/nicht zusammengeführt-Status

Related MCP server: mcp-git

Voraussetzungen

  • Node.js >= 18

  • Git installiert und im PATH verfügbar

Setup

npm install
npm run build

Konfiguration

Fügen Sie Ihrer MCP-Client-Konfiguration hinzu:

{
  "mcpServers": {
    "git-tools": {
      "command": "node",
      "args": ["D:/products/mcp-servers/mcp-git-tools/dist/index.js"]
    }
  }
}

Tool-Details

git_log

Ruft den letzten Commit-Verlauf mit optionalen Filtern ab.

Parameter:

  • repoPath (erforderlich) — Absoluter Pfad zum Git-Repository

  • count — Anzahl der zurückzugebenden Commits (Standard: 20)

  • author — Nach Autorenname oder E-Mail filtern

  • since / until — Datumsbereichsfilter

  • path — Auf Commits filtern, die eine bestimmte Datei oder ein bestimmtes Verzeichnis betreffen

git_diff

Vergleicht zwei Refs und liefert eine strukturierte Zusammenfassung der Änderungen.

Parameter:

  • repoPath (erforderlich) — Absoluter Pfad zum Git-Repository

  • from — Start-Ref (Standard: HEAD~1)

  • to — End-Ref (Standard: HEAD)

  • path — Diff auf eine bestimmte Datei oder ein bestimmtes Verzeichnis beschränken

  • summaryOnly — Nur Statistiken ohne vollständigen Diff-Text zurückgeben

git_blame

Zeigt die zeilenweise Autorenschaft einer Datei.

Parameter:

  • repoPath (erforderlich) — Absoluter Pfad zum Git-Repository

  • filePath (erforderlich) — Dateipfad relativ zum Repository-Stammverzeichnis

  • startLine / endLine — Blame für einen bestimmten Zeilenbereich

  • ref — Blame bei einem bestimmten Commit

git_stats

Ruft eine allgemeine Übersicht über die Repository-Aktivität ab.

Parameter:

  • repoPath (erforderlich) — Absoluter Pfad zum Git-Repository

  • topAuthors — Anzahl der aufzulistenden Top-Mitwirkenden (Standard: 10)

  • topFiles — Anzahl der am häufigsten geänderten Dateien (Standard: 10)

git_branch

Branches auflisten und analysieren.

Parameter:

  • repoPath (erforderlich) — Absoluter Pfad zum Git-Repository

  • baseBranch — Branch, mit dem verglichen werden soll (Standard: main oder master)

  • includeRemote — Remote-Tracking-Branches einschließen

  • mergedOnly / unmergedOnly — Nach Zusammenführungsstatus filtern

Lizenz

MIT

A
license - permissive license
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • F
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables AI assistants to interact with local Git repositories for operations like status, commits, branching, and diffs, plus GitHub API integration for managing pull requests when authenticated.
  • A
    license
    B
    quality
    D
    maintenance
    Enables Git repository interaction and automation via LLMs, providing tools to read, search, and manipulate Git repositories.
    15
    159
    MIT
  • F
    license
    B
    quality
    D
    maintenance
    Enables AI assistants to inspect local Git repositories and interact with the GitHub API for reading commits, diffs, files, issues, comments, pull requests, and project boards.
    10
    121
  • F
    license
    Not graded
    quality
    B
    maintenance
    Enables analysis of local Git repositories via standard git commands, providing insights like line authorship, commit frequency, code churn, and co-changed files.

View all related MCP servers

Related MCP Connectors

  • Git-backed platform for skills, tools, and context for AI agents

  • Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

  • Repo intel for AI coding agents: overview, PRs, contributors, hot files, CI, deps. Remote MCP.

View all MCP Connectors

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/rog0x/mcp-git-tools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server