New advertisers: 50% off your first month with code FIRSTMONTHSee slots
j-river avatar

Mermaid Online MCP — Share Links & Source

j-river/mermaidonline-mcp

Encodes and decodes Mermaid diagram source into shareable links, without rendering or fetching.

tools
2
transport
STDIO
last updated
Nov 14, 2026
View on GitHub

What it does

  • Encodes diagram source into reversible pako: share tokens via encode_mermaid_share, with an explicit destination URL and optional config JSON
  • Decodes tokens or HTTP(S) URLs back to original source via decode_mermaid_share, with optional extension and config data behind includeState
  • Runs locally over stdio with Node.js 22+; no accounts, API keys, uploads, or URL fetching, and share links are not encrypted
  • Designed for round-tripping Mermaid diagrams between editors and documentation without visual rendering

Tools

2 tools

Public tool metadata for what this MCP can expose to an agent.

encode_mermaid_shareEncode diagram source into share links and recover source from supported Mermaid share tokens, directly from a local MCP client.

Encode diagram source into share links and recover source from supported Mermaid share tokens, directly from a local MCP client.

No parameter schema in public metadata yet.

decode_mermaid_shareOriginal source and optionally untrusted extension/config data

Original source and optionally untrusted extension/config data

No parameter schema in public metadata yet.

Readme

Mermaid Online MCP — Mermaid Share Links & Source

Encode diagram source into share links and recover source from supported Mermaid share tokens, directly from a local MCP client. An independent open-source companion to Mermaid Online, not an official Mermaid.js server.

This MCP serializes text. It does not render diagrams, validate Mermaid syntax, fetch share URLs or read/write files. For a visual editing workflow, use the separate Mermaid Online editor, Mermaid-to-SVG export or Mermaid-to-PNG export.

Install

Requires Node.js 22+ and an MCP client supporting local stdio servers. Common configuration:

{"mcpServers":{"mermaidonline":{"command":"npx","args":["-y","mermaidonline-mcp@0.1.0"]}}}

View the full README on GitHub

Details

Repository
github.com/j-river/mermaidonline-mcp
Website
mermaidonline.org
Categories
Developer Tools, Docs & Knowledge Bases
Package
mermaidonline-mcp
Transport
STDIO
Registry
MCP registry, active

More from j-river

All 4

Similar to Mermaid Online MCP — Share Links & Source

More Developer Tools