Skip to main content

D2 MCP Server

io.github.RecursiveFunctions/d2mcp

v0.5.0Updated Sep 27, 2026stdio · Docker

Create, edit, validate, render, and export D2 diagrams with confined workspace access.

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add d2mcp -- docker run -i --rm ghcr.io/recursivefunctions/d2mcp:0.5.0

The registry lists extra launch arguments or environment variables for this server that could change what runs. They are left out here; check its repository before adding any.

Configuration

1 setting.

  • --mount
    Argument· required
    Mount a host workspace directory for D2 imports, assets, and exports.

Listed in the official MCP Registry since Sep 27, 2026. Mirrored daily; last checked Nov 26, 2026.