# d2-mcp-server

> Use this tool when you need to render, validate, or format D2 diagrams without requiring the d2 binary, and integrate it with other systems via the Model Context Protocol. It takes D2 diagram inputs and produces rendered, validated, and formatted outputs, using WASM for efficient rendering. Ideal for use cases where diagram inspection and rendering are necessary, such as in development, testing, or documentation workflows.

Canonical page: https://skillsregistry.net/skills/itsjool-d2-mcp  
JSON: https://api.skillsregistry.net/v1/skills/itsjool-d2-mcp

## Description

Enables rendering, validation, formatting, and inspection of D2 diagrams via the Model Context Protocol, using WASM for rendering without requiring the d2 binary.

## Trust

- **Trust score (0–1):** 0.69
- **Verification tier:** scanned
- **Last scanned:** 2026-08-30

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** other
- **Updated:** 2026-08-30

## Source

- **Source listing:** [Glama](https://glama.ai/mcp/servers/inseol0w0t)
- **Repository:** <https://github.com/ItsJooL/d2-mcp>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "itsjool-d2-mcp"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/itsjool-d2-mcp` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/itsjool-d2-mcp/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
