Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

D2GitDiagram
Score94 / 100100 / 100
What it doesRenders 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.
PublisherCommunity: d2langVerified: gitdiagram.com
GradesMaintenance A, Licence A, Quality AMaintenance A, Licence A, Quality A
npm downloads a weekNot on npmNot on npm
RunsLocalRemote
Works withClaude Code, Claude Desktop, Cursor, Codex, Gemini CLI, VS Code, WindsurfClaude Code, Claude Desktop, Cursor, Codex, Gemini CLI, VS Code, Windsurf, ChatGPT
GitHub stars25,98219,189
Last commit28 Nov 202630 Nov 2026
LicenceMPL-2.0MIT
Listed since28 Nov 202619 Oct 2026
Install D2Install 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.