In short.
mcp-server-git is a Git connection for developers using AI assistants, but its default access includes repository changes across every repository the process can reach. It provides status, diffs, history, staging, commits, branches and merges through 14 MCP tools, plus prompts for commit messages and change summaries. The implementation includes repository boundary checks, credential masking for remote URLs and controls against programs named by repository configuration. Those controls also change familiar Git behavior: hooks do not run, repository-defined filters are disabled and merge signature verification is suppressed. The supplied source identifies version 2026.11.11; installation success, runtime reliability, performance and AI output quality are not assessed.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete supplied src/git snapshot at commit e1dc4b18dbb948921da37f3d4224a628730b43b0: README, scoped LICENSE, configuration files, Dockerfile, package metadata, lockfile, Python entrypoints, server implementation, type marker, tool snapshot and test sources. The repository-root LICENSE is included as a related notice outside that folder. Linked pages, other repository folders, dependency implementations and published package or container contents are excluded. No installation, server operation, test suite or AI-assisted journey was executed; runtime behavior, performance, achieved coverage and comprehensive security remain unassessed.
The overview
Identity
mcp-server-git is a Python Model Context Protocol server in the modelcontextprotocol/servers repository. MCP lets an AI application discover and call its Git operations. The package exposes the mcp-server-git command and identifies the running server as mcp-git.
Its original location is [https://github.com/modelcontextprotocol/servers/tree/main/src/git]; this report describes the snapshot at commit e1dc4b18dbb948921da37f3d4224a628730b43b0. Package metadata names Anthropic, PBC. as author.
Assessment
The server fits work where an assistant needs a defined interface for inspecting changes and performing routine Git operations. Separate tools for staged and unstaged changes help distinguish edits from the files selected for the next commit.
Its main operational decision is access control. All six tools that change repositories are registered alongside the reading tools. --repository limits repository locations; it does not create a read-only mode or require confirmation before changes. Read-only access and approval behavior therefore need controls in the client or operating environment.
Users
Developers can use it to give an MCP-capable assistant repository context for explanations, reviews and commit preparation. Beginners still need to understand staging, branches and commits because tool calls can alter these directly.
Experienced developers can inspect or extend its typed Python handlers and protocol tests. Teams that rely on commit hooks, custom filters, signed commits or verified merge signatures need to account for the server's configuration overrides before adopting it.
Capabilities
Eight reading tools expose working-tree status, unstaged and staged diffs, comparisons against revisions or revision ranges, commit history, revision contents, branches and remote URLs. git_diff accepts both a..b and a...b comparisons. git_log supports a commit limit and date filters. git_show accepts objects such as HEAD:path/to/file.
Six writing tools stage files, commit staged changes, unstage everything, create branches, check out revisions and merge into the current branch. Creating a branch does not switch to it. Checking out a commit or tag can detach HEAD, meaning subsequent commits are not attached to a checked-out branch.
git_merge defaults to fast-forward-only operation. It refuses tracked uncommitted changes, detached HEAD and an existing merge, and attempts to abort a merge that conflicts. The two prompts embed repository changes for commit-message drafting or summarization. No clone, fetch, pull, push, rebase or dedicated text-search tool is registered.
Using it
Requirements
The package declares Python 3.10 or later, while .python-version selects 3.10 for source development. Git 2.31 or later is required for the configuration overrides; the implementation rejects Git that does not apply them. An MCP client must be able to launch the server and communicate through standard input and output.
Declared dependencies are click>=8.1.7, gitpython>=3.1.60, mcp>=2.3,<3 and pydantic>=2.0.0. The supplied lockfile records MCP 2.3.0 and GitPython 3.2.1. The client supplies the AI model; the server declares no model weights or GPU requirement. Memory, CPU and storage requirements are unspecified.
The process needs access to an existing Git repository and write permission for operations that change it. Docker is an optional deployment route and requires appropriate repository mounts and file ownership.
Mechanism
The MCP Python SDK derives tool input schemas from typed function signatures. Handlers open repositories through GitPython, apply configuration overrides and repository checks, then return text results. A process-wide lock serializes tools and prompts, including calls targeting different repositories.
The implementation supports the 2025-11-25 initialization handshake and the 2026-07-28 sessionless protocol over stdio. The client's first request chooses the protocol behavior. Neither route requests client Roots; repository access comes from --repository and each call's repo_path.
Expected tool failures become results with isError=true and an explanatory message. Unknown tools produce JSON-RPC error -32602. Anticipated prompt failures also use -32602. These are implementation behaviors; interoperability with particular installed clients has not been assessed.
Setup
The README's client configurations correspond to uvx mcp-server-git --repository path/to/git/repo, or, after pip install mcp-server-git, python -m mcp_server_git --repository path/to/git/repo. Configure the MCP client to launch that command. Several client examples omit --repository, so add it explicitly when repository confinement is needed.
--repository may point inside a working tree and is resolved to its enclosing root at startup. Tool calls should use the repository root: the implementation opens repo_path without searching parent directories, so an ordinary subdirectory is rejected. Set all four identity variables, GIT_AUTHOR_NAME, GIT_AUTHOR_EMAIL, GIT_COMMITTER_NAME and GIT_COMMITTER_EMAIL, or provide Git identity configuration. Otherwise commits can fall back to the operating-system user and hostname.
The Docker recipe installs Git and Git LFS and runs as UID/GID 999:999. Mount only the needed repository, pass --repository and supply commit identity. The README describes matching the host UID/GID on Linux for write access. Package-index availability and the contents of a published mcp/git image are unknown.
Example
An illustrative review starts with git_status using repo_path=/work/project, followed by git_diff_unstaged to inspect edits. After choosing a specific file, git_add with files=["src/example.py"] stages it. git_diff_staged then shows what a commit would record, and git_commit_message supplies those staged changes to the model for a draft message.
After reviewing the staged content and message, git_commit records the staged changes. Normally it rejects a commit with nothing staged, although a pending merge is an exception. For branch review, git_summarize_changes with target=main...feature embeds the changes from the branches' merge base to feature, provided both revisions exist. These are illustrative calls, with no observed execution results.
Assessment & evidence
Limitations
The README calls the server early development, and metadata classifies it as beta. --repository admits the entire enclosing repository and eligible nested repositories. It rejects alternate object stores and Git-directory links that escape its boundary. Client Roots do not restrict access, and no built-in read-only switch or confirmation step is implemented.
Hooks are disabled, diffs suppress external programs and text conversion, repository-defined filter and merge drivers are neutralized, and merge signing and signature verification are disabled. Trusted global or system filter drivers can still run. These controls can change repository behavior and omit checks that a team normally expects.
Status and working-tree diff operations omit changes inside submodules unless called on the submodule itself. Change-summary prompts include untracked filenames through status but do not read their contents. Non-UTF-8 bytes are replaced in textual output, and binary changes are not returned as complete binary patches. No general output-size limit or pagination is implemented.
Repository contents and commit information reach the client. git_remote masks credentials in URL userinfo, but other content has no general secret scan. Model-provider transmission, retention and handling of instructions embedded in repository text are unknown. The server's lock coordinates its own calls; it does not coordinate external Git processes.
Reasoning
Its useful distinction is a discoverable Git interface with explicit arguments, staged-versus-unstaged separation and errors an assistant can act on. This suggests a practical fit for bounded repository assistance without exposing an unrestricted shell through this server.
The tradeoff is responsibility for repository scope, client permissions and checks that the server bypasses. Its source supports a concrete account of these boundaries, but does not establish that generated summaries are accurate or that automated changes improve productivity.
Alternatives
The Git command line is the direct alternative when a developer needs operations absent from this API or wants control over hooks, signing and other Git options. This server adds an MCP interface and deliberate configuration overrides around a defined subset of Git operations.
GitPython, already a dependency, is a lower-level starting point for custom Python automation. Building an equivalent AI integration around it would require implementing the MCP interface and access controls. Other Git MCP servers, editor integrations and hosted services are not assessed by the supplied evidence.
Evidence
The source includes the implementation, CLI entrypoints, package metadata, dependency lockfile, Docker recipe and tool-schema snapshot. Test source contains assertions for both protocol eras, prompts, commit identity, merges, repository confinement, credential masking and suppression of repository-defined programs.
Most protocol fixtures use in-memory streams with the stdio transport patched; entrypoint tests also define a subprocess smoke case. Program-execution canary tests use POSIX shell fixtures and skip those cases on Windows. The README specifies per-file targets of 90% line and branch coverage, but supplies no achieved measurements.
The server, installation commands and tests were not executed for this report. Passing test results, actual coverage, client journeys, performance and a comprehensive security assessment are unavailable.
Access & freshness
Costs
No server subscription price, usage tariff or operating-cost figures are supplied. The scoped MIT licence grants software permissions free of charge, subject to its conditions. AI client or model charges, hosting, support and maintenance costs remain unknown.
No latency, memory-use, throughput or token-consumption measurements are included. Repository content returned to the client can be substantial, so the evidence does not support a per-task cost estimate.
Rights
src/git/LICENSE contains MIT permission terms with a 2024 Anthropic, PBC. copyright notice, and package metadata declares MIT. Those terms permit use, modification and redistribution, including sale, while requiring the copyright and permission notice in copies or substantial portions. The software is provided without warranty.
The repository-root LICENSE also describes a transition: new and consenting code contributions use Apache-2.0, contributions without relicensing consent retain MIT, and documentation excluding specifications uses CC-BY-4.0. The supplied files do not map individual contributions to those terms. Preserve the scoped licence and transition notice, and establish the applicable terms for included contributions and documentation before redistribution.
Freshness
Package metadata and the lockfile identify version 2026.11.11 at source commit e1dc4b18dbb948921da37f3d4224a628730b43b0. The source snapshot was captured on 2026-11-12 at 19:38:48.964 UTC.
These findings describe that fixed source revision. Availability of a matching published package or container, subsequent changes, later security fixes and compatibility with current installed clients are unknown.
Actions
Before adoption, confirm the client's stdio support and the available package version. Configure --repository explicitly, use the repository root in tool calls and give the process only the file access it needs. For read-only assistance, establish client or filesystem controls that prevent repository changes.
Use a disposable repository to check status, diffs, identity and staged-only commits in the intended client. Review which hooks, filters and signature controls your repository requires, arrange those checks separately where necessary, and inspect repository state after writing operations. Check the client's data-handling terms before exposing private source code.
