Atlas / MCP servers / cyanheads / Git

GitBLOCK

mcp/cyanheads/git-1

Clone, commit, diff, branch, merge, rebase, cherry-pick, stash, tag, and manage worktrees in local git repos via MCP. STDIO or Streamable HTTP.

Verdict
BLOCK
Grade
D
Trust score
69 /100
Exposed tools
1 1r · 0w · 0d
Transport
stdio · streamable-http
License
Apache-2.0
Stars
239
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

@cyanheads/git-mcp-server A Git MCP server for AI agents. STDIO & Streamable HTTP. 28 Tools · 1 Resource · 1 Prompt

[](./CHANGELOG.md) [](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/docs/specification/2025-11-25/changelog.mdx) [](https://modelcontextprotocol.io/) [](./LICENSE) [](https://github.com/cyanheads/git-mcp-server/issues) [](https://www.typescriptlang.org/) [](https://bun.sh/)

Tools

28 git operations organized into seven categories:

Read from source at commit fbb4ea9597eeOBSERVED · 2026-10-06
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.

claude-code (npm)
claude mcp add git-mcp-server -- npx -y @cyanheads/[email protected] run start:stdio
claude-code (npm)
claude mcp add git-mcp-server -- npx -y @cyanheads/[email protected] run start:http
03

Exposed tools (1)

1 read · 0 write · 0 destructive.

ToolRiskDescription
git-working-directoryreadProvides 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.
04

Trust audit

BLOCKgrade D · trust 69/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeWARN
L2Instruction surface (what it tells the agent)FAIL
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (5 observation(s))
Network
declared (3 observation(s))
Shell
none-observed
Dependencies
not all pinned
Secrets in source
none-found

Findings (9)

CRITICALPrompt injection · prompt.transfer_instruction · CWE-94, CWE-1427
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 it matters. an instruction to move sensitive data to an outside destination
Fix. remove; a skill never needs the user's secrets off the machine
MEDIUMInformation disclosure · disclose.log_secret · CWE-209, CWE-532
src/mcp-server/transports/auth/strategies/oauthStrategy.ts:195
this.logger.warning(`OAuth token verification failed: ${message}`, {
LOWInventory / provenance · inv.hidden_file · CWE-1104
.prettierignore
.prettierignore
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/config/index.ts:16
import packageJson from '../../package.json' with { type: 'json' };
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/mcp-server/transports/manager.ts:9
import type { AppConfig as AppConfigType } from '../../config/index.js';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/mcp-server/transports/manager.ts:14
} from '../../container/tokens.js';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/mcp-server/transports/manager.ts:15
import { requestContextService } from '../../utils/index.js';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/mcp-server/transports/manager.ts:16
import type { logger as LoggerType } from '../../utils/index.js';
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
cross-spawn, pino, pino-pretty, @eslint/js, @hono/mcp, @hono/node-server, @modelcontextprotocol/sdk, @opentelemetry/api
Why it matters. 48 dependency range(s) float
Fix. pin exact versions or ship a lockfile

Gates applied: critical_finding, no_behavioural_pass, undeclared_transfer.

Audited 2026-10-06 · audit v0.4.1 · source sha fbb4ea9597eefull audit observations/trust-audit/mcp-server/cyanheads__git-1.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-06fbb4ea9597eeBLOCKD69first audit
06

Questions

What is the Git MCP server?

Clone, commit, diff, branch, merge, rebase, cherry-pick, stash, tag, and manage worktrees in local git repos via MCP. STDIO or Streamable HTTP.

What tools does Git expose?

1 in total: 1 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is Git safe to connect to an agent?

No — not without reading the findings first. The audit graded it D (69/100) and found 1 critical or high issue in the source. Each one is listed on this page with the file and line it is on.

What credentials does Git need?

No credential environment variables were found in its source, so it appears to need none.

How does Git run?

It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as @cyanheads/git-mcp-server at 2.15.3.

How current is this page?

The grade is for one exact copy of the source (fbb4ea9597ee), read on 2026-10-06. The repository is watched and re-audited when it changes.

Advertisement