版本控制 · 开发者工具

Git MCP Server logo

Git MCP Server

wty0512/git-mcp-server

一个基于Model Context Protocol的Git服务器,为AI助手和LLM代理提供标准化接口来管理Git仓库、分支、提交和文件操作,无需直接访问文件系统或命令行。

安装

npm install -g git-mcp-server

客户端配置

{
  "mcpServers": {
    "git": {
      "command": "git-mcp-server"
    }
  }
}
作者
@wty0512
分类
版本控制, 开发者工具
许可证
Apache-2.0
更新于
2026年10月6日

工具(30)

  • git_init

    Initialize a new Git repository at the specified path with options for bare repositories.

  • git_clone

    Clone a Git repository from a remote URL to a local path with branch and depth options.

  • git_status

    Get the current status of a Git repository including working directory and staging area changes.

  • git_branch_list

    List all branches in a repository with options to include remote branches.

  • git_branch_create

    Create a new branch with options for specifying the starting point and automatic checkout.

  • git_checkout

    Checkout a branch, tag, or commit with options to create a new branch during checkout.

  • git_branch_delete

    Delete a branch with options for force deletion of unmerged branches.

  • git_merge

    Merge a branch into the current branch with customizable commit messages and merge strategies.

  • git_add

    Stage files for commit with support for individual files or entire directories.

  • git_reset

    Unstage files from the staging area with options for specific files or all staged changes.

  • git_commit

    Commit staged changes with customizable commit messages, author information, and amend options.

  • git_diff_unstaged

    Get a diff of all unstaged changes in the working directory with options for specific files.

  • git_diff_staged

    Get a diff of all staged changes in the index with options for specific files.

  • git_reset_commit

    Reset the repository to a specific reference with options for hard, soft, or mixed mode.

  • git_clean

    Remove untracked files from the working tree with options for directories and force cleaning.

  • git_remote_add

    Add a new remote repository with a name and URL.

  • git_remote_list

    List all configured remote repositories and their URLs.

  • git_fetch

    Fetch updates from a remote repository with options for specific branches.

  • git_pull

    Pull changes from a remote repository with options for rebase strategy.

  • git_push

    Push local changes to a remote repository with options for force push and upstream tracking.

  • git_tag_create

    Create a new tag with options for annotated tags with messages.

  • git_tag_list

    List all tags in the repository with their references.

  • git_stash_create

    Stash changes in the working directory with options for untracked files and descriptions.

  • git_stash_list

    List all stashes in the repository with their descriptions.

  • git_stash_apply

    Apply a stashed change without removing it from the stash list.

  • git_stash_pop

    Apply a stashed change and remove it from the stash list.

  • git_cherry_pick

    Apply changes from specific commits to the current branch.

  • git_rebase

    Rebase the current branch onto another branch with interactive mode options.

  • git_log

    Get commit history with customizable output format and depth.

  • git_show

    Show detailed information about a specific commit including diff changes.

本页信息摘自该项目的 README。 查看 README

相关 MCP 服务器

更多服务器
core logo

core

opensumi/core

3.3k

OpenSumi 是一个帮助快速构建 AI 原生 IDE 产品的框架,支持云端和桌面端开发环境,提供丰富的示例项目和模板。

版本控制
test1 logo

test1

trpc-group/trpc-go

942

每个wiki文件应在.resource目录中存放与其路径对应的额外资源(如图片),并使用git lfs进行版本管理。

版本控制
AI-Gateway logo

AI-Gateway

Azure-Samples/AI-Gateway

565

解决Pylance未解析导入警告的文档

版本控制
e2b logo

e2b

e2b-dev/mcp-server

233

项目用于管理代码变更记录

版本控制
MCP Git Ingest logo

MCP Git Ingest

adhikasp/mcp-git-ingest

180

一个用于读取GitHub仓库结构和重要文件的MCP服务器

版本控制
gitlab mcp logo

gitlab mcp

zereight/gitlab-mcp

70

改进版的GitLab MCP服务器,提供丰富的GitLab操作接口和增强功能

版本控制