Plain diagram files.
Alive with your AI agent.
A desktop Mermaid editor for local .mmd files. Edit side-by-side with Claude Code or Codex, or let any AI agent write and refresh them automatically.
01 / AI-First Workflow
Diagrams live as plain files on disk, so any coding agent can read your repo and edit them directly.
-
01
Open your diagrams & AI agent
Open a folder for your diagrams, then point the built-in Claude Code / Codex sidebar at any project — or use your own AI tool.
-
02
Ask your AI agent
Have it read your codebase and create or edit
.mmddiagrams directly — no copy-pasting. -
03
See changes update live
Every edit on disk refreshes the diagram automatically while keeping your view in place.
$ claude "Generate an architecture diagram for
this module and save it to docs/architecture.mmd"
Smart Editor
Syntax highlighting, keyword autocomplete, click-to-edit color swatches, and Vim mode.
File Manager
Folder tree or live thumbnail grid with subfolder filter, drag & drop, and per-folder tab restore.
Offline Icons
Built-in brand logos and Font Awesome icons that render completely offline — searchable by agents.
Visual Config
Adjust theme, look, layout, and font visually, then click Pin to code to save styles into the file.
02 / Built-in MCP Server
Connect external AI coding agents directly to your open Mermaid Code window.
Lets your agent see the opened folder, all .mmd files, and the currently active tab.
Previews generated Mermaid code straight in the Draft tab without writing to disk.
Finds exact built-in icon names for concepts like "postgres" or "kubernetes".
# Add via Claude Code CLI (~/.claude.json)
$ claude mcp add --transport http --scope user \
mermaid-code-mcp \
http://localhost:37079/mcp
# Add via Codex CLI (~/.codex/config.toml)
$ codex mcp add mermaid-code-mcp \
--url http://localhost:37079/mcp
# Add via OpenCode CLI (~/.config/opencode/opencode.json)
$ opencode mcp add mermaid-code-mcp \
--url http://localhost:37079/mcp --global
# Add to ~/.hermes/config.yaml mcp_servers: mermaid-code-mcp: url: "http://localhost:37079/mcp"
{
"mcpServers": {
"mermaid-code-mcp": {
"url": "http://localhost:37079/mcp"
}
}
}
03 / Install & Highlights
Free, open-source, auto-updating desktop app for macOS and Windows.
.mmd & .mermaid — Git-friendly text with Finder / Explorer "Open with"
$ brew tap m8524769/tap $ brew install --cask mermaid-code
xattr -dr com.apple.quarantine "/Applications/Mermaid Code.app"