# Arc MCP server

> Lets an AI client create and edit architecture diagrams as typed JSON, and export them as SVG, PNG, ASCII, GIF, or MP4.

- Repository: https://github.com/hudsonkit/arc
- Page: https://hostedmcp.org/servers/hudsonkit/arc
- Transport: stdio
- Stars: 17
- License: MIT

## Install

### Claude Code

```sh
claude mcp add arc -- npx -y @hudsonkit/arc-mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "arc": {
      "command": "npx",
      "args": [
        "-y",
        "@hudsonkit/arc-mcp"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "arc": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@hudsonkit/arc-mcp"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"arc","type":"stdio","command":"npx","args":["-y","@hudsonkit/arc-mcp"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "arc": {
      "command": "npx",
      "args": [
        "-y",
        "@hudsonkit/arc-mcp"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add arc -- npx -y @hudsonkit/arc-mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.arc]
command = "npx"
args = ["-y", "@hudsonkit/arc-mcp"]
```

### Gemini CLI

```sh
gemini mcp add -s user arc npx -- -y @hudsonkit/arc-mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "arc": {
      "command": "npx",
      "args": [
        "-y",
        "@hudsonkit/arc-mcp"
      ]
    }
  }
}
```

## FAQ

### What diagram formats can Arc import?

Arc imports Mermaid flowcharts and state diagrams into editable architecture data, and it also natively renders and plays Mermaid sequence diagrams.

### What export formats does Arc support?

Arc exports PNG, SVG, GIF, MP4, React or HTML, ASCII/Unicode, and editable JSON or TypeScript.

### Does Arc need Mermaid.js at runtime?

No. Arc has its own typed sequence model, layout, SVG rendering, and playback, so Mermaid.js is not required.

### Can I edit diagrams visually instead of in code?

Yes, the Arc studio shows the drawing and its source side by side, so dragging a node updates the JSON and editing the JSON updates the canvas.

### Can an AI agent work on a diagram while I watch?

The private preview lets an agent add and move nodes through MCP in a live architecture review while the canvas updates.
