# D2 Diagramming

> Use this tool when you need to create technical diagrams, flowcharts, and architectural visualizations through conversational interfaces, without requiring manual syntax writing. It solves the problem of generating complex diagrams by providing a natural language interface to produce SVG, PNG, and PDF outputs. The tool accepts text-based inputs and produces visual diagrams as outputs, making it ideal for use cases where users want to create diagrams quickly and efficiently through AI-powered assistants.

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

## Description

This D2MCP server by Yasushi Itoh provides AI assistants with direct access to D2 diagram creation and rendering capabilities, integrating with Terrastruct's D2 declarative diagramming language to generate SVG, PNG, and PDF outputs. The implementation supports 20+ built-in themes, programmatic diagram creation with in-memory storage, and file-based operations for persistent diagram management, using external tools like rsvg-convert or ImageMagick for non-SVG format conversion. Built with clean architecture patterns and comprehensive error handling, it enables natural language diagram generation workflows where users can create technical diagrams, flowcharts, and architectural visualizations through conversational interfaces without directly writing D2 syntax.

## Trust

- **Trust score (0–1):** 0.50
- **Verification tier:** unverified

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** media
- **Updated:** 2026-04-25

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/d2-diagramming)
- **Repository:** <https://github.com/i2y/d2mcp>

## 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": "d2-diagramming"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/d2-diagramming` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/d2-diagramming/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
