62
/ 100
1 month ago
glama

d2-mcp

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.

Is this your MCP?

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.

// key findings
⚠️
Known vulnerabilities in dependencies: 3 high
Affects packages this MCP installs at runtime. Upgrade or remove the affected dependency.
No credential exfiltration, no sensitive file access, no obfuscation
Static analysis found nothing flowing your secrets to unexpected places.
// known CVEs in dependencies3 high

Disclosed vulnerabilities in this server's declared npm dependencies (via OSV). Whether each is reachable depends on the installed versions.

high@modelcontextprotocol/sdk@1.12.1GHSA-345p-7cg4-v4c7

@modelcontextprotocol/sdk has cross-client data leak via shared server/transport instance reuse

high@modelcontextprotocol/sdk@1.12.1GHSA-8r9q-7v3j-jr4g

Anthropic's MCP TypeScript SDK has a ReDoS vulnerability

high@modelcontextprotocol/sdk@1.12.1GHSA-w48q-cv73-mx4w

Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default

Depend on this server? Get alerted when its CVEs change.Watch this server free →
// required environment variables
This server reads these from process.env. You'll be asked to provide them before it can run.
configD2_PATHD2 CLI — install from [d2lang.com](https://d2lang.com/tour/install) or set the env var to the binary location.
configICONS_DIRIcons (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.
configPORTThe server starts on port 3000 by default (override with env var).
// full audit trail
The full breakdown of what we checked, the deductions that landed, the network hosts, the dependency advisories, and concrete fix guidance is available to verified publishers.
// improvement guidance — verified publishers only
We have 2 concrete improvements we can share with the publisher of this MCP. Each comes with specific guidance to raise the trust score.
// embed badge in your README
[![M8ven Score](https://m8ven.ai/badge/mcp/ryanmccauley-d2-mcp-1kjy4r)](https://m8ven.ai/mcp/ryanmccauley-d2-mcp-1kjy4r)
commit: 4a1ccf1c5a1eba12f226dae2d115322fc3d2c0ed
code hash: c6da692d13b60d465edc48355ef0e2529d2f9a5768019dfdebf316274cf68483
verified: 6/13/2026, 10:44:32 AM
view raw JSON →