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.

PLAIN .MMD FILES · BUILT-IN MCP · MACOS / WINDOWS
Native desktop workspace · Auto-save · Zero telemetry
Mermaid Code desktop app showing diagram thumbnails, live SVG flowchart preview, and built-in Claude Code sidebar Mermaid Code desktop app in dark mode showing diagram thumbnails, live SVG flowchart preview, and built-in Claude Code sidebar

01 / AI-First Workflow

Diagrams live as plain files on disk, so any coding agent can read your repo and edit them directly.

  1. 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.

  2. 02
    Ask your AI agent

    Have it read your codebase and create or edit .mmd diagrams directly — no copy-pasting.

  3. 03
    See changes update live

    Every edit on disk refreshes the diagram automatically while keeping your view in place.

Example prompt
$ claude "Generate an architecture diagram for
  this module and save it to docs/architecture.mmd"
Loop between User, Codebase, AI Agent, Built-in MCP, File System, and live diagram re-rendering

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.

list_diagrams Context

Lets your agent see the opened folder, all .mmd files, and the currently active tab.

preview_diagram Draft

Previews generated Mermaid code straight in the Draft tab without writing to disk.

search_icons Icons

Finds exact built-in icon names for concepts like "postgres" or "kubernetes".

Terminal
# Add via Claude Code CLI (~/.claude.json)
$ claude mcp add --transport http --scope user \
  mermaid-code-mcp \
  http://localhost:37079/mcp
Terminal
# Add via Codex CLI (~/.codex/config.toml)
$ codex mcp add mermaid-code-mcp \
  --url http://localhost:37079/mcp
Terminal
# Add via OpenCode CLI (~/.config/opencode/opencode.json)
$ opencode mcp add mermaid-code-mcp \
  --url http://localhost:37079/mcp --global
~/.hermes/config.yaml
# Add to ~/.hermes/config.yaml
mcp_servers:
  mermaid-code-mcp:
    url: "http://localhost:37079/mcp"
~/.gemini/config/mcp_config.json
{
  "mcpServers": {
    "mermaid-code-mcp": {
      "url": "http://localhost:37079/mcp"
    }
  }
}
localhost:37079/mcp

Enable in-app via Menu → MCP Server. Works with any MCP client (including Cursor & Pi) — no Node.js or Python required.

03 / Install & Highlights

Free, open-source, auto-updating desktop app for macOS and Windows.

Files Plain .mmd & .mermaid — Git-friendly text with Finder / Explorer "Open with"
Desktop Native app — instant preview, offline icons, Vim mode, and auto-save
Privacy 100% Local — architecture diagrams never leave your machine; zero telemetry or accounts
Platforms macOS (Apple Silicon & Intel) & Windows — automatic update checks included
Homebrew (macOS)
$ brew tap m8524769/tap
$ brew install --cask mermaid-code
macOS first-launch note: Because the app is unsigned, open System Settings → Privacy & Security and click Open Anyway — or clear quarantine:
xattr -dr com.apple.quarantine "/Applications/Mermaid Code.app"