# GitDiagram

> Turns a GitHub repository into an interactive AI-generated architecture diagram or a one-minute explainer video; free on gitdiagram.com, with a remote MCP server.

Source: https://talira.ai/catalog/gitdiagram-gd2d0arr
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Web app, MCP server
- Categories: [developer tools / code visualization](https://talira.ai/categories/developer-tools/code-visualization)
- Licence: MIT[^4]
- Pricing: Free and open source[^2]
- Pricing notes: gitdiagram.com is free to use and carries ads; the code is MIT-licensed.
- Free tier: yes[^2]
- Self-hostable: yes[^1]
- Cloud hosted: yes[^1]
- MCP server: yes[^1]
- Supports: [MCP](https://talira.ai/standards/mcp.md)[^1]
- Backed by: [Ahmed Khaleel](https://talira.ai/orgs/ahmedkhaleel2004.md)
- Extends: [Claude Code](https://talira.ai/ecosystems/claude-code.md#ext-vmrkby1h)

GitDiagram generates an interactive architecture diagram of any GitHub repository, public or private with a GitHub token, by replacing `hub` with `diagram` in its URL: an AI-written explanation and a Mermaid diagram whose components link to the files and directories behind them, exportable as PNG or Mermaid source. It can also make a narrated video of about a minute explaining the repository, downloadable as MP4. Agents use it through a remote MCP server at `https://gitdiagram.com/mcp` with no key, or the Markdown version of any diagram, and it ships a Claude Code plugin and a Gemini CLI extension. The MIT-licensed code runs yourself with Bun, Cloudflare R2, Upstash Redis and an OpenAI or OpenRouter key. Made by Ahmed Khaleel.

## Links

- Website: https://gitdiagram.com/
- GitHub: https://github.com/ahmedkhaleel2004/gitdiagram

## Problems it solves

- understand the architecture of an unfamiliar GitHub repository quickly
- get a diagram of how a codebase's parts connect without drawing it myself
- let my coding agent read a repository's architecture through MCP

## Features

- interactive architecture diagram of any GitHub repository
- components link to the files and directories behind them
- private repositories with a GitHub token
- PNG export and Mermaid source
- narrated one-minute explainer videos as MP4
- remote MCP server with no key, plus Markdown diagrams for agents

## Limitations

- Making new explainer videos is in early access; anyone can watch videos that already exist.[^1]

## Ways to run it

### GitDiagram

Hosted by Ahmed Khaleel, MIT. Price: free.[^2]

Only in this edition:

- explainer videos (making new ones is in early access)

Pricing: https://gitdiagram.com/

### GitDiagram (self-hosted)

You run it, MIT. Price: free.[^3]

Not included:

- explainer videos unless you turn them on with Anthropic, OpenAI and OpenRouter keys

You arrange:

- Bun
- Cloudflare R2
- Upstash Redis
- an OpenAI or OpenRouter API key

Self-hosting docs: https://github.com/ahmedkhaleel2004/gitdiagram/blob/main/docs/dev-setup.md

## Capabilities

- Has an MCP server: plan not known

## Trust

Overall: 0.71 out of 1.
Signals: maintenance 1.00, adoption 0.86, momentum 0.88, community 0.31, backing 0.30, extensibility 0.20.

- last commit 6 days ago
- 477 commits in the last 90 days
- 19.2k GitHub stars
- 5 contributors
- accepts sponsorship (Ko Fi)
- backed by Ahmed Khaleel
- has an MCP server for agents

## Sources

[^1]: https://github.com/ahmedkhaleel2004/gitdiagram/blob/main/README.md (checked 29 Nov 2026)
[^2]: https://gitdiagram.com/ (checked 29 Nov 2026)
[^3]: https://github.com/ahmedkhaleel2004/gitdiagram/blob/main/docs/dev-setup.md (checked 29 Nov 2026)
[^4]: https://github.com/ahmedkhaleel2004/gitdiagram/blob/main/LICENSE (checked 29 Nov 2026)
