mcp server
Git
Reference server from the MCP project for reading diffs and history and making commits and branches in local Git repos.
Set up
Runs on your computer. Pick your agent and operating system.
Before you start
- uv (`curl -LsSf https://astral.sh/uv/install.sh | sh`)
- Python with uv (uvx) or pip
- A local Git repository path
{
"mcpServers": {
"git": {
"command": "uvx",
"args": [
"mcp-server-git"
]
}
}
}same format Cursor, GitHub Copilot CLI, Junie, JetBrains AI Assistant, Augment (Auggie CLI), Factory Droid, Kiro, Devin CLI +12
Values in angle brackets are placeholders. Restart Claude Desktop after editing its config.Claude Desktop docs
Tools provided
As listed by the project. Your agent asks before calling them, depending on its settings.
git_statusShow working tree statusgit_diff_unstagedShow unstaged changesgit_diff_stagedShow staged changesgit_diffDiff against a refgit_commitCommit staged changesgit_addStage filesgit_resetUnstage filesgit_logShow commit loggit_create_branchCreate a branchgit_checkoutSwitch branchesgit_showShow a commitgit_branchList branches
README
synced Oct 13, 2026Git
Reference server from the MCP project for reading diffs and history and making commits and branches in local Git repos.
Install
uvx mcp-server-git
Tools
git_status— Show working tree statusgit_diff_unstaged— Show unstaged changesgit_diff_staged— Show staged changesgit_diff— Diff against a refgit_commit— Commit staged changesgit_add— Stage filesgit_reset— Unstage filesgit_log— Show commit loggit_create_branch— Create a branchgit_checkout— Switch branchesgit_show— Show a commitgit_branch— List branches
About this listing
Details were gathered from the project's public pages on 2026-10-13 and have not been reviewed by a person yet. Read the project's own documentation before giving it access to anything sensitive.
Sources: