ConnectoryIndex of MCP servers — No. 060

Index / Dev Tools / No. 024

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

Run with uvx
{
  "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 status
  • git_diff_unstaged — Shows changes in the working directory that are not yet staged
  • git_diff_staged — Shows changes that are staged for commit
  • git_diff — Shows differences between branches or commits
  • git_commit — Records changes to the repository
  • git_add — Adds file contents to the staging area
  • git_reset — Unstages all staged changes
  • git_log — Shows the commit logs
  • git_create_branch — Creates a new branch from an optional base branch
  • git_checkout — Switches branches
  • git_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

  1. “Show me what changed since the last commit and write a commit message.”
  2. “List the last 10 commits touching the billing module.”
  3. “Create a branch called fix/login-redirect.”

The Weekly Digest · Every Thursday

New MCP servers, weekly.

One short email: the newest servers, what changed in the ones you use, and one setup tip. No tracking pixels, no fluff.