mcp-server-git (also known as Git MCP server) is a Model Context Protocol server for Git repository interaction and automation. It lets large language models read, search, and operate on Git repositories through a set of tools, and is suitable for scenarios where an AI client needs to understand the state of a codebase, inspect diffs, or perform basic Git operations.
Main capabilities The tools listed in the material include:
git_status: View workspace status; input the repository path and return the current working directory status text.git_diff_unstaged: View changes in the working directory that have not yet been staged; return the unstaged diff.git_diff_staged: View changes that have been staged and are pending commit; return the staged diff.git_diff: Compare branches or commits; input the repository path and the target branch or commit, and return the diff between the current state and the target.git_commit: Record repository changes; input a commit message and return confirmation of the new commit hash.git_add: Add file contents to the staging area; input an array of file paths and return confirmation of the staged files.git_reset: Unstage all staged changes; return confirmation of the reset operation.git_log: View the commit log; the maximum number of commits can be set, with 10 shown by default, and return an array of commit entries containing hash, author, date, and commit message.git_create_branch: Create a new branch; a starting point can be specified, and return confirmation of branch creation. The material also lists operations such as switching branches, viewing the contents of a specified commit, and initializing a Git repository, but the complete tool names corresponding to these operations are not given in the excerpt. The server's overall purpose is to let LLMs complete reading, searching, and operating on Git repositories through tools.
Usage
The material recommends using uv: no specific installation is needed; simply run uvx directly with mcp-server-git. It can also be installed via pip and run as a script after installation.
In Claude Desktop, the server configuration can be added to claude_desktop_config.json; the material reminds you to replace /Users/username with the path you want this tool to access.
In VS Code, the material mentions that a one-click install button can be used; for manual installation, add the JSON configuration block to VS Code's User Settings (JSON), which can be opened by entering Ctrl + Shift + P at Preferences: Open Settings (JSON) ; it can also be added to the workspace's .vscode/mcp.json to share the configuration, noting that this file does not require the mcp key. The material also mentions a Docker installation method.
In Zed, the configuration can be added to settings.json. For debugging, MCP inspector can be used; there is a corresponding debugging method when installing with uvx, and there are also corresponding methods if it is installed in a specific directory or the package is being developed. To view logs, run tail -n 20 -f ~/Library/Logs/Claude/mcp*.logto help troubleshoot issues. During local development, MCP inspector can be used to test changes, or testing can be done through the Claude desktop application, and in claude_desktop_config.json Add configuration in.
Use cases Suitable for letting AI coding assistants or MCP-capable clients inspect repository status, view diffs, read commit logs, stage files, create commits, create branches, and perform basic Git operations such as repository initialization; also suitable for local development and debugging of MCP tool integrations.
Limitations and status
This project is located in an archived repository, and the materials clearly state that it is no longer maintained; at the same time, mcp-server-git is in an early development stage, and features and available tools may continue to change and expand. The materials do not provide specific version requirements, a list of supported platforms, pricing model, prices, performance metrics, a complete configuration JSON example, or all installation commands; relevant details are not yet available. Because it has been archived and is no longer maintained, you need to assess maintenance and compatibility risks yourself before using it in a production environment. The project uses the MIT License and permits use, modification, and distribution under the MIT terms.