Git MCP V2 MCP Server

A Model Context Protocol server

Local serverstdio

What is the Git MCP V2 MCP Server?

A Model Context Protocol server

The short version

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.

  • 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

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
initInitialize a new Git repository
cloneClone a repository
statusGet repository status
addStage files
commitCreate a commit
pushPush commits to remote
pullPull changes from remote
branch_listList all branches
branch_createCreate a new branch
branch_deleteDelete a branch
checkoutSwitch branches or restore working tree files
tag_listList tags
tag_createCreate a tag
tag_deleteDelete a tag
remote_listList remotes
remote_addAdd a remote
remote_removeRemove a remote
stash_listList stashes
stash_saveSave changes to stash
stash_popApply and remove a stash
bulk_actionExecute multiple Git operations in sequence

How to install the Git MCP V2 MCP Server

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

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
GIT_DEFAULT_PATHDeclared in the maintainer’s client configuration.Optional
GITHUB_PERSONAL_ACCESS_TOKENDeclared in the maintainer’s client configuration.Optional

Frequently asked questions

A Model Context Protocol server Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.