Git MCP Server
Status, diffs, commits, branches and history of a local Git repository, as tools.
Use it with Claude or any AI tool. Copy the prompt and paste it in. The link inside gives the AI the whole page as Markdown.
Install
claude mcp add-json git '{"command":"uvx","args":["mcp-server-git","--repository","/path/to/git/repo"]}'
Adds the server to Claude Code. For other apps, copy the config below.
About
The reference Git server. It exposes tools such as git_status, git_diff, git_commit, git_add, git_log, git_create_branch and git_checkout for one repository on your machine.
Set –repository to your project path. Handy when your AI tool has no built-in Git access, or when you want Git actions to go through explicit tool calls you can review.
Files and links
-
Check it before you connect it. This server runs with your permissions:
uvx mcp-server-git --repository /path/to/git/repoclaude mcp add-json git '{"command":"uvx","args":["mcp-server-git","--repository","/path/to/git/repo"]}'