D2lang MCP
Look up D2 syntax, render diagrams locally, and review animations with storyboards and motion lint.
Install
What this option needs
No keys or settings needed for this option.
Other ways: manual config, DuoM CLI, what runs
{
"mcpServers": {
"d2": {
"command": "uvx",
"args": [
"d2lang==0.10.1",
"mcp"
]
}
}
}npx duom@1 add io.github.d2lang/d2 --client cursor
uvx d2lang==0.10.1 mcp
The version is pinned to the one DuoM checked.
About
A modern diagram scripting language that turns text to diagrams.
Docs | Cheat sheet | Comparisons | Playground