sample-architecture-diagram-mcp-server
MCP server that turns a described AWS architecture into a self-contained interactive HTML diagram (official AWS icons, walkthroughs, UML sequence tabs, .drawio/PNG/GIF/SVG export).
Install / Use
claude mcp add aws-samples -- npx -y github:aws-samples/sample-architecture-diagram-mcp-serverIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of sample-architecture-diagram-mcp-server
sample-architecture-diagram-mcp-server scores 84/100 on our quality scale, 2806th of 4,615 Development & Engineering skills we index.
Its MCP Server is 23 KB long, well organised into 17 sections with 8 code examples: a thorough specification that gives an agent plenty to work with.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 2 days ago, so sample-architecture-diagram-mcp-server is actively maintained.
- It is released under the MIT-0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 97/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
sample-architecture-diagram-mcp-server compared with similar skills
All 4 of these similar skills score higher than sample-architecture-diagram-mcp-server; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| sample-architecture-diagram-mcp-server (this skill)by aws-samples | 84 | 10 | 2d ago | MCP Server |
| taste-skillby Leonxlnx | 100 | 109.8k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 108.6k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.8k | today | CLAUDE.md |
| ai-job-searchby ai-job-search-dev | 100 | 69.5k | 1d ago | CLAUDE.md |
Frequently asked questions
- How do I install sample-architecture-diagram-mcp-server?
- Run
claude mcp add aws-samples -- npx -y github:aws-samples/sample-architecture-diagram-mcp-server. The install tabs above show the steps for each supported agent. - Which AI agents does sample-architecture-diagram-mcp-server work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is sample-architecture-diagram-mcp-server safe to use?
- It is MIT-0-licensed and scores 97/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is sample-architecture-diagram-mcp-server still maintained?
- The repository was last updated 2 days ago, so sample-architecture-diagram-mcp-server is actively maintained.
Skill content
View source on GitHubAWS Architecture Diagram MCP
An MCP server that turns a list of AWS services and connections into a self-contained, interactive architecture diagram — a single HTML file you can open in any browser or attach to an email. No server, no internet, no build step for the consumer.
It also generates .drawio files and exports the diagram's elements as neutral
JSON — a machine-readable handoff (sidecar .json + export_diagram_json) that
downstream apps consume: the official AWS IaC MCP
for infrastructure, or a cost app such as aws-cost-app-mcp (a separate MCP) to
price it. This server draws the diagram; it does not price or deploy.

Guided walkthrough — step through the architecture beat by beat, with the camera framing each stage and an overlay card explaining the WHY:

The same self-contained HTML is fully interactive — switch language, collapse containers, and flip the theme, all offline:
| Language switch (any language) | Collapsible containers | Light / dark theme |
|:---:|:---:|:---:|
|
|
|
|
Disclaimer: Provided for illustration and documentation purposes, "as is" without warranty. The diagrams and any IaC or pricing it helps produce are starting points — review, test, and harden them (security, cost, and Well-Architected best practices) before using anything in production.
Features
- Interactive HTML diagram (React Flow) — draggable nodes, animated edges,
dark/light theme, any-language switch, LR/TB layout. Fully self-contained (icons
inlined as base64), so it works from
file://and as an email attachment. - Guided walkthrough — define ordered beats; arrow keys or the dock's play
button step through them. Each beat shows an overlay card (title, rich-markdown
body, bullets, status chips, code snippets) whose position you pick per beat via
cardSide(rightdefault,left,top, orfullcentered modal), and tints — and optionally zooms (stepZoom) or isolates (stepFocus) — a subset of the diagram. Effects are opt-in per diagram, so a single HTML file both is the diagram and narrates it. See Guided walkthrough for all knobs. - Any language — pass
languages: ['en','ja','fr', …]and author any text field as a{ en, ja, … }map; the toolbar shows a language dropdown and the whole diagram (labels, roles, walkthrough) re-renders in place. Not limited to EN/PT — localize the UI chrome for any language withuiStrings+langLabels. - Multi-tab documents — pass
sequence(or an explicittabs[]) and the same single HTML file becomes a small document with a tab rail: the architecture canvas, the animated UML sequence player (the same renderer as the standalonerender_diagram_mediasequence output — play/step/keyboard, activation bars,alt/opt/loop/parfragments, participant groups, notes, tone/badge narration cards with sourceprooflinks, PNG/SVG export), and free-formdoctabs (sections, bullets, code), andtypedtabs — any of 15 typed diagrams (Gantt, ER, swimlane, timeline, Kanban, journey, Wardley, decision workflow, …). Tabs deep-link via the URL hash. See Multi-tab documents. - Collapsible containers — every group header has a fold toggle; collapse a VPC
or account to a small box and the layout re-flows (start dense diagrams pre-collapsed
with
defaultCollapsed). - Typed connections — mark edges as
network/iam/event/data; each renders with a distinct color and dash style. Nodes carry aroledescribing what they do (shown on click). - Auto icon resolution — 350+ AWS services mapped to official icons; the
agent just passes a service name (
"Amazon RDS"), no icon path needed. .drawiooutput —auto_generate_diagramwrites a fully laid-out, editable.drawiofile (native AWS4 shapes) using the same ELK compound engine as the HTML, so it supports arbitrary group nesting and typed connections too;export_diagramconverts it to PNG/SVG/PDF (needs thedrawioCLI).- IaC handoff — exports a structured spec + instruction so an agent can generate production IaC via the official AWS IaC MCP (no re-implementation).
- Elements JSON handoff — every generated diagram writes a sidecar
.jsonnext to the HTML, andexport_diagram_jsonextracts the same neutral payload (title,services[],connections[],groups[], per-nodeconfig) from an existing file. This is the contract a downstream cost app (e.g.aws-cost-app-mcp) or inventory/docs tool consumes. This server makes no pricing calls itself.
AWS diagram guidelines
The output follows the official AWS architecture diagram guidance:
official icon set only, every node labeled, left-to-right / top-to-bottom flow,
and an editable source (.drawio). Process narration is kept off the canvas —
it lives in the guided-walkthrough overlay cards, not as clutter on the diagram.
For best results, label nodes with the canonical service name from the
AWS Architecture Icons set on first
use, and re-download the icon set when AWS refreshes it (quarterly).
Prerequisites
- Node.js 18+
- The AWS Architecture Icons (downloaded separately — see below). They are not bundled due to their Terms of Use.
Setup
git clone <this-repo>
cd sample-architecture-diagram-mcp-server
npm install
# Icons, once per MACHINE. Fetch the current package straight from AWS:
./scripts/fetch-icons.sh --latest
# ...or download Icon-package_<date>.zip from
# https://aws.amazon.com/architecture/icons/ (leave it in ~/Downloads), then:
./scripts/fetch-icons.sh
With no argument the script picks up the newest Icon-package*.zip (or an
older Asset-Package*.zip) in ~/Downloads (or ~/Desktop, or the current
directory); --latest downloads it from aws.amazon.com instead. Re-running with
a newer package overwrites the official icons, so the cache never goes stale. It installs ~810
official icons (services + group containers) into ~/.aws-architecture-icons
— a shared cache that every copy of this server reads, so a plugin install, an
npx run and a clone all see the same icons and reinstalling never means
downloading the zip again. Pass --dest assets to fill this checkout instead.
Or let the agent do it: ask it to run the setup_icons tool — same script,
no shell, and it reports the download link back if it can't find a zip.
Lookup order is: AWS_DIAGRAM_ICON_ROOT → this package's assets/ (if
populated) → ~/.aws-architecture-icons. An icon root holds icons/ plus,
optionally, aws-icons/ and tech-icons/ for your own SVGs.
Without icons the diagrams still render — nodes fall back to a category-colored initial, and every render tool says so in its result.
Register the MCP server
Clone this repo, run npm install, then point your MCP client at
mcp-server.js with an absolute path:
{
"mcpServers": {
"aws-architecture-diagram": {
"command": "node",
"args": ["/absolute/path/to/sample-architecture-diagram-mcp-server/mcp-server.js"]
}
}
}
Icons are not bundled (AWS Terms of Use). On first run without them, diagrams render category-colored initials; add them with
./scripts/fetch-icons.sh(or thesetup_iconstool) after downloading the Asset Package from https://aws.amazon.com/architecture/icons/. They install to the shared~/.aws-architecture-icons, so this is a one-time, per-machine step.
As a Claude Code plugin
This repo is also a Claude Code plugin: it ships .claude-plugin/plugin.json,
the .mcp.json above (resolved via ${CLAUDE_PLUGIN_ROOT}, so no absolute path
to edit), and skills/aws-architecture-diagram/ — a skill that teaches the
agent when to reach for an architecture view versus a sequence, a walkthrough or
a delta, and the authoring rules that make the output look right.
The repo doubles as its own single-plugin marketplace
(.claude-plugin/marketplace.json), so it installs in two commands:
/plugin marketplace add aws-samples/sample-architecture-diagram-mcp-server
/plugin install aws-architecture-diagram@aws-architecture-diagram
Installing a plugin clones the repo; it does not install dependencies. Run
npm install in the installed plugin directory before the server will start.
Icons need no extra step per install — the plugin reads the shared
~/.aws-architecture-icons cache, and if it is empty just ask the agent to run
setup_icons. Other MCP clients can read
skills/aws-architecture-diagram/SKILL.md as plain guidance.
Tools
| Tool | Purpose |
|------|---------|
| generate_html_diagram | Interactive self-contained HTML diagram in one call (the main one) |
| diagram_create | Start an incremental draft; returns a draftId |
| diagram_add_services | Append services (nodes) to a draft |
| diagram_add_connections | Append connections (edges) to a draft |
| diagram_add_groups | Append container groups to a draft |
| diagram_add_steps | Append guided-walkthrough beats to a draft |
| diagram_add_sequence | Add an animated UML sequence diagram as a second tab of a draft |
| diagram_add_doc_tab | Add a prose tab (sections / bullets / code) to a draft |
| diagram_render | Render an incremental draft to a self-contained HTML file |
| validate_diagram | Lint a diagram payload before rendering: unresolved icons, dangling connection endpoints, orphaned parentId/step references |
| diagram_delta | Diff two diagram JSONs into a Before/Delta/After payload |
| generate_sequence_diagram | Standalone animated UML sequence player (no architecture canvas) |
| sequence_create | Start an incremental sequence draft; returns a draftId |
| sequence_add_participants | Append lifelines to a sequence draft |
| sequence_add_messages | Append messages (arrows) to a sequence draft |
| sequence_add_notes | Append notes to a sequence draft |
| sequence_add_fragments | Append combined fragments (alt / opt / loop / …) anchored by event id |
| sequence_add_groups | Append participant groups (bands) to a sequence draft |
| sequence_render | Render a sequence draft to a self-contained HTML file |
| render_diagram_media | Screenshot/record a generated HTML diagram to PNG, animated GIF or animated SVG |
| auto_generate_diagram | Fully auto-laid-out .drawio file |
| generate_diagram | .drawio with manual x/y positioning |
| export_diagram | Convert .drawio → PNG/SVG/PDF (needs drawio CLI) |
| resolve_icon | Resolve a service name to its icon filename (or list all) |
| setup_icons | Install the AWS Architecture Icons into the shared per-machine cache (auto-detects the Asset Package zip in ~/Downloads) |
| list_shapes | AWS4 drawio shape names (for the .drawio path) |
| list_service_configs | IaC config fields per service |
| export_iac_json | Extract an AWS IaC MCP handoff payload (resources + dependencies) from a diagram |
| export_diagram_json | Extract the diagram's elements as neutral JSON (title, services, connections, groups) for downstream apps |
For a diagram built up in stages (e.g. as an agent reasons through an
architecture), use the incremental builder: diagram_create →
diagram_add_* (in any order) → diagram_render. For a single-shot build, use
generate_html_diagram. Both speak the exact same service/connection/group/step
shape.
Example: generate_html_diagram
{
"title": "My App",
"subtitle": "Serverless API",
"outputPath": "/tmp/my-app.html",
// Optional header band above the canvas, for a file
Truncated for display — read the full file on GitHub.
Related Skills
taste-skill
109.8kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
Agent-Reach
108.6kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
78.8kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ai-job-search
69.5kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
