ToolTrust
C42/100
cyanheads

git-mcp-server

mcp2.15.1

@cyanheads

An MCP (Model Context Protocol) server enabling LLMs and AI agents to interact with Git repositories. Provides tools for comprehensive Git operations including clone, commit, branch, diff, log, status, push, pull, merge, rebase, worktree, tag management, and more, via the MCP standard. STDIO & HTTP.

By cyanheads | 76 findings | Scanned 6/3/2026 | tooltrust-scanner/v0.3.13 | 220

34 High27 Medium15 Low

Risk Summary

Needs Approval

Excessive Permissions plus Supply Chain CVEs raises enough risk that this tool should not be auto-trusted.

Potential impact: The agent may gain overly broad access to files, network, databases, or execution capabilities.

Recommended action: Keep this tool behind manual approval and avoid unattended runs until the risky capabilities are narrowed or removed.

Suggested policy: keep this tool behind manual approval, do not allow unattended runs, and re-scan after narrowing risky permissions.

Security Findings (76)

  • HighAS-004

    📦Supply Chain CVEs (OSV) ×28

    GO-2026-5024 in golang.org/x/[email protected]: Invoking integer overflow in NewNTUnicodeString in golang.org/x/sys/windows (upgrade to 0.44.0)

    git_addgit_blamegit_branchgit_changelog_analyzegit_checkoutgit_cherry_pickgit_cleangit_clear_working_dirgit_clonegit_commitgit_diffgit_fetchgit_initgit_loggit_mergegit_pullgit_pushgit_rebasegit_refloggit_remotegit_resetgit_set_working_dirgit_showgit_stashgit_statusgit_taggit_worktreegit_wrapup_instructions

    Fix: Upgrade or replace the vulnerable dependency. Pin all dependency versions and enable automated CVE scanning (Dependabot or OSV Scanner).

  • HighAS-002

    ⚠️Excessive Permissions ×6

    tool declares network permission

    git_clonegit_fetchgit_pullgit_pushgit_remotegit_set_working_dir

    Fix: Tool requests broad permissions (exec/fs/network). Validate input parameters using Enums where possible, and restrict file system operations to explicit allowed directories.

  • MediumAS-002

    ⚠️Excessive Permissions ×27

    tool declares fs permission

    git_addgit_blamegit_branchgit_changelog_analyzegit_checkoutgit_cherry_pickgit_cleangit_clear_working_dirgit_clonegit_commitgit_diffgit_fetchgit_initgit_loggit_mergegit_pullgit_pushgit_rebasegit_refloggit_remotegit_resetgit_set_working_dirgit_showgit_stashgit_statusgit_taggit_worktree

    Fix: Tool requests broad permissions (exec/fs/network). Validate input parameters using Enums where possible, and restrict file system operations to explicit allowed directories.

  • LowAS-002

    ⚠️Excessive Permissions ×6

    input schema exposes 11 properties (threshold: 10)

    git_branchgit_push

    tool declares http permission

    git_checkoutgit_clear_working_dirgit_stash

    input schema exposes 13 properties (threshold: 10)

    git_log

    Fix: Tool requests broad permissions (exec/fs/network). Validate input parameters using Enums where possible, and restrict file system operations to explicit allowed directories.

  • LowAS-011

    ℹ️Missing Rate-Limit / Timeout ×9

    tool performs network or execution operations but declares no rate-limit, timeout, or retry configuration

    git_checkoutgit_clear_working_dirgit_clonegit_fetchgit_pullgit_pushgit_remotegit_set_working_dirgit_stash

    Fix: Declare explicit rate-limit, timeout, and retry configuration for all network and execution tools. Implement exponential back-off and surface resource state to the calling agent.

Scan this tool yourself

Reproduce this audit locally, integrate into CI, or let your agent audit its own tools.

Install once, then scan any MCP server:

$ curl -sfL https://raw.githubusercontent.com/AgentSafe-AI/tooltrust-scanner/main/install.sh | bash
$ tooltrust-scanner scan --server "npx -y git-mcp-server"

Adjust the package name if your npm registry name differs from the tool ID. View source

Add badge to your README

Copy this Markdown to show your ToolTrust grade on GitHub.

[![ToolTrust Grade C](https://raw.githubusercontent.com/AgentSafe-AI/tooltrust-directory/main/docs/badges/grade-c.svg)](https://github.com/AgentSafe-AI/tooltrust-directory)