{"slug":"h0rv/d2-mcp","name":"d2-mcp","description":"Create, validate, and render diagrams from D2 (Declarative Diagramming) code into SVG and PNG formats.","category":"development","tags":[],"official":false,"stars":19,"transport":"stdio","install":[{"cmd":"npx @modelcontextprotocol/inspector","imports":[]}],"tools":[{"name":"Compile D2 Code","description":"Validate D2 syntax and catch errors before rendering. Get immediate feedback on diagram structure and syntax. Accepts either direct code or file path to D2 file."},{"name":"Render Diagrams","description":"Generate diagrams for visual feedback and refinement. Support PNG, SVG, and ASCII output formats. Accepts either direct code or file path to D2 file."},{"name":"Fetch D2 Cheat Sheet","description":"Returns a Markdown reference covering shapes, styling, and transport usage."}],"env_vars":[],"auth_type":"none","github":"https://github.com/h0rv/d2-mcp","homepage":"","server_url":"","status":"active","source":"mcpservers.org","updated_at":"Thu May 28"}