D2 for Claude Code
io.github.d2lang/d2
Look up D2 syntax, render diagrams locally, and review animations with storyboards and motion lint.
client:Claude Code
transport:stdio
runtime:pypi
Install D2 in Claude Code
run in your project directory
claude mcp add d2 -- uvx d2lang
Adds it for this project only. Append --scope user to make it available everywhere. Claude Code docs