Skip to main content
Glama

arc-diagram-mcp

An MCP server that creates polished, interactive architecture-diagram applications instead of returning a diagram string.

Example: Netflix streaming architecture

Complete arc-diagram interface showing an illustrative Netflix application 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-architecture

Give 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

list_arc_diagram_dialects

Explains when to use each visual grammar.

get_arc_diagram_contract

Returns the complete DiagramDef JSON schema and core authoring rules.

validate_arc_diagram_set

Checks IDs, references, steps, legends, and dialect constraints without writing.

create_arc_diagram_project

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 build

Add 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/output

The second command creates the application; it does not install its dependencies or run browsers. Continue inside the generated directory:

npm install
npm run dev

Authoring flow

  1. Inspect the source and choose each view's dialect from its structure or visual metaphor.

  2. Call get_arc_diagram_contract and author DiagramDef objects with evidence in citations.

  3. Call validate_arc_diagram_set until it returns valid: true.

  4. Call create_arc_diagram_project with an absolute, empty destination.

  5. 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 test

npm 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: true is 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 tools
create_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

    A4.1/5.0

    Scored across 4 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness5/5

    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

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides AI-powered architecture analysis and visualization of codebases, exposing 17 MCP tools for querying components, dependencies, and generating interactive diagrams.
      10 npm
      5
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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.
      2
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      MCP 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.
      5
      7
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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.
      8
      MIT