D2 vs GitDiagram
D2 and GitDiagram are both developer tools MCP servers. GitDiagram scores higher (100 vs 94 out of 100). D2 has more GitHub stars (26k), and GitDiagram was updated more recently (5 days ago). The table compares them side by side.
| D2 | GitDiagram | |
|---|---|---|
| Score | 94 / 100 | 100 / 100 |
| What it does | Renders D2 text diagrams to SVG, validates D2 source, and ships an agent skill for AI clients. Aimed at developers and writers who create diagrams from text in docs, CI and blog posts. | Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one. |
| Publisher | Community: d2lang | Verified: gitdiagram.com |
| Grades | Maintenance A, Licence A, Quality A | Maintenance A, Licence A, Quality A |
| npm downloads a week | Not on npm | Not on npm |
| Runs | Local | Remote |
| Works with | Claude Code, Claude Desktop, Cursor, Codex, Gemini CLI, VS Code, Windsurf | Claude Code, Claude Desktop, Cursor, Codex, Gemini CLI, VS Code, Windsurf, ChatGPT |
| GitHub stars | 25,982 | 19,189 |
| Last commit | 28 Nov 2026 | 30 Nov 2026 |
| Licence | MPL-2.0 | MIT |
| Listed since | 28 Nov 2026 | 19 Oct 2026 |
| Install D2 | Install GitDiagram |
Questions
Is D2 or GitDiagram more popular?
D2 has more GitHub stars: 25,982.
Can I use D2 and GitDiagram together?
Yes. AI assistants can load several MCP servers at once. Install both and the assistant picks the right one for each task.