GitDiagram

com.gitdiagramv1.0.0更新於 Sep 30, 2026

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

已驗證Streamable HTTP可網頁執行Developer ToolsKnowledge & Memory

概覽

AI 產生的概覽

讓助理讀取 GitHub 儲存庫的 AI 生成架構圖、說明與 Mermaid 原始碼,並尋找講解影片。

功能
GitDiagram 是遠端 MCP 伺服器,可為 GitHub 儲存庫回傳 AI 生成的架構說明,列出主要元件及其連接關係,並提供 Mermaid 圖表原始碼。助理也能搜尋已儲存的圖表,並取得儲存庫的講解影片。相同內容也可透過圖表網址的 Markdown 版本取得。
適用情境
適合讓助理說明陌生程式庫的結構,或在不自行讀完整個目錄樹的情況下,取得某個儲存庫的架構圖與元件拆解。適用於 GitHub 專案的上手、架構審查與文件撰寫。
執行需求
遠端 MCP 端點位於 gitdiagram.com;README 說明公開儲存庫不需要金鑰或登入。私有儲存庫需要在網站的 Private Repos 中提供 GitHub 權杖。自架需要 Bun、Cloudflare R2、Upstash Redis,以及 OpenAI 或 OpenRouter API 金鑰。
安裝前請注意
此伺服器會讀取儲存庫內容並傳送到第三方服務以產生圖表,因此提供 GitHub 權杖時,私有程式碼會離開你的掌控。圖表與說明由 AI 生成,可能不準確。新講解影片的製作被描述為早期存取階段。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 GitDiagram,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

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

README

GitDiagram

Visualize any codebase: turn any public or private GitHub repository into an interactive architecture diagram, or watch it explained in a one-minute narrated video. AI agents can use it too, through the MCP server or the Markdown version of any diagram (gitdiagram.com/owner/repo.md).

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

[GitDiagram front page]

[License] [Ko-fi]

[Sent]   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 GitDiagram explain itself in a minute]

  • 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.

[Add to Claude] [Install in Cursor] [Install in VS Code] [Install in VS Code Insiders]

bash
# Claude Code: the plugin adds the MCP server and a /gitdiagram skillclaude plugin marketplace add ahmedkhaleel2004/gitdiagramclaude plugin install gitdiagram@gitdiagram# ...or just the MCP serverclaude mcp add --transport http gitdiagram https://gitdiagram.com/mcp
# Codexcodex mcp add gitdiagram --url https://gitdiagram.com/mcp
# Gemini CLIgemini extensions install https://github.com/ahmedkhaleel2004/gitdiagram
# GitHub Copilot CLIcopilot mcp add --transport http gitdiagram https://gitdiagram.com/mcp

In other clients (ChatGPT, Windsurf, Zed, LM Studio, Goose and more), add a remote MCP server with the URL https://gitdiagram.com/mcp. 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.

bash
git clone https://github.com/ahmedkhaleel2004/gitdiagram.gitcd gitdiagrambun installcp .env.example .env

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

bash
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.

來源:README.md,提交 69e8099

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v1.0.0最新Sep 30, 2026