GitBLOCK
Clone, commit, diff, branch, merge, rebase, cherry-pick, stash, tag, and manage worktrees in local git repos via MCP. STDIO or Streamable HTTP.
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:
fbb4ea9597eeOBSERVED · 2026-10-06Connect
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 mcp add git-mcp-server -- npx -y @cyanheads/[email protected] run start:stdio
claude mcp add git-mcp-server -- npx -y @cyanheads/[email protected] run start:http
Exposed tools (1)
1 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
git-working-directory | read | 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. |
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.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | WARN |
| L2 | Instruction surface (what it tells the agent) | FAIL |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (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)
Kills the background server, clears state, removes test repos. Do this _before_ writing the report so nothing leaks into the next session.
this.logger.warning(`OAuth token verification failed: ${message}`, {.prettierignore
import packageJson from '../../package.json' with { type: 'json' };import type { AppConfig as AppConfigType } from '../../config/index.js';} from '../../container/tokens.js';
import { requestContextService } from '../../utils/index.js';import type { logger as LoggerType } from '../../utils/index.js';cross-spawn, pino, pino-pretty, @eslint/js, @hono/mcp, @hono/node-server, @modelcontextprotocol/sdk, @opentelemetry/api
Gates applied: critical_finding, no_behavioural_pass, undeclared_transfer.
fbb4ea9597eefull audit observations/trust-audit/mcp-server/cyanheads__git-1.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-06 | fbb4ea9597ee | BLOCK | D | 69 | first audit |
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.