D2 for Claude Desktop
io.github.d2lang/d2
Look up D2 syntax, render diagrams locally, and review animations with storyboards and motion lint.
client:Claude Desktop
transport:stdio
runtime:pypi
Install D2 in Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json · windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"d2": {
"command": "uvx",
"args": [
"d2lang"
]
}
}
}
Settings → Developer → Edit Config opens this file. Restart the app after saving. Claude Desktop docs