Enables AI assistants to compile, validate, and explore D2 diagrams using the official D2 WASM package. It provides tools for generating SVGs with custom layouts, themes, and icons directly from D2 source code.
Claim it to get a verified publisher badge, a free copy of our full audit findings, and direct contact for any high-priority issues we find.
Install from
M8ven verifies MCPs across every public registry — install directly from whichever one you prefer.
Disclosed vulnerabilities in this server's declared npm dependencies (via OSV). Whether each is reachable depends on the installed versions.
@modelcontextprotocol/sdk has cross-client data leak via shared server/transport instance reuse
Anthropic's MCP TypeScript SDK has a ReDoS vulnerability
Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default
process.env. You'll be asked to provide them before it can run.D2_PATH— D2 CLI — install from [d2lang.com](https://d2lang.com/tour/install) or set the env var to the binary location.ICONS_DIR— Icons (optional) — run scripts/download-icons.sh ./icons then set =./icons to enable local icon resolution. Without this, icon URLs are passed through to the D2 CLI as-is.PORT— The server starts on port 3000 by default (override with env var).[](https://m8ven.ai/mcp/ryanmccauley-d2-mcp-1kjy4r)