← 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-serverAvailable Tools (14)
Once configured, Git MCP Server gives your AI agent access to:
git_statusGet current git statusgit_current_branchGet current branch namegit_staged_changesGet staged changesgit_working_directoryGet current working directory infogit_diffShow diff between branches/commitsgit_logGet commit historygit_show_fileShow file contents at specific commitgit_branchesList all branchesgit_checkoutSwitch to different branch or create new branchgit_addAdd files to staging areagit_commitCreate commits with message and filesgit_pullPull changes from remote repositorygit_fetchFetch changes from remote without merginggit_initInitialize a new git repositoryTry 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.