← MCP servers · idosal

Git

BLOCKgrade D · trust 69/100

Put an end to code hallucinations! GitMCP is a free, open-source, remote MCP server for any GitHub project

agentic aiagentsaiclaudecopilotcursorgitllm

Overview

From the repository's own README, as read at the audited commit.

# GitMCP<p align="center">  <img width="884" alt="image" src="https://github.com/user-attachments/assets/2bf3e3df-556c-49c6-ab7b-36c279d53bba" /></p><p align="center">  <a href="#-what-is-gitmcp">What is GitMCP</a> •  <a href="#-features">Features</a> •  <a href="#-getting-started">Getting Started</a> •  <a href="#-how-it-works">How It Works</a> •  <a href="#-badge">Badge</a> •  <a href="#-examples">Examples</a> •  <a href="#-faq">FAQ</a> •  <a href="#-privacy">Privacy</a> •  <a href="#-contributing">Contributing</a> •  <a href="#-license">License</a></p><div align="center">[![GitMCP](https://img.shields.io/endpoint?url=https://gitmcp.io/badge/idosal/git-mcp)](https://gitmcp.io/idosal/git-mcp)[![Twitter Follow](https://img.shields.io/twitter/follow/idosal1?style=social)](https://twitter.com/idosal1)[![Twitter Follow](https://img.shields.io/twitter/follow/liadyosef?style=social)](https://twitter.com/liadyosef)</div><div align="center">  <a href="https://www.pulsemcp.com/servers/idosal-git-mcp"><img src="https://www.pulsemcp.com/badge/top-pick/idosal-git-mcp" width="400" alt="Pulse MCP Badge"></a></div>## 🤔 What is GitMCP?**Stop vibe-hallucinating and start vibe-coding!**[GitMCP](https://gitmcp.io) is a free, open-source, remote [Model Context Protocol (MCP)](https://docs.anthropic.com/en/docs/agents-and-tools/mcp) server that transforms **any** GitHub project (repositories or GitHub pages) into a documentation hub. It enables AI tools like Cursor to access up-to-date documentation and code, even if the LLM has never encountered them, thereby eliminating code hallucinations seamlessly.GitMCP supports **two flavors** -*   **Specific Repository (`gitmcp.io/{owner}/{repo}` or `{owner}.gitmcp.io/{repo}`):** Use these when you primarily work with a select number of libraries. This ensures your AI assistant always targets the correct project, enhancing security and relevance by preventing access to unintended repositories.*   **Generic Server (`gitmcp.io/docs`):** Use this 

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. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add git-mcp --env GITHUB_TOKEN=${GITHUB_TOKEN} -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "git-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "GITHUB_TOKEN": "${GITHUB_TOKEN}"
      }
    }
  }
}

Exposed tools (9) 9 read · 0 write · 0 destructive

ToolRiskDescription
fetch_documentationreadFetch documentation for a repository (URL will be provided when called).
fetch_generic_documentationreadFetch documentation for any GitHub repository by providing owner and project name
fetch_generic_url_contentreadGeneric tool to fetch content from any absolute URL, respecting robots.txt rules. Use this to retrieve referenced urls (absolute urls) that were mentioned in previously fetched documentation.
fetch_threejs_urls_inside_docsreadFetch content from URLs that are inside the reference docs. Usually contains
match_common_libs_owner_repo_mappingreadMatch a library name to an owner/repo. Don
search_documentationreadSearch documentation for a repository (URL will be provided when called).
search_generic_codereadSearch for code in any GitHub repository by providing owner, project name, and search query. Returns matching files. Supports pagination with 30 results per page.
search_generic_documentationreadSemantically search in documentation for any GitHub repository by providing owner, project name, and search query. Useful for specific queries.
search_threejs_documentationreadSemantically search the repository documentation for the given query. Use this if you need to find information you don

Details

Source
idosal/git-mcp
npm
git-mcp@1.0.0
Transports
sse
Credentials it reads
GITHUB_TOKEN
License
Apache-2.0
Stars
8,383 · pushed 127d ago

Trust audit

Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryWARN
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

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

Findings (17)

HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
worker-configuration.d.ts:2235
exec(input?: (string | URLPatternInit), baseURL?: string): URLPatternResult | null;
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
worker-configuration.d.ts:4670
exec(query: string): Promise<D1ExecResult>;
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
MEDIUMInventory / provenance · inv.symlink · CWE-1104
static/img
static/img
Why it matters. link not followed
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
.react-router/types/app/routes/+types/$.ts:6
import type { Info as Parent0 } from "../../+types/root.js"
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
.react-router/types/app/routes/+types/_index.ts:6
import type { Info as Parent0 } from "../../+types/root.js"
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
.react-router/types/app/routes/+types/api.chat.ts:6
import type { Info as Parent0 } from "../../+types/root.js"
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
app/components/content.tsx:3
import type { UrlType } from "../../src/shared/repoData";
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
app/components/content.tsx:4
import { generateServerName } from "../../src/shared/nameUtils";
LOWObfuscation / stealth · obf.decode_call · CWE-506, CWE-94
worker-configuration.d.ts:220
atob(data: string): string;
LOWObfuscation / stealth · obf.decode_call · CWE-506, CWE-94
worker-configuration.d.ts:306
declare function atob(data: string): string;
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@ai-sdk/anthropic, @ai-sdk/cohere, @ai-sdk/google, @ai-sdk/groq, @ai-sdk/openai, @ai-sdk/react, @ai-sdk/xai, @cloudflare/workers-oauth-provider
Why it matters. 66 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWPrompt injection · prompt.credential_read · CWE-94, CWE-1427
.github/CONTRIBUTING.md:56
- Add any necessary environment variables (ask project maintainers if you need access to specific API keys)
Why it matters. asks the agent to read credentials
INFOInventory / provenance · inv.oversize · CWE-1104
img/GitMCP_PW.mp4
img/GitMCP_PW.mp4
Why it matters. 9170599 bytes not read
INFOInventory / provenance · inv.oversize · CWE-1104
img/GitMCP_final.mp4
img/GitMCP_final.mp4
Why it matters. 12447559 bytes not read
INFOInventory / provenance · inv.oversize · CWE-1104
img/cover.png
img/cover.png
Why it matters. 1373072 bytes not read
INFOInventory / provenance · inv.oversize · CWE-1104
public/img/GitMCP_PW.mp4
public/img/GitMCP_PW.mp4
Why it matters. 9170599 bytes not read
INFOInventory / provenance · inv.oversize · CWE-1104
public/img/GitMCP_final.mp4
public/img/GitMCP_final.mp4
Why it matters. 12447559 bytes not read

Gates applied: no_behavioural_pass.

Audited 2026-09-13 · audit v0.4.0 · source sha fbd3556f2e5f · full audit: observations/trust-audit/mcp-server/idosal__git-4.json · Report an issue or request a re-scan

Audit history

DateSourceVerdictGradeScoreChange
2026-09-13fbd3556f2e5fBLOCKD69first audit

Alternatives

Other servers in the same categories, safer ones first.

Questions

What is the Git MCP server?

Put an end to code hallucinations! GitMCP is a free, open-source, remote MCP server for any GitHub project

What tools does Git expose?

9 in total: 9 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 2 critical or high issues in the source. Each one is listed on this page with the file and line it is on.

What credentials does Git need?

It reads GITHUB_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does Git run?

It speaks sse, so it runs as a service you connect to over the network. It is published on npm as git-mcp at 1.0.0.

How current is this page?

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

Provenance: OBSERVED · read 2026-09-13 · job trust-audit-2026-09-13