Git MCP Server

32 tools. 21 can modify or destroy data without limits.

4 destructive tools with no built-in limits. Policy required.

Last updated:

21 can modify or destroy data
11 read-only
32 tools total

Community server · catalogue entry verified 30/06/2026

How to control Git MCP Server ↓

What Git MCP Server exposes to your agents

Read (11) Write / Execute (17) Destructive / Financial (4)
Critical Risk

The most dangerous Git MCP Server tools

21 of Git MCP Server's 32 tools can modify, destroy, or commit something on every call — and an agent calls them with no built-in limits.

How to control Git MCP Server

PolicyLayer is an MCP gateway — it sits between your AI agents and Git MCP Server, and nothing reaches the server without passing your rules. These are the rules we recommend:

Deny destructive operations
{
  "git_branch_delete": {
    "deny_if": [
      {
        "conditions": [],
        "on_deny": "Blocked by default. Requires approval."
      }
    ]
  }
}

Destructive tools should never be available to autonomous agents without human approval.

Rate limit write operations
{
  "git_add": {
    "limits": [
      {
        "counter": "git_add_per_hour",
        "window": "hour",
        "max": 30,
        "scope": "grant"
      }
    ]
  }
}

Prevents bulk unintended modifications from agents caught in loops.

Cap read operations
{
  "git_branch_list": {
    "limits": [
      {
        "counter": "git_branch_list_per_minute",
        "window": "minute",
        "max": 60,
        "scope": "grant"
      }
    ]
  }
}

Controls API costs and prevents retry loops from exhausting upstream rate limits.

  1. Create a free account and register Git MCP Server — nothing to install.
  2. Add these rules — paste them, or build them visually. Tune the limits to your setup.
  3. Point your MCP client (Claude, Cursor, anything) at your gateway URL.
ENFORCE POLICY ON GIT →

Instant setup, no code required.

All 32 Git MCP Server tools

WRITE 15 tools
Write git_add Stage files for commit. Adds file contents to the index (staging area) in preparation for the next commit. Can Write git_branch_create Create a new branch. Creates a new branch at the specified reference point (commit or branch) and optionally c Write git_cherry_pick Apply changes from specific commits to the current branch. Takes the changes introduced in one or more existin Write git_clear_working_dir Clear the global working directory setting. Tools will use their explicitly provided path parameters. Write git_clone Clone a Git repository. Downloads a repository from a remote location and creates a local copy with all its hi Write git_commit Commit staged changes to the repository. Creates a new commit containing the current contents of the index wit Write git_init Initialize a new Git repository. Creates the necessary directory structure and Git metadata for a new Git repo Write git_merge Merge a branch into the current branch. Combines changes from the specified branch into the current branch wit Write git_push Push local changes to a remote repository. Uploads local branch commits to the remote repository, updating rem Write git_remote_add Add a new remote repository reference. Creates a connection to a remote repository with a name and URL, allowi Write git_reset Unstage files from the index. Removes file contents from the staging area while preserving the working directo Write git_set_working_dir Set a global working directory path for all Git operations. Future tool calls can use Write git_stash_apply Apply stashed changes to the working directory. Applies changes from the specified stash to the current workin Write git_stash_create Save uncommitted changes to a stash. Captures the current state of working directory and index and saves it on Write git_tag_create Create a new tag in the repository. Tags are references that point to specific commits, useful for marking rel

Related servers

Other MCP servers with similar tools — same risk classification, starter policies for each.

Questions about Git MCP Server

Can an AI agent delete data through the Git MCP Server MCP server? +

Yes. The Git MCP Server server exposes 4 destructive tools including git_branch_delete, git_clean, git_reset_commit. These permanently remove resources with no undo. PolicyLayer blocks destructive tools by default so they never reach the upstream server.

How do I prevent bulk modifications through Git MCP Server? +

The Git MCP Server server has 15 write tools including git_add, git_branch_create, git_cherry_pick. Set a rate limit in your policy -- for example, 10 calls per hour prevents an agent from making more than 10 modifications per hour. PolicyLayer enforces this at the gateway, before calls reach Git MCP Server.

How many tools does the Git MCP Server MCP server expose? +

32 tools across 3 categories: Destructive, Read, Write. 11 are read-only. 21 can modify, create, or delete data.

How do I enforce a policy on Git MCP Server? +

Register the Git MCP Server MCP server in PolicyLayer, apply the suggested rules above (adjust the limits to your use case), and point your AI client at the PolicyLayer proxy URL instead of the server directly. Your agents keep the same tools; PolicyLayer evaluates every call against policy before it executes. Nothing to install, live in minutes.

Enforce policy on every Git MCP Server tool call.

Deterministic rules across all 32 Git MCP Server tools. Per-identity grants. Full audit log. Live in minutes. Nothing to install.

Instant setup, no code required.

32 Git MCP Server tools catalogued and risk-classified — across an index of 43,000+ MCP servers.

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.