Sourcegraph
Code search and understanding across codebases. Search, read, and trace references across repositories;...
SkillMaxx / Development / MCP git (reference)

Read, search and manipulate Git repositories
claude mcp add git -- uvx mcp-server-gitTested ✓ on 2026-10-16: installed and loaded in a throwaway sandbox with no credentials.
Added stdio MCP server mcpgit with command: uvx mcp-server-git to local config File modified: /home/sbx/.claude.json [project: /home/sbx] $ verify: mcpgit: uvx mcp-server-git - ✔ Connected
codex mcp add git -- uvx mcp-server-gitChecked against official docs on 2026-10-16. Hands-on test not available for this agent yet.
No official Grok Build instructions yet. We haven't found docs saying this works in Grok Build.
Know it works? Tell us →~/.cursor/mcp.json: {"mcpServers":{"git":{"command":"uvx","args":["mcp-server-git"]}}}Tested ✓ on 2026-10-16: installed and loaded in a throwaway sandbox with no credentials.
✓ Enabled and approved MCP server: mcpgit $ verify: mcpgit: ready Tools for mcpgit (12):
No official Pi instructions yet. We haven't found docs saying this works in Pi.
Know it works? Tell us →A Model Context Protocol server for Git repository interaction and automation. This server provides tools to read, search, and manipulate Git repositories via Large Language Models.
Source: https://github.com/modelcontextprotocol/servers/tree/main/src/git
Requires MCP Python SDK 1.x (mcp>=1.29.0,<2). SDK 2.0 renamed APIs this server uses. The port to v2 is in progress.
Please note that mcp-server-git is currently in early development. The functionality and available tools are subject to change and expansion as we continue to develop and improve the server.
git_status
repo_path (string): Path to Git repositorygit_diff_unstaged
repo_path (string): Path to Git repositorycontext_lines (number, optional): Number of context lines to show (default: 3)git_diff_staged
repo_path (string): Path to Git repositorycontext_lines (number, optional): Number of context lines to show (default: 3)git_diff
repo_path (string): Path to Git repositorytarget (string): Target branch or commit to compare withcontext_lines (number, optional): Number of context lines to show (default: 3)git_commit
repo_path (string): Path to Git repositorymessage (string): Commit messagegit commit without --allow-empty), except while a merge is in progress (MERGE_HEAD present), where git also allows an empty commit. While a merge is in progress the commit concludes it: its parents are HEAD and every MERGE_HEAD commit, and the merge state is clearedgit_add
repo_path (string): Path to Git repositoryfiles (string[]): Non-empty array of file paths to stage; ["."] stages everythingPreview from the source repo. Images are removed.
Code search and understanding across codebases. Search, read, and trace references across repositories;...
Reference/test server exercising prompts, resources and tools
AI-assisted development of SAP Cloud Application Programming Model (CAP) projects. Search CDS models and CAP...
AI-assisted development of SAP Cloud Application Programming Model (CAP) projects. Search CDS models and CAP...