vaults-diagram-tools
Allows rendering Mermaid diagram text and files into SVG and JPEG images, and generating source-code diagrams from project files.
Click on "Install 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., "@vaults-diagram-toolsrender mermaid text: flowchart LR A-->B"
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.
vaults-diagram-tools
Portable Mermaid and source-code diagram toolkit for SVG/JPEG rendering, offline assets, and MCP workflows.
What is included
Mermaid renderer extracted from the Vaults toolchain.
Source-code to Mermaid diagram generator.
MCP stdio server with three explicit tools.
Offline-capable release assets for zip and container distribution.
Packaging templates for Homebrew, deb/rpm, VS Code, CDN, Docker, and Podman.
Not included: OCR/document conversion, Claro vault audits, CPQ import, clippings, or Casa Conectada PDF tooling.
Install
npm package from GitHub
npm install github:malnati/vaults-diagram-toolsLocal checkout
git clone https://github.com/malnati/vaults-diagram-tools.git
cd vaults-diagram-tools
npm ci
npm testContainer
docker build -f containers/Containerfile -t vaults-diagram-tools:local .
podman build -f containers/Containerfile -t vaults-diagram-tools:local .Release images are published to GitHub Container Registry as ghcr.io/malnati/vaults-diagram-tools.
Command line usage
vaults-mermaid-render path/to/diagram.mmd --output-dir out --png --ascii --manifest out/manifest.json
vaults-source-diagrams --source-dir src --output-dir diagrams --langs auto --diagrams dependency,class
vaults-diagram-mcpLocal checkout equivalents:
node packages/renderer/render-mermaid-assets.mjs examples/simple/flowchart.mmd --output-dir /tmp/vaults-diagram-tools
node packages/source-diagrams/source-diagrams.mjs --source-dir packages/source-diagrams/tests/fixtures/js-project --output-dir /tmp/source-diagrams
node packages/mcp/server.mjsSupported public CLIs are the three commands above. Additional package binaries are compatibility entrypoints for older Vaults paths and may be deprecated in a future major release.
MCP tools
vaults-diagram-mcp exposes exactly three tools:
render_mermaid_textrender_mermaid_filegenerate_source_diagrams
Markdown diagram policy
Generated Markdown should link artifacts and show source in a mermaid fenced block:
#### Diagram title
- Links: [Mermaid source](assets/diagram.mmd) / [SVG](assets/diagram.svg) / [JPEG](assets/diagram.jpg)
```mermaid
flowchart TD
A --> B
```SVG and JPEG files are delivery artifacts. Markdown should link them instead of embedding them as images by default.
Offline vendor runtime
The source tree does not commit node_modules. Build and release jobs create offline vendor assets with:
npm run vendor:refresh
npm run test:vendor:offlineThe renderer can run from normal npm dependencies during development, or from packages/renderer/vendor/node when MMDC_VENDOR_ONLY=1.
Distribution status
Working in v1:
npm package metadata and GitHub install flow
Docker/Podman image
MCP server
zip release
GitHub Actions CI, release, CodeQL, and Pages workflows
Templates in v1:
Homebrew formula
deb/rpm through nfpm
VS Code extension shell
CDN facade through npm/jsDelivr/unpkg once npm publication is enabled
Documentation
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Malnati/vaults-diagram-tools'
If you have feedback or need assistance with the MCP directory API, please join our Discord server