Git
BLOCKgrade D · trust 69/100Put an end to code hallucinations! GitMCP is a free, open-source, remote MCP server for any GitHub project
agentic aiagentsaiclaudecopilotcursorgitllmOverview
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">[](https://gitmcp.io/idosal/git-mcp)[](https://twitter.com/idosal1)[](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 mcp add git-mcp --env GITHUB_TOKEN=${GITHUB_TOKEN} -- npx -y [email protected]{
"mcpServers": {
"git-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"GITHUB_TOKEN": "${GITHUB_TOKEN}"
}
}
}
}Exposed tools (9) 9 read · 0 write · 0 destructive
| Tool | Risk | Description |
|---|---|---|
fetch_documentation | read | Fetch documentation for a repository (URL will be provided when called). |
fetch_generic_documentation | read | Fetch documentation for any GitHub repository by providing owner and project name |
fetch_generic_url_content | read | Generic 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_docs | read | Fetch content from URLs that are inside the reference docs. Usually contains |
match_common_libs_owner_repo_mapping | read | Match a library name to an owner/repo. Don |
search_documentation | read | Search documentation for a repository (URL will be provided when called). |
search_generic_code | read | Search 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_documentation | read | Semantically search in documentation for any GitHub repository by providing owner, project name, and search query. Useful for specific queries. |
search_threejs_documentation | read | Semantically 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.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | WARN |
| L1 | Static analysis of the code | FAIL |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (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)
exec(input?: (string | URLPatternInit), baseURL?: string): URLPatternResult | null;
exec(query: string): Promise<D1ExecResult>;
static/img
import type { Info as Parent0 } from "../../+types/root.js"import type { Info as Parent0 } from "../../+types/root.js"import type { Info as Parent0 } from "../../+types/root.js"import type { UrlType } from "../../src/shared/repoData";import { generateServerName } from "../../src/shared/nameUtils";atob(data: string): string;
declare function atob(data: string): string;
@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
- Add any necessary environment variables (ask project maintainers if you need access to specific API keys)
img/GitMCP_PW.mp4
img/GitMCP_final.mp4
img/cover.png
public/img/GitMCP_PW.mp4
public/img/GitMCP_final.mp4
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
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-09-13 | fbd3556f2e5f | BLOCK | D | 69 | first 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