D2 for Windsurf
io.github.d2lang/d2
Look up D2 syntax, render diagrams locally, and review animations with storyboards and motion lint.
client:Windsurf
transport:stdio
runtime:pypi
Install D2 in Windsurf
~/.codeium/windsurf/mcp_config.json · windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
{
"mcpServers": {
"d2": {
"command": "uvx",
"args": [
"d2lang"
]
}
}
}
Global only — Windsurf has no per-project MCP config. Refresh Cascade after saving. Windsurf docs