# Repository Briefing: idosal/git-mcp
> Source: https://repoforai.com/repo/idosal/git-mcp (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/idosal/git-mcp
- **Official Docs / Website**: https://gitmcp.io
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: Apache-2.0
- **Engineering Health**: B (52/100 · Maintenance 6/35 · Adoption 20/25 · Releases 6/20 · License 20/20)
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: MCP, Self-Hosted
- **Momentum**: 8,542 ★ total (+0 24h / +6 7d) · 764 forks
- **Topics**: `agentic-ai`, `agents`, `ai`, `claude`, `copilot`, `cursor`, `git`, `llm`, `mcp`
- **When to Use**: Best for: Teams using MCP-enabled coding assistants to check APIs and examples for public GitHub dependencies, especially unfamiliar or fast-moving libraries. Skip if: You need private repositories, offline access, guaranteed version-pinned answers, or tools that modify repositories.

## Overview
```text
### Architecture & Core Mechanics
GitMCP is a remote TypeScript MCP server that provides read-only access to public GitHub documentation and source. A repository-scoped URL binds tool calls to an owner and repository; `/docs` instead takes the target repository as part of the call. The client chooses a tool, GitMCP retrieves material from the public source, and the result goes back to the client as context for its answer. SSE is a documented connection path.

The manifest includes `@modelcontextprotocol/sdk`, Hono, React, React Router, and `html-to-md`. `wrangler.jsonc` and `tsconfig.cloudflare.json` point to a Cloudflare Workers-oriented project. The web interface adds browser chat, and the manifest lists AI SDK adapters for Anthropic, Cohere, Google, Groq, OpenAI, and xAI. Those dependencies do not establish which models the hosted chat exposes, and an MCP client does not need to use the web chat to retrieve repository context.

### Key Capabilities & Differentiators
The primary documentation fetch tries `llms.txt` first, then AI-optimized project documentation, then the root `README.md`. Use the fetch tool for an overview and documentation search for narrower questions where sending the full document would waste context. A separate tool retrieves linked pages and converts their content into a form the assistant can read. Source lookup uses GitHub code search to find implementation details and examples that the docs omit.

The generic endpoint exposes tools including `fetch_generic_documentation`, `search_generic_documentation`, and `search_generic_code`, with repository information supplied at call time. GitHub Pages has a separate URL pattern, and requests to those sites check `robots.txt`. The optional badge increments once per tool call for the given repository, so it measures tool activity, not unique readers.

### Trade-offs & Limitations
Compared with manual GitHub browsing and search, GitMCP's main advantage is putting retrieved excerpts directly into the coding assistant's workflow. A scoped endpoint is the safer default for a known dependency because it removes per-call repository selection. `/docs` avoids configuring many endpoints but introduces the possibility of searching the wrong project. Neither mode establishes that the retrieved material matches the dependency version in your lockfile; a checkout pinned to a tag or commit is a better fit for reproducible review.

The public service requires no sign-up and does not store agent queries. That does not make public repository text trustworthy or the hosted endpoint appropriate for confidential prompts. Keep source text separate from instructions, and verify important answers against the relevant upstream files. Apache-2.0 makes it possible to operate your own instance, but self-hosting does not extend the documented retrieval scope to private GitHub repositories or remove reliance on public upstream sources.

### Hardware & Deployment Guide
The hosted path is to register `https://gitmcp.io/{owner}/{repo}` or `https://gitmcp.io/docs` in a remote-capable MCP client. Where needed, the Claude Desktop example bridges the hosted endpoint with `npx mcp-remote`. For local development, use Node.js and pnpm, run `pnpm install` and `pnpm dev`, and use MCP Inspector to test SSE at `http://localhost:5173/docs`.

For production self-hosting, review `wrangler.jsonc` and `.env.example` alongside the build and deploy scripts. No Docker deployment or pinned release is evidenced. Self-hosting does not make retrieval offline: source fetches and GitHub code search still need upstream connectivity. No GPU is specified for the retrieval path; size the service against document size, conversion work, upstream request volume, and concurrent tool calls.
```

## Key Capabilities
```text
- Routing: Repository-scoped endpoints, a GitHub Pages URL pattern, and dynamic repository selection through `/docs`
- Document precedence: `llms.txt` first, then AI-optimized project docs, then the root `README.md`
- Retrieval tools: Documentation fetch and search are separate from linked-page retrieval and GitHub code search
- Client transport: SSE is documented for VS Code and MCP Inspector; `mcp-remote` is shown for Claude Desktop
- Web experience: In-browser documentation chat and a repository badge that counts tool calls
- Deployment: TypeScript and the MCP SDK, with Wrangler configuration for a Cloudflare Workers-oriented setup
```

## Quick Start / Clone
```bash
npx mcp-remote https://gitmcp.io/{owner}/{repo}
```
