
# @hudsonkit/arc-mcp
### MCP server for architecture diagrams as code.
Gives AI agents the full Arc toolchain over the Model Context Protocol —
author, validate, lay out, render, and diff architecture diagrams from any
MCP client.
[](https://www.npmjs.com/package/@hudsonkit/arc-mcp)
[](https://github.com/hudsonkit/arc/blob/main/LICENSE)
## Run it
No install needed — the server runs over stdio:
```bash
npx -y @hudsonkit/arc-mcp
# or: bunx @hudsonkit/arc-mcp
```
## Client setup
Requires Node.js 22 or newer. No account, API key, or environment configuration
is required. PNG export needs a local Chrome/Chromium installation; animation
export also needs ffmpeg.
**Claude Code:**
```bash
claude mcp add --scope project arc -- npx -y @hudsonkit/arc-mcp
```
**Devin:**
```bash
devin mcp add arc -- npx -y @hudsonkit/arc-mcp
```
**Any MCP client (JSON config):**
```json
{
"mcpServers": {
"arc": {
"command": "npx",
"args": ["-y", "@hudsonkit/arc-mcp"]
}
}
}
```
## Tools
| Tool | What it does |
|------|--------------|
| `validate_diagram` | Coded diagnostics for `ArcDiagramData` — consume by `code`, apply a `supportedFixes` entry, re-validate |
| `auto_layout` | Auto-layout a full diagram or minimal input (`nodeData` + `connectors` + `connectorStyles`) |
| `diff_diagram` | Structural `DiagramDelta` — feed to `