diagrammer-mcp

中文文档
0.6.0发布于 2026/11/03MITES Module

MCP server that renders validated diagrams (architecture, workflow, sequence, dataflow, lifecycle, ERD, class, tree, timeline, waterfall) and one-page explainers as standalone HTML.

原始使用文档
文档目录6 节
  1. Install
  2. Tools
  3. Exploring a diagram
  4. Documentation
  5. Development
  6. License

Diagrammer MCP

npm

An MCP server that lets an AI agent turn a description into a validated, interactive diagram: one HTML file you can open, explore and share.

  • 10 diagram types: architecture, workflow, sequence, dataflow, lifecycle, ERD, class, tree, timeline and waterfall.
  • One-page explainers: the answer first, then reasons, steps, tables, comparisons and embedded diagrams.
  • Built to explore: hover or tab to any item to see its details and its upstream and downstream connections. Click a neighbor to follow the path. Zoom and pan large diagrams.
  • Trustworthy output: strict validation with exact JSON paths, deterministic renders, and a tamper check that ties each file to its embedded source.
  • Accessible: full keyboard support, screen-reader labels, light and dark themes, and motion that respects your reduced-motion setting.
  • Self-contained: no external requests. Diagrams export as SVG or PNG.

Install

You need Node.js 18 or newer. To register the server with Claude Code:

claude mcp add diagrammer -- npx -y diagrammer-mcp

To register it with any other MCP client:

{
  "mcpServers": {
    "diagrammer": { "command": "npx", "args": ["-y", "diagrammer-mcp"] }
  }
}

Restart the client. Then ask, for example, "draw the architecture of this repo" or "explain this decision as a one-page explainer".

Tools

ToolPurpose
diagram_guideRecommends a diagram type for a question.
diagram_authoring_contextReturns the tips, schema and example for a type.
diagram_finalizeValidates, renders and checks a candidate, then writes the HTML file and a receipt.
diagram_validateValidates a candidate only.
diagram_checkRe-checks an existing HTML file for tampering or corruption.

Exploring a diagram

Do thisTo get this
Hover over an item, or Tab to itThe details panel shows its name, kind, group, description and data, plus its upstream connections (amber) and downstream connections (green).
Click it, or press EnterPins the panel. Click a listed neighbor to jump to it.
Press EscCloses the panel.
Use − / + / Fit / 100%, Ctrl/⌘ + scroll, or dragZoom and pan. Large diagrams open at 75% or more so labels stay readable.
Use Theme, Motion, SVG or PNGSwitches light/dark, turns animation on or off, or exports the diagram.

Documentation

  • Guide: how it works, the viewer, choosing a type, the tools, output files, checks, every diagnostic code, configuration, troubleshooting and development.
  • Schema reference: every field of every type, generated from schemas/.
  • Examples: one worked candidate per type.

Development

git clone https://github.com/VinodhDeva/diagrammer.git
cd diagrammer && npm install && npm test

See Development for the code layout and the release steps.

License

MIT. See LICENSE. Third-party notices are in NOTICE. Graph layout uses dagre, under the MIT license.

版本与发布记录

diagrammer-mcp 共发布 3 个版本,首次发布于 2026/11/03;过去 12 个月发布了 3 个版本。

版本发布日期距今
0.6.0latest2026/11/03今天
0.5.02026/11/03今天
0.0.0-stage2026/11/03今天

关于 diagrammer-mcp 的常见问题

diagrammer-mcp 是什么?

MCP服务器,将经过验证的图表(架构、工作流、序列、数据流、生命周期、ERD、类、树、时间线、瀑布)和单页解释器呈现为独立的HTML。

如何安装 diagrammer-mcp?

在项目目录运行 npm install diagrammer-mcp,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 diagrammer-mcp,可以用 npx diagrammer-mcp 直接运行。

diagrammer-mcp 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/diagrammer-mcp 是否存在。

diagrammer-mcp 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

diagrammer-mcp 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

diagrammer-mcp 可以商用吗?

diagrammer-mcp 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

diagrammer-mcp 还在维护吗?

最新版本 0.6.0 发布于 2026/11/03(今天);至今共发布 3 个版本,其中过去 12 个月发布了 3 个;首次发布于 2026/11/03。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。