# GitDiagram [Health: Active]

**Category:** 🔄 Version Control  
**Repository:** https://github.com/ahmedkhaleel2004/gitdiagram  
**GitHub Stars:** 19178  
**Views:** 11  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/gitdiagram

## Description
Architecture diagrams, explanations and Mermaid source for public GitHub repositories.

## Tools
Capabilities this server exposes over MCP:

- **get_repository_diagram** — Get the architecture of a public GitHub repository from GitDiagram (gitdiagram.com): a written explanation of how the codebase is organized, its main components with the source paths they live in, how those components connect, and a Mermaid flowchart of the whole system, plus a link to the interactive diagram, where every component opens its code on GitHub. Use it whenever the user wants to understand, visualize, map or explain a GitHub repository's or open-source project's architecture, structure, main modules or data flow, wants an overview before reading unfamiliar code, or asks for an architecture or system diagram of a repo. Read-only and fast: it returns the diagram GitDiagram has already made. If none exists yet, it returns a link that makes one when opened in a browser. Public repositories only. In chat apps that show interactive views, the result also appears as a zoomable diagram whose components open their code on GitHub.
- **find_repository_diagrams** — Search GitDiagram's library of ready-made architecture diagrams of public GitHub repositories by owner or repository name. Matches any part of "owner/repo" (e.g. "langchain", "vercel/", "react-native") and returns up to 10 repositories, most-starred first, each with its interactive diagram link. Use it to find a project's exact owner/repo from its name, or to list which repositories of an owner or topic already have diagrams. It searches repository names only, not code or file contents.
- **get_explainer_video** — Get GitDiagram's narrated explainer video of a public GitHub repository, if one has been made: the link to watch and share it, its title and length, and the full narration transcript, a plain-language walkthrough of what the project is for, what people do with it and how its main parts fit together. Use it when the user wants a video about a repository, something to watch or share instead of read, or a short spoken-style summary of a project. Read-only: it never makes a video; when none exists it says so and links the page where one can be made.

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "gitdiagram": {
    "url": "https://gitdiagram.com/mcp"
  }
}
```

## Documentation

## What GitDiagram MCP server does

GitDiagram MCP server gives AI agents access to architecture information derived from GitHub repositories. An agent can inspect a repository’s explanation, see its identified components and connections, retrieve the Mermaid representation, search diagrams stored by GitDiagram, and obtain available explainer videos.

The service is intended for codebase orientation rather than direct code editing. It helps an agent answer questions about how a repository is structured, which parts are connected, and where the relevant files or directories appear in the generated architecture. The underlying GitDiagram product also provides interactive diagrams, links from diagram components to code locations, PNG export, and Mermaid copying, although the README specifically describes the MCP interface in terms of repository analysis and retrieval.

## How it works

The hosted endpoint is available at `https://gitdiagram.com/mcp`. Clients connect to it as a remote MCP server using HTTP.

A typical agent request names a public repository, such as `fastapi/fastapi`, and asks how it is structured. GitDiagram then exposes the stored or generated architecture information through MCP tools. The result can include a textual explanation, component and connection data, Mermaid source, search results for stored diagrams, or an explainer video when one is available.

The repository also offers a web interface at GitDiagram.com. Public repositories can be visualized there, while private repositories can be used through the site with a GitHub token.

## Setup and configuration

For hosted use, add the remote server URL to an MCP-compatible client. Claude, Cursor, VS Code, Claude Code, Codex, Gemini CLI, Windsurf, Zed, and LM Studio are named in the setup material or examples. Claude Code can install the project plugin, or it can add only the HTTP MCP server. Codex uses the same endpoint with its MCP command.

A local development setup is separate from using the hosted MCP service. It requires Bun, Cloudflare R2, Upstash Redis, and an OpenAI or OpenRouter API key. The documented flow is to clone the repository, run `bun install`, copy `.env.example` to `.env`, fill in the configuration, and start the application with `bun run dev`. The local web app is then available at `localhost:3000`.

## Tools and capabilities

GitDiagram MCP server supports these documented agent-facing capabilities:

- Read a public repository’s architecture explanation.
- Retrieve identified components and connections.
- Get the Mermaid source for a diagram.
- Search diagrams stored by GitDiagram.
- Get repository explainer videos.

The broader product can generate interactive architecture diagrams and narrated videos of about one minute. Existing videos can be watched, and downloadable MP4 output is available through the product interface. New video generation is described as early access.

## Limitations and notes

The remote MCP service is documented for public repositories and has no key or sign-in requirement. Private repository support is documented for the website through a GitHub token, not explicitly for MCP. Local operation has additional infrastructure and API-key requirements that do not apply to the hosted endpoint.

Video explainers are disabled by default in a local deployment. Enabling them requires `VIDEO_EXPLAINER_ENABLED=1`, `NEXT_PUBLIC_VIDEO_EXPLAINER=1`, `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, and `OPENROUTER_API_KEY`.

_Full upstream README: https://allmcps.com/mcp/gitdiagram/readme_

