官方MCP 伺服器

Git

Read commit history, branches, and diffs of local git repositories.

安裝

uvx
uvx mcp-server-git --repository /path/to/repo

把這段加入 Claude Code MCP 設定,或直接透過 CLI 執行。

介紹

Read-only git operations on local repos. Complements filesystem MCP for code-archaeology tasks: blame, log, diff between refs.

常見使用情境

  • Investigate a regression
  • Summarize changes between releases
  • Code archaeology

標籤

officialgitvcs