MCP server · Audited from source
Git MCP server
by cyanheads/git-mcp-serverApache-2.0 licenceAudited 6 Oct 2026 · source fbb4ea9597ee
Is it safe? No — BLOCK, grade D (69/100). It exposes 1 tool: 1 read, 0 write and 0 destructive. The audit recorded 9 findings (1 critical, 0 high, 1 medium, 7 low). Maintainer's description: Clone, commit, diff, branch, merge, rebase, cherry-pick, stash, tag, and manage worktrees in local git repos via MCP. STDIO or Streamable HTTP.
Cite
Cite this page
ModelsAtlas. “Git MCP server (cyanheads/git-mcp-server)”. Retrieved 6 Oct 2026. https://modelsatlas.com/mcp/cyanheads/git-1
Why this is BLOCK. The audit found 1 critical and 0 high findings; the most severe is Prompt injection at skills/field-test/SKILL.md:222. Each finding is listed below with its file and line.
Why this page is still public. People search for this server by name. Hiding it would leave them with the README's word alone; here they see what the code does. We list it so you can decide, and we do not show connect commands for BLOCK servers.
2 MCP servers are called Git. You are viewing cyanheads/git-mcp-server. Compare all 2 →
- idosal/git-mcp★ 8,411✕BLOCK
- cyanheads/git-mcp-server★ 239✕BLOCK
Trust audit
Audit 0.4.1 · full source read 6 Oct 2026
9 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared5 observations
- NetworkDeclared3 observations
- ShellNone observedNothing seen in the source
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
Findings (9)
Sorted by severity
CRITICALPrompt injectionprompt.transfer_instruction · skills/field-test/SKILL.md:222
Kills the background server, clears state, removes test repos. Do this _before_ writing the report so nothing leaks into the next session.
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
MEDIUMInformation disclosuredisclose.log_secret · src/mcp-server/transports/auth/strategies/oauthStrategy.ts:195
this.logger.warning(`OAuth token verification failed: ${message}`, {- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/config/index.ts:16
import packageJson from '../../package.json' with { type: 'json' };- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/mcp-server/transports/manager.ts:9
import type { AppConfig as AppConfigType } from '../../config/index.js';- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/mcp-server/transports/manager.ts:14
} from '../../container/tokens.js';
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/mcp-server/transports/manager.ts:15
import { requestContextService } from '../../utils/index.js';- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/mcp-server/transports/manager.ts:16
import type { logger as LoggerType } from '../../utils/index.js';- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · package.json
cross-spawn, pino, pino-pretty, @eslint/js, @hono/mcp, @hono/node-server, @modelcontextprotocol/sdk, @opentelemetry/api
- Why
- 48 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
Tools it exposes
1 declared in source · 0 destructive
| Tool | What it does | Risk |
|---|---|---|
git-working-directory | Provides the current session working directory for git operations. This is the directory set via git_set_working_dir and used as the default for all git commands. | read |
Safer alternatives
All git & code hosting servers →adhikasp/mcp-git-ingest
A Model Context Protocol (MCP) server that helps read GitHub repository structure and important files.
aloth/olcli
Overleaf CLI - pull, push, sync, compile LaTeX projects from your terminal. Git remote helper, MCP server for AI agents, and TypeScript library.
puravparab/gitingest-mcp
mcp server for gitingest
Audit history
- ✕BLOCK D 69 / 100
First audit ·
fbb4ea9597ee
README badge
Badges show the current verdict, BLOCK included
A badge cannot be hidden by the maintainer while the verdict is BLOCK. Fix the findings, push, and the re-audit updates it.
Questions about Git MCP server
What is the Git MCP server?
What tools does Git expose?
Is Git safe to connect to an agent?
What credentials does Git need?
How does Git run?
How current is this page?
Which Git MCP server is the right one?
I already installed Git. What should I do?
Can the verdict change?
Sources
- cyanheads/git-mcp-server on GitHub — the source we read, its licence, stars and activityObserved · 6 Oct 2026
- ModelsAtlas trust audit — BLOCK verdict for commit fbb4ea9597eeObserved · 6 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the Git MCP server?
- What tools does Git expose?
- Is Git safe to connect to an agent?