
GitDiagram
com.gitdiagramv1.0.0更新于 Sep 30, 2026
Architecture diagrams, explanations and Mermaid source for public GitHub repositories.
概览
让助手读取 GitHub 仓库的 AI 生成架构图、说明和 Mermaid 源码,并查找讲解视频。
- 功能
- GitDiagram 是一个远程 MCP 服务器,可为 GitHub 仓库返回 AI 生成的架构说明,列出主要组件及其连接关系,并提供 Mermaid 图源码。助手还可以搜索已存储的图表,并获取仓库的讲解视频。相同内容也可通过图表 URL 的 Markdown 版本获取。
- 适用场景
- 适合让助手解释陌生代码库的结构,或在不自行通读整个目录树的情况下获取某个仓库的架构图和组件拆解。适用于 GitHub 项目的上手、架构评审和文档编写。
- 运行要求
- 远程 MCP 端点位于 gitdiagram.com;README 说明公共仓库无需密钥或登录。私有仓库需要在站点的 Private Repos 中提供 GitHub 令牌。自托管需要 Bun、Cloudflare R2、Upstash Redis 以及 OpenAI 或 OpenRouter API 密钥。
安装
在 SourceWeft 中
- 打开 控制台中的 GitDiagram,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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.
[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
/videoto any diagram URL, such asgitdiagram.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]
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.
Fill in .env using the configuration guide, then start the app:
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.
- Architecture — generation pipeline, storage, and API
- Development guide — setup, checks, and deployment
- Deployment recovery — Railway/Docker fallback
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- v1.0.0最新Sep 30, 2026


