# D2

Look up D2 syntax, check diagrams, and render them locally.

- Weekly downloads: n/a
- GitHub stars: 25983
- Health: active
- Repository: https://github.com/d2lang/d2
- Registry names: io.github.d2lang/d2
- Categories: Dev tools & GitHub
- Snapshot: 2026-11-28

## Install

```sh
uvx d2lang
```

```json
{
  "mcpServers": {
    "d2": {
      "command": "uvx",
      "args": [
        "d2lang"
      ]
    }
  }
}
```

Source: https://mcpmorning.com/mcp/d2lang-d2/

## Transport

stdio
