Version Control · Developer Tools

Git MCP V2 logo

Git MCP V2

Sheshiyer/git-mcp-v2

A Model Context Protocol (MCP) server that provides enhanced Git operations through a standardized interface. This server integrates with the MCP ecosystem to provide Git functionality to AI assistants.

Install

Client configuration

{
  "mcpServers": {
    "git-v2": {
      "command": "node",
      "args": [
        "path/to/git-mcp-v2/build/index.js"
      ],
      "env": {
        "GIT_DEFAULT_PATH": "<GIT_DEFAULT_PATH>",
        "GITHUB_PERSONAL_ACCESS_TOKEN": "<GITHUB_PERSONAL_ACCESS_TOKEN>"
      }
    }
  }
}

Environment variables

GIT_DEFAULT_PATHGITHUB_PERSONAL_ACCESS_TOKEN
GitHub stars
6
Category
Version Control, Developer Tools
License
MIT
Updated
Oct 6, 2026

Features

  • Core Git Operations: init, clone, status, add, commit, push, pull

  • Branch Management: list, create, delete, checkout

  • Tag Operations: list, create, delete

  • Remote Management: list, add, remove

  • Stash Operations: list, save, pop

  • Bulk Actions: Execute multiple Git operations in sequence

  • GitHub Integration: Built-in GitHub support via Personal Access Token

  • Path Resolution: Smart path handling with optional default path configuration

  • Error Handling: Comprehensive error handling with custom error types

  • Repository Caching: Efficient repository state management

Tools (16)

  • init

    Initialize a new Git repository

  • clone

    Clone a repository

  • add

    Stage files

  • commit

    Create a commit

  • push

    Push commits to remote

  • pull

    Pull changes from remote

  • branch_create

    Create a new branch

  • branch_delete

    Delete a branch

  • checkout

    Switch branches or restore working tree files

  • tag_create

    Create a tag

  • tag_delete

    Delete a tag

  • remote_add

    Add a remote

  • remote_remove

    Remove a remote

  • stash_save

    Save changes to stash

  • stash_pop

    Apply and remove a stash

  • bulk_action

    Execute multiple Git operations in sequence

Details on this page are taken from the project's README. Open README

Related MCP servers

More servers
core logo

core

opensumi/core

3.3k

A framework helps you quickly build AI Native IDE products.

Version Control
test1 logo

test1

trpc-group/trpc-go

942

tRPC-Go, is the Go language implementation of tRPC, which is a pluggable, high-performance RPC framework.

Version Control
AI-Gateway logo

AI-Gateway

Azure-Samples/AI-Gateway

565

New! The AI Gateway Dev Portal is now live — A starting point for building your own developer portal on top of Azure API Management AI Gateway's. Fork it, open it in VS Code with GitHub Copilot (or any coding agent), and shape it to fit your needs!

Version Control
e2b logo

e2b

e2b-dev/mcp-server

233

Deprecated: This project is no longer actively maintained. It may not receive further updates or bug fixes.

Version Control
MCP Git Ingest logo

MCP Git Ingest

adhikasp/mcp-git-ingest

180

A Model Context Protocol (MCP) server that helps read GitHub repository structure and important files.

Version Control
gitlab mcp logo

gitlab mcp

zereight/gitlab-mcp

70

Documentation → Setup guides, environment variables, and the full tool reference live on the hosted docs site.

Version Control