Skip to main content
← MCP

Git MCP Server

Model Context Protocol
Version control Local Read and write 8 axes checked Active Checked 2026-10-23

Read the two badges separately: the first is whether this page is backed by evidence, the second is whether the product is still maintained. An archived product can have complete evidence; complete evidence does not mean the product is active.

30-second check: should it make your shortlist?

In one line

The version-control implementation among MCP's official reference servers, scoped to…

How you use it

Local / self-hosted · MCP server

Licence / commercial use

Not checked

Read the original licence before commercial use
Mainland China

Direct in mainland · Not in filing list

These four cards help you rule things out, not decide for you. The real differences are in the eight questions and sources below.

Information not confirmed

  • Whether SSE / Streamable HTTP is supported (not declared in the repo)
  • The authentication mechanism in the container form
  • How the specific lower bound of Python MCP 1.x versions affects functionality
  • The exact structure of the new git_log schema

The version-control implementation among MCP's official reference servers, scoped to a given git repository but with full local write capability.

When to use it, when not to

Scenarios where an agent should make version-control operations inside a specific repository.

Not a fit for read-only use — full local write capability, so scope matters.

China availability domestic / direct access / CAC filing · snapshot 2026-10-20

Origin
foreign-made foreign entity (no matching filing entity in the CAC registry).
Direct access
direct OK Hosted on GitHub — direct reachability from mainland fluctuates (200/000 mixed on the same day); npm / PyPI install routes measured stable.
CAC filing
not in filing list:not in the CAC public registry (13 batch attachments searched 2026-10-20, https://www.cac.gov.cn/2024-04/02/c_1713729983803145.htm); the product does not serve the mainland public, so filing does not apply.

Filing status is quoted from the CAC public registry (updated batch by batch; this site copies the number and does not interpret it). "Direct access" is this site's own reachability measurement from a mainland network, not a vendor promise. GitHub-hosted sites fluctuated on the measurement day — the note says so.

11 questions, one table

11 questions, each comparable item by item with its peers.

Model & openness

It calls no model itself; it is an interface implementation called by clients. It invokes the local git command line directly, inheriting the local git version and configuration.

Where it runs

A local process communicating over stdio; container deployment (Docker / Podman) is also supported, but repository directories must be mounted explicitly.

A 2026-08-30 fix addressed security and compatibility issues of container bind mounts under Docker / Podman / SELinux.

Local files

Operates repositories through git; no arbitrary file read/write is needed. Every tool requires a repo_path, scoping it to that git repository. File contents inside the repository are read indirectly via git show / git_log and similar commands.

Tasks after shutdown

Not supported. The local process lives and dies with the client; under container deployment it depends on the container orchestration, not controlled by this server itself.

Tools & extensions

It provides 11 tools, including:

  • git_status
  • git_diff_unstaged
  • git_diff_staged
  • git_diff
  • git_commit
  • git_add
  • git_reset
  • git_log
  • git_create_branch
  • git_checkout
  • git_show

Including 4 write operations (commit / add / reset / checkout); output is structured text or diffs, ready for direct consumption.

Context & memory

No cross-session memory. State is carried entirely by the git repository itself; session disconnects do not affect repository state.

Permissions & limits

No separate approval mechanism. The permission boundary equals the local git user's file permissions, and it has full write capability, including committing, resetting the staging area and switching branches.

git_reset only unstages and does not discard working-tree changes; but git_checkout can switch to any branch.

Best for

Lets an Agent read repository status, history and diffs, and perform commits and branch operations under controlled conditions. Not a fit for scenarios needing push / PRs / remote repository management. This server provides no remote operations.

Transport

Supports stdio. The README also gives container deployment (Docker / Podman)

and uvx / pip local installation (full-text verification 2026-10-08); there is no official launch method for a remote transport (SSE / Streamable HTTP).

Authentication

No separate authentication layer. In stdio form it inherits the client user's git permissions; for the container form, authentication depends on the container orchestration configuration and is not stated in the repo.

Permission scope

The scope is confined to the git repository passed in — narrower than the filesystem server.

But it has full write capability (commit / add / reset / checkout), with no separate approval. Switching branches can change working-tree state — take care.

Top misconception

  • Assuming it is read-only — it can commit and switch branches
  • Assuming a container deployment can reach the host repo without help — without a mount it cannot read it
  • Assuming it can push or open PRs — this server only does local operations

Evidence sources

Checked 2026-10-23,Content updated 2026-10-08。This is the date of the entry, not a claim that every field was rechecked that day.

TypeNameLink
docsMCP · Git Serverhttps://github.com/modelcontextprotocol/servers/tree/main/src/git
changelogMCP · Git directory change historyhttps://github.com/modelcontextprotocol/servers/commits/main/src/git
changelogMCP · Servers Releaseshttps://github.com/modelcontextprotocol/servers/releases
repoMCP · Servers repo README (production-use disclaimer)https://github.com/modelcontextprotocol/servers

Test notes

This site has not completed measured runs. The test protocol is at protocols/mcp/_protocol.md.

Change-log notes

This object has no standalone changelog page; change records are in the directory's commit history:

DateContent
2026-09-02Unify the git_log output schema; remove raise_exceptions from run
2026-08-30Fix container bind-mount security and compatibility for Fetch / Git / Time (Docker / Podman / SELinux)
2026-08-18Document the Python MCP 1.x version requirement for fetch, git, time

Two entries worth noting:

  • The 09-02 output-schema unification means git_log's return structure has changed. If you parse its output, check the version.
  • The 08-30 container security fix shows the container deployment path of these servers once had security issues, involving SELinux — if you run containers in an enterprise environment, that commit is worth reading.

Tool inventory and read/write attributes

ToolAttributeDescription
git_statusreadworking-tree and staging-area status
git_diff_unstagedreadunstaged changes
git_diff_stagedreadstaged changes
git_diffreadcomparison against a target branch/commit
git_logreadcommit history, with time filtering
git_showreadthe content of a given commit
git_addwritestage specified files
git_commitwritecommit and return the new hash
git_resetwriteunstage everything (working tree untouched)
git_create_branchwritecreate a branch from current or a specified base
git_checkoutwriteswitch branches, changing working-tree state

6 read, 5 write. This is not a read-only tool. git_checkout switching branches directly changes the working tree. If it has uncommitted changes, the behaviour deserves special care.

Comparison with the filesystem server

Dimensionfilesystemgit
Scopedirectory allowlistthe git repository passed in
Write operationsyes (write / edit / move)yes and stronger (commit / reset / checkout)
Deletenot providednot provided
Command executionnot providedinvokes the git command line internally
Authenticationnone (relies on process permissions)none (relies on process permissions)

Conclusion: the git server's write capability is stronger, but its scope is confined to the git repository, so its risk surface is smaller than filesystem's.

Capability boundaries

This server does local operations only; it does not provide:

  • git push
  • creating PRs / issues
  • remote repository management

Remote operations need another solution (the old github server is archived, see below).

The archived alternative

The original github server provided repository management, file operations and GitHub API integration. It is archived to servers-archived. The archived repo has seen essentially no updates since 2025-05.

Related entries

Same-category peers

Look at these three before reading further

Selected by overlap in jobs, not ranked. Compare where it runs, licence and status first; if one of the three fails, skip it.

ObjectWhereLicenceEvidence / statusWhat it is for
1Password Environments MCP ServerLocal / self-hostedOpen licence8 questions checked
Active
1Password official Environments MCP server (local stdio, rides the deskt
Atlassian Remote MCP Server(Jira/Confluence)Cloud / APICommercial terms8 questions checked
Active
Atlassian's official Remote MCP server: one endpoint covers Jira + Confl
Brave Search MCP ServerLocal / self-hostedOpen licence8 questions checked
Active
Brave's official search MCP server (MIT): an independent retrieval sourc

Same vendor

More from Model Context Protocol

One vendor’s products are often split across categories. This list puts them together so you do not have to assemble them across five sites.

This page is generated from the ai-handbook data layer (CC BY 4.0). For the judging criteria and method notes, see METHODOLOGY.md.