arc-diagram
This MCP server creates polished, interactive architecture-diagram applications (React Flow) from validated diagram definitions, instead of returning static diagram strings.
List dialects:
list_arc_diagram_dialectsexplains the six visual grammars (system-context, application, runtime, lifecycle, pyramid, reference-model) and their authoring constraints.Get the contract:
get_arc_diagram_contractreturns the full JSON schema and core authoring rules for diagrams.Validate without writing:
validate_arc_diagram_setchecks IDs, references, dialect constraints, steps, legends, and other structural rules; returns validity.Create a full project:
create_arc_diagram_projectscaffolds a ready-to-run React Flow app with edit mode, embed mode (?embed=<diagramId>), light/dark themes, drag/resize/lasso/keyboard nudge, per-element styling, PNG export, offline HTML build, and probes (structural, text linting, geometric, UX, visual baselines).Use via CLI or MCP: Can be called as an MCP stdio server or directly via
node dist/index.js validate/create.Safety features: Requires absolute output path, refuses non-empty destination unless
overwrite: true, and preserves unrelated files during overwrite.No AI dependency: The server only validates and scaffolds; the calling agent supplies the diagram content and evidence.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@arc-diagram Validate my architecture doc and scaffold the React Flow diagram project."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
arc-diagram-mcp
An MCP server that creates polished, interactive architecture-diagram applications instead of returning a diagram string.
Example: Netflix streaming architecture

The complete Netflix example generates three connected views: system context, application architecture, and the numbered runtime journey from pressing play to Open Connect delivery. It is an illustrative reconstruction from public material—not a claim to reproduce Netflix's full internal design—grounded in the Open Connect overview, appliance and software architecture, and AWS case study.
npm run build
node dist/index.js create examples/netflix-project.json /absolute/path/to/netflix-architectureGive an MCP-capable agent a system description, repository, or design document. The agent distils the source into the arc-diagram contract; this server validates it and scaffolds a complete React Flow application with:
system-context, application, runtime, lifecycle, pyramid, and reference-model dialects;
drag, resize, lasso, keyboard nudge, text sizing, and per-element styling;
light and dark themes;
chrome-free
?embed=<diagramId>views;cropped 2× PNG exports and a self-contained offline HTML build;
structural validation, canvas-text linting, geometric probes, UX probes, and visual baselines.
The shape is inspired by phxdev1/archy-mcp, but the output is different: Archy produces Mermaid; this project produces an editable multi-view React Flow application.
Related MCP server: Flowchart MCP
MCP tools
Tool | Purpose |
| Explains when to use each visual grammar. |
| Returns the complete |
| Checks IDs, references, steps, legends, and dialect constraints without writing. |
| Writes a ready-to-run diagram project to an absolute local path. |
The MCP server deliberately has no second AI-provider dependency. The host model already understands the source; the server concentrates on a stable data contract, deterministic scaffolding, and verification.
Install from source
git clone https://github.com/ArchiJones-AI/arc-diagram-mcp.git
cd arc-diagram-mcp
npm install
npm run buildAdd the built server to any MCP client that accepts a stdio server:
{
"mcpServers": {
"arc-diagram": {
"command": "node",
"args": ["/absolute/path/to/arc-diagram-mcp/dist/index.js"]
}
}
}Restart the client after changing its MCP configuration.
CLI
The same engine is usable without an MCP client:
npm run build
node dist/index.js validate examples/minimal-project.json
node dist/index.js create examples/minimal-project.json /absolute/path/to/outputThe second command creates the application; it does not install its dependencies or run browsers. Continue inside the generated directory:
npm install
npm run devAuthoring flow
Inspect the source and choose each view's dialect from its structure or visual metaphor.
Call
get_arc_diagram_contractand authorDiagramDefobjects with evidence incitations.Call
validate_arc_diagram_setuntil it returnsvalid: true.Call
create_arc_diagram_projectwith an absolute, empty destination.Build and run the generated project's light/dark probes before taking its first visual baseline.
See the authoring contract, the minimal contract example, and the Netflix showcase.
Development
npm install
npm testnpm test compiles the server and exercises validation and deterministic project creation. The embedded template is independently typechecked during the repository smoke test.
Safety
Creation requires an absolute output path.
A non-empty destination is refused unless
overwrite: trueis explicit.Overwrite mode replaces scaffold-managed files but preserves unrelated files.
Repository analysis and claim grounding remain the responsibility of the calling agent; validation proves structural consistency, not architectural truth.
License
Apache-2.0.
Available Tools
4 toolscreate_arc_diagram_projectA
Create a complete interactive React Flow arc-diagram project from validated DiagramDef objects. The project includes edit mode, embed mode, light/dark themes, geometric probes, PNG export and a self-contained offline HTML build.
Inputs: title (required), diagrams (required), outputDirectory (required), eyebrow, +1 more.
get_arc_diagram_contractA
Return the complete DiagramDef JSON contract plus the core authoring rules used by the renderer.
Inputs: no named parameters.
list_arc_diagram_dialectsA
List the supported arc-diagram visual dialects, their semantics and authoring constraints.
Inputs: no named parameters.
validate_arc_diagram_setA
Validate diagram identities, references, dialect constraints, steps and control legends without writing files.
Inputs: title (required), diagrams (required), eyebrow.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct stage of the arc-diagram workflow: listing dialects, retrieving the contract, validating a set, and creating a project. There is no overlap or plausible confusion between the tools.
All tool names follow a consistent verb_noun pattern with the arc_diagram prefix: list, get, validate, and create. The naming is uniform and predictable.
Four tools is well-scoped for the server's purpose: discovery, contract access, validation, and project generation. Each tool earns its place and there is no redundancy.
The tool set covers the full stated pipeline from understanding dialects and the contract, to validating DiagramDef sets, to generating a complete project. There are no obvious gaps or dead ends within the declared domain.
Maintenance
Related MCP Connectors
Immutable agent diagrams: create, edit, validate and render versioned diagrams over MCP.
Render, verify, describe, and safely edit Mermaid diagrams through MCP.
Create and manage Mermaid.js flowcharts and diagrams with AI agents via MCP.
Create and edit architecture diagrams from your AI agent; get an SVG and a live editable canvas.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides AI-powered architecture analysis and visualization of codebases, exposing 17 MCP tools for querying components, dependencies, and generating interactive diagrams.10 npm5MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to create, edit, and export flowcharts through a local web-based editor with visual drag-and-drop, real-time sync, and 14 MCP tools for full node/edge CRUD.2Apache 2.0
- AlicenseAqualityBmaintenanceMCP server that exposes ArchSmith's diagram rendering and validation as tools, along with schema and registry resources, enabling AI agents to generate consistent SVG architecture diagrams from validated JSON descriptions.57Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables planning and maintaining system architecture as typed, linted, live diagrams stored as files in the repo, with MCP tools for cataloging, creating, editing, linting, exporting, and viewing diagrams locally.8MIT