GitDiagram

MCP serverDev tools

Lets your agent turn any public GitHub repository into an architecture diagram with explanations.

Available today. Use it from your connected AI after setup.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Then ask your AI: use GitDiagram to get repository diagram

About this server

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

Install GitDiagram

The server’s own address, for the clients that take one directly. Or connect ahel onceand every client you use reads it from one address, with the account kept on ahel rather than in each client’s config.

  • Claude Code

    claude mcp add --transport http --scope user gitdiagram 'https://gitdiagram.com/mcp'

    Run it once in your project, then open /mcp to approve any sign-in the server asks for.

  • Claude Desktop

    https://gitdiagram.com/mcp

    Add a custom connector in Settings, paste this address, and approve the sign-in.

  • Cursor

    cursor://anysphere.cursor-deeplink/mcp/install?name=gitdiagram&config=eyJ1cmwiOiJodHRwczovL2dpdGRpYWdyYW0uY29tL21jcCJ9

    Open the link and Cursor adds the server at that address.

  • ChatGPT

    https://gitdiagram.com/mcp

    In Settings, enable Developer mode, create an MCP app, and paste this address. Your plan and workspace must allow custom apps.

  • Codex

    codex mcp add gitdiagram --url 'https://gitdiagram.com/mcp'

    Run it once, then sign in with codex mcp login gitdiagram if the server asks for an account.

From the project's README

As published by ahmedkhaleel2004/gitdiagram in README.md.

Turn any public or private GitHub repository into an interactive architecture diagram, or watch it explained in a one-minute narrated video.

Try GitDiagram → · Or replace hub with diagram in any GitHub repository URL.

   Sponsored

SMS, WhatsApp, and RCS through one API. Try Sent →

New: explainer videos

GitDiagram can now turn a repository into a narrated video of about a minute. The video starts with what the project is for and what people do with it, then shows briefly how its main parts fit together and one decision under the hood.

  • Watch the gallery → or add /video to any diagram URL, such as gitdiagram.com/owner/repo/video.
  • Download an MP4 in landscape or vertical (9:16), with captions burned in.
  • Making new videos is in early access. Anyone can watch videos that already exist.

Features

  • Watch a repository explained in a narrated video, or press Video on any diagram page.
  • Explore the architecture with an AI-generated diagram and streamed explanation.
  • Jump to the code by clicking any component's linked file or directory.
  • Use private repositories with a GitHub token via Private Repos in the header.
  • Export diagrams as PNG or copy the Mermaid source.

Use GitDiagram from AI agents

GitDiagram is a remote MCP server at https://gitdiagram.com/mcp (no key or sign-in). Agents can read a public repository's architecture explanation, components, connections and Mermaid source, search the stored diagrams, and get explainer videos.

# Claude Code
claude mcp add --transport http gitdiagram https://gitdiagram.com/mcp

# Codex
codex mcp add gitdiagram --url https://gitdiagram.com/mcp

For Cursor, add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):

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

In Claude and ChatGPT, add a custom connector with the same URL. Then ask something like "how is fastapi/fastapi structured?".

Run locally

Requires Bun, Cloudflare R2, Upstash Redis, and an OpenAI or OpenRouter API key. See the setup guide for prerequisites and configuration.

git clone https://github.com/ahmedkhaleel2004/gitdiagram.git
cd gitdiagram
bun install
cp .env.example .env

Fill in .env using the configuration guide, then start the app:

bun run dev

Open localhost:3000.

Explainer videos are off by default. To turn them on, set VIDEO_EXPLAINER_ENABLED=1, NEXT_PUBLIC_VIDEO_EXPLAINER=1, ANTHROPIC_API_KEY, OPENAI_API_KEY and OPENROUTER_API_KEY (for the voice) in .env. See .env.example for the other video settings.

Development

Built with Next.js, React, TypeScript, Tailwind CSS, and Mermaid. Videos use Claude or GPT for the script and scenes and OpenRouter (Gemini 3.8 Flash TTS) for the voice. Deployed on Vercel.

Contributions are welcome. Open an issue or pull request with a focused description and verification notes.

Inspired by Romain Courtois's Gitingest.

Tools it offers (3)

What this server listed when ahel dialed its public endpoint in Sep 2026, with no key and no account of yours. The names are the server’s own.

  • get_repository_diagram
  • find_repository_diagrams
  • get_explainer_video

Signals

GitHub stars
18k
Forks
1k
Last commit
Sep 2026
Advanced
Delivery
gitdiagram MCP server → your ahel connector (mcp.ahel.ai) → your AI.
Item type
mcp-server
Key
com-gitdiagram-gitdiagram
Source
github.com/ahmedkhaleel2004/gitdiagram
Hosted endpoint
https://gitdiagram.com/mcp