MCP server · Audited from source
git-mcp
by selfagency/git-mcpNo licenceAudited 14 Oct 2026 · source c4cd4bd1b36a
Is it safe? With care — CAUTION, grade B (81/100). It exposes 28 tools: 27 read, 1 write and 0 destructive. The audit recorded 13 findings (0 critical, 0 high, 2 medium, 10 low). Maintainer's description: A Git MCP server that doesn't suck
Cite
Cite this page
ModelsAtlas. “git-mcp (selfagency/git-mcp)”. Retrieved 14 Oct 2026. https://modelsatlas.com/mcp/selfagency/git-mcp
Trust audit
Audit 0.4.1 · full source read 14 Oct 2026
13 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
- FilesystemNone observedNothing seen in the source
- NetworkDeclared3 observations
- ShellDeclared3 observations
- DependenciesNot pinnedSome ranges float
- SecretsFoundSee the findings
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS 4 findings |
L1 Static source | Secrets, path traversal, supply chain | WARN 8 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 1 finding |
L3 Inventory | Declared tools match the source | PASS |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
selfagencyUser accountAccount type recorded when we read the repository. - PackagePublished on npm
@selfagency/git-mcpat version 0.4.0 - LicenceNone declaredFrom the repository, as read at the audited commit.
- Last pushTodayActivity of the repository when we read it.
- Source commit readc4cd4bd1b36aThe audit covers exactly this commit, read on 14 Oct 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventory28 declaredRead from the source and classed read, write or destructive.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (13)
Sorted by severity
MEDIUMHard-coded secretssecret.github · src/security/__tests__/redact.test.ts:22
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMHard-coded secretssecret.github · src/services/__tests__/context.service.test.ts:149
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWInventory / provenanceinv.no_license
- Why
- no LICENSE file and no repo licence
- Fix
- add a licence
LOWFilesystem / pathfs.traversal · src/git/__tests__/external.test.ts:17
vi.mock('../../platform/exec.js', () => ({- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/services/__tests__/advanced.service.test.ts:4
vi.mock('../../git/client.js', () => ({- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/services/__tests__/advanced.service.test.ts:11
import { getGit } from '../../git/client.js';- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/services/__tests__/analytics.service.test.ts:3
vi.mock('../../git/client.js', () => ({- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/services/__tests__/analytics.service.test.ts:9
import { getGit } from '../../git/client.js';- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · package.json
@modelcontextprotocol/sdk, simple-git, zod, @octokit/rest, @vitest/coverage-v8, husky, lint-staged, ora
- Why
- 14 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
INFOPrompt injectionprompt.authority_framing · docs/guide/getting-started.md:5
git-mcp is a production-grade [Model Context Protocol](https://modelcontextprotocol.io) server that gives AI agents full access to Git workflows. It uses [simple-git](https://github.com/steveukx/git-j
- Why
- No further detail recorded for this rule.
- Fix
- —
Tools it exposes
28 declared in source · 0 destructive
| Tool | Risk | What it does |
|---|---|---|
git_merge | write | No description in the source |
git_analytics | read | No description in the source |
git_bisect | read | No description in the source |
git_branches | read | No description in the source |
git_but_check | read | Detects whether the GitButler |
git_cherry_pick | read | No description in the source |
git_commits | read | No description in the source |
git_context | read | No description in the source |
git_docs | read | No description in the source |
git_entire_check | read | Detect whether the Entire CLI is available and whether the repository is Entire-managed |
git_flow | read | No description in the source |
git_history | read | No description in the source |
git_jj_check | read | Detect whether the Jujutsu |
git_lfs | read | No description in the source |
git_ping | read | No description in the source |
git_pr | read | No description in the source |
git_rebase | read | No description in the source |
git_remotes | read | No description in the source |
git_rewrite | read | No description in the source |
git_stash | read | No description in the source |
git_status | read | No description in the source |
git_submodule | read | No description in the source |
git_tag | read | No description in the source |
git_tangled_check | read | Detect whether the repository origin remote points at a Tangled host (tangled.org or a |
git_workflow | read | No description in the source |
git_workspace | read | No description in the source |
git_worktree | read | No description in the source |
open_git_mcp_docs | read | Open git-mcp documentation pages in this tab. |
Install
Package version 0.4.0 · audited commit c4cd4bd
Read the findings first. The most severe is Hard-coded secrets (medium) at src/security/__tests__/redact.test.ts.
claude mcp add git-mcp --env GIT_SIGNING_KEY=${GIT_SIGNING_KEY} -- npx -y @selfagency/[email protected]The command pins the package version recorded in the source (0.4.0); the audit covers commit c4cd4bd1b36a. Transport: stdio. Reads these environment variables: GH_TOKEN, GITHUB_TOKEN, GIT_SIGNING_KEY. Give it the narrowest token it needs.
Audit history
- !CAUTION B 81 / 100
First audit ·
c4cd4bd1b36a
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/selfagency/git-mcp/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about git-mcp
What is the git-mcp MCP server?
What tools does git-mcp expose?
Is git-mcp safe to connect to an agent?
What credentials does git-mcp need?
How does git-mcp run?
How current is this page?
Sources
- selfagency/git-mcp on GitHub — the source we read, its licence, stars and activityObserved · 14 Oct 2026
- ModelsAtlas trust audit — CAUTION verdict for commit c4cd4bd1b36aObserved · 14 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 MCP server?
- What tools does git-mcp expose?
- Is git-mcp safe to connect to an agent?