DEV · Dev Tools · Official server
Git
Reference server for reading, searching and manipulating local Git repositories.
- Transport
- Local (stdio)
- Status
- Official · Model Context Protocol
- Auth method
- None (local repository access)
- Scopes / permissions
- —
- Last verified
- Oct 19, 2026
- Tools (live)
- 12
§1What it does
One of the reference servers maintained in the official modelcontextprotocol/servers repo. It gives an LLM tools to inspect status, diffs and logs and to stage, commit, reset and branch in a local Git repository. As of the 2026.10.19 release it is built on the MCP Python SDK 2.x (mcp>=2.3,<3).
§2Setup
{
"mcpServers": {
"git": {
"command": "uvx",
"args": ["mcp-server-git", "--repository", "path/to/git/repo"]
}
}
}Snippets adapted from the official documentation. Check the official page for current options and auth requirements.
§2aTools (live-checked Oct 19, 2026)
Returned by the server's own tools/list via uvx mcp-server-git. No credentials used; no tools were called.
git_status— Shows the working tree statusgit_diff_unstaged— Shows changes in the working directory that are not yet stagedgit_diff_staged— Shows changes that are staged for commitgit_diff— Shows differences between branches or commitsgit_commit— Records changes to the repositorygit_add— Adds file contents to the staging areagit_reset— Unstages all staged changesgit_log— Shows the commit logsgit_create_branch— Creates a new branch from an optional base branchgit_checkout— Switches branchesgit_show— Shows the contents of a commit, or of a file or directory given as <revision>:<path>git_branch— List Git branches
§3Prompts to try
- “Show me what changed since the last commit and write a commit message.”
- “List the last 10 commits touching the billing module.”
- “Create a branch called fix/login-redirect.”