git MCP Server

本地 Git 仓库操作:commit、diff、log、branch 管理,无需离开 AI 界面

返回 MCP 专区
开发工具官方维护

git

85.0k stars

本地 Git 仓库操作:commit、diff、log、branch 管理,无需离开 AI 界面

GitCommitDiff版本控制官方

安装与配置

安装命令

npx @modelcontextprotocol/server-git

Cursor / Claude Desktop 配置(mcp.json

{
  "mcpServers": {
    "git": {
      "command": "npx",
      "args": [
        "@modelcontextprotocol/server-git"
      ]
    }
  }
}

典型使用场景

  • AI 直接创建 PR、查看 Issues、提交代码
  • 自动化 CI/CD 流程,监控构建状态
  • 智能 Code Review,自动标注问题

查看源码 / 官方文档

访问 GitHub 仓库获取最新文档、配置说明和 issue 反馈。

在 GitHub 上查看