← Back to Git MCP Server

Install Git MCP Server

Pick your client, copy the command, done.

1

Add it to Claude Code

claude mcp add git-mcp-server -- git-mcp-server

Available Tools (14)

Once configured, Git MCP Server gives your AI agent access to:

git_statusGet current git status
git_current_branchGet current branch name
git_staged_changesGet staged changes
git_working_directoryGet current working directory info
git_diffShow diff between branches/commits
git_logGet commit history
git_show_fileShow file contents at specific commit
git_branchesList all branches
git_checkoutSwitch to different branch or create new branch
git_addAdd files to staging area
git_commitCreate commits with message and files
git_pullPull changes from remote repository
git_fetchFetch changes from remote without merging
git_initInitialize a new git repository

Try It Out

After setup, try these prompts with your AI agent:

What is the current git status of this repository?
Show me the diff between my current branch and the main branch.
Create a new branch called feature/new-feature.
Commit my staged changes with the message 'Fix bug in parser'.
Push the current branch to the remote origin.
Prerequisites & system requirements
  • An MCP-compatible client (Claude Code, Cursor, Windsurf, Claude Desktop, or Codex)
  • Node.js 18+ with npm/npx installed

Keep this setup from going cold

Save the docs, env vars, and workflow around Git MCP Server in Conare so Claude Code, Codex, and Cursor remember it next time.

Remember this setup