Mermaid Diagrams
Provides a sandboxed MCP App for previewing and editing Mermaid diagrams. The render_mermaid tool accepts Mermaid source and an optional title, prepares a payload, and links to an editor UI that renders diagrams offline with a bundled Mermaid engine. It validates diagrams in the browser, reports rendering status, preserves edits in the mounted frame, and returns structured source for hosts without MCP Apps support.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Mermaid Diagrams / Mermaid 图示
Preview and edit Mermaid diagrams in a sandboxed MCP App. Rendering works offline
with the bundled Mermaid 11.16.1 engine. English and Chinese UI follow the host's
locale; theme changes keep the current source edits.
The editor follows MCP Apps hostContext.styles.variables for surface, text
and border colors, including switches between theme packages in the same mode.
Mermaid uses explicit dark-mode derivation and themed ER attribute rows. Hosts
without style variables receive the editor's built-in light/dark palette.
在隔离的 MCP App 中预览和编辑 Mermaid 图示,内置 Mermaid 引擎,支持离线渲染。 界面跟随宿主的中英文和明暗主题设置,切换时保留编辑内容。
Install this directory through OpenAgent's local plugin installation. The package
uses the host-provided Node interpreter and has no credential or configuration
requirements. Its relay tool is discovered on request; default diagrams in
OpenAgent remain reply-text AGUI Mermaid(source: ..., title?: ...) components.
render_mermaid accepts complete source and optional title. It waits for
actual browser rendering and returns the original MCP ToolResult with ok,
status, diagram type and dimensions, or the concrete render error. App-only
claim/completion tools correlate an opaque one-shot render ID. A missing or
closed frontend fails after 25 seconds. The server requires MCP Apps MIME support, and the app checks the host
openagent/tool-result-from-app capability. A host without that capability
receives a bounded timeout error instead of a false success. No headless browser or
network is required.
The diagram uses the same figure/canvas and top-right fit, zoom, fullscreen, copy-source and PNG/SVG download controls as host AGUI Mermaid. Source editing is initially collapsed. Actual local edits also update model context; they do not replace a completed ToolResult. Syntax failures offer an explicit Agent repair action. The tool's error remains available to the model for correction.
The UI verifies parent messages and performs the standard MCP Apps initialization handshake. It requests no network access. Source is data and Mermaid runs with strict security. Editing stays in the mounted frame; a conversation reload restores the original tool payload. Repeated host payloads and turn completion preserve edits in the mounted frame. The app does not persist unsaved local edits.
Fit reserves the scaled SVG dimensions so tall and wide diagrams stay inside the visible canvas. Zoomed diagrams scroll in both directions. Fullscreen uses the available window height; resizing and mode changes refit the diagram while preserving the current source. Escape returns to the inline editor.
Develop with bun install --frozen-lockfile, bun run build, and bun test.
The generated self-contained HTML must stay below 4 MiB; commit it and the
bundled Mermaid license so installed packages need no build step.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Render, verify, describe, and safely edit Mermaid diagrams through MCP.
Create, edit, preview, and deploy full-stack web apps to a live URL from any MCP client.
Draw diagrams, build HTML pages and write Markdown in a live editor the user sees.
Immutable agent diagrams: create, edit, validate and render versioned diagrams over MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables creating and editing draw.io diagrams from structured descriptions, rendering them as interactive inline SVGs, and providing access to the full draw.io editor for further modification and export.2,696 npmMIT
- FlicenseNot gradedqualityDmaintenanceEnables AI to create, edit, and manage Mermaid diagrams via MCP, with real-time preview in a browser-based editor.3-

drawio MCP Serverofficial
AlicenseAqualityAmaintenanceOfficial draw.io MCP server: create diagrams from Mermaid, XML or CSV, shown inline in Claude, ChatGPT, VS Code and Cursor or opened in the draw.io editor. Searches 10,000+ shapes.85,799Apache 2.0- AlicenseNot gradedqualityCmaintenanceEnables any MCP client to read and edit database schemas (DBML/SQL), Mermaid diagrams, and shared board layouts, along with the organizations, projects, documents, and marketplace listings around them. It runs as a hosted OAuth 2.1 endpoint, so there is nothing to install and access is limited to what the signed-in user can already see.MIT