Skip to main content
Glama
rog0x

mcp-git-tools

by rog0x

mcp-git-tools

AIエージェント向けのGitリポジトリ解析ツールで、MCP(Model Context Protocol)経由で提供されます。ネイティブのgitコマンドを使用してローカルリポジトリを解析します — GitHub APIは不要です。

ツール

ツール

説明

git_log

著者、日付範囲、ファイルパスによるフィルタリングでコミット履歴を取得します

git_diff

コミット、ブランチ、タグ間の差分を変更サマリー付きで表示します

git_blame

ファイルの各行を最後に変更した人をコミット情報とともに表示します

git_stats

リポジトリの統計: コミット数、貢献者、時間経過に伴うアクティビティ、最も変更されたファイル

git_branch

ブランチを最終コミット情報、先行/遅延数、マージ済み/未マージの状態とともに一覧表示します

Related MCP server: mcp-git

前提条件

  • Node.js >= 18

  • Git がインストールされ、PATHに含まれていること

セットアップ

npm install
npm run build

設定

MCPクライアント設定に追加してください:

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

ツール詳細

git_log

オプションのフィルターを使用して最近のコミット履歴を取得します。

パラメータ:

  • repoPath (必須) — Gitリポジトリへの絶対パス

  • count — 返すコミット数(デフォルト: 20)

  • author — 著者名またはメールアドレスでフィルタリング

  • since / until — 日付範囲のフィルター

  • path — 特定のファイルまたはディレクトリに影響するコミットにフィルタリング

git_diff

2つのリファレンスを比較し、変更の構造化されたサマリーを取得します。

パラメータ:

  • repoPath (必須) — Gitリポジトリへの絶対パス

  • from — 開始リファレンス(デフォルト: HEAD~1)

  • to — 終了リファレンス(デフォルト: HEAD)

  • path — 差分を特定のファイルまたはディレクトリに限定

  • summaryOnly — 完全な差分テキストなしで統計のみを返す

git_blame

ファイルの行ごとの作者を表示します。

パラメータ:

  • repoPath (必須) — Gitリポジトリへの絶対パス

  • filePath (必須) — リポジトリルートからの相対ファイルパス

  • startLine / endLine — 特定の行範囲をblame

  • ref — 特定のコミットでblame

git_stats

リポジトリのアクティビティの概要を取得します。

パラメータ:

  • repoPath (必須) — Gitリポジトリへの絶対パス

  • topAuthors — 上位貢献者の数(デフォルト: 10)

  • topFiles — 最も変更されたファイルの数(デフォルト: 10)

git_branch

ブランチを一覧表示して分析します。

パラメータ:

  • repoPath (必須) — Gitリポジトリへの絶対パス

  • baseBranch — 比較対象のブランチ(デフォルト: main または master)

  • includeRemote — リモート追跡ブランチを含める

  • mergedOnly / unmergedOnly — マージ状態でフィルタリング

ライセンス

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