Skip to content

The smartest way to author Mermaid diagrams

Write Mermaid.js diagrams with deep language support, or edit them directly in the live preview, all in your JetBrains IDE. Your coding agent gets the same parser, inspections, and renderer through MCP, whether it uses a hosted model or a local one.

30-day Studio trial. Or install the free edition.

36k installs

on JetBrains Marketplace
Mermaid Studio in IntelliJ IDEA with a themed flowchart in Edit Mode, its release node selected and styled from the Element Style pane

Actually treat your diagrams as code

Most Mermaid.js editors stop at highlighting and a preview. Mermaid Studio parses diagrams into their nodes, references, and relationships, so completion, refactoring, and inspections work the way they do in your code.

  1. Contextual code completion

    Suggestions draw on the diagram you're writing and where the caret sits, so you see only what's valid there, including the nodes and classes you've already defined.

    Completion popup on a new flowchart edge listing matching nodes with their labels
  2. Inspections and quick‑fixes

    Diagram-specific inspections catch mistakes a syntax check misses, and quick-fixes resolve them in place.

    Gantt chart inspection flagging a date that does not match the declared dateFormat, with a quick-fix to convert it
  3. Rename refactoring

    Rename a node, class, or subgraph, and Mermaid Studio updates every reference in the diagram. You can restructure a large diagram without find and replace.

    In-place rename of a sequence diagram participant with every occurrence highlighted
  4. Find Usages and navigation

    Go to Declaration and Find Usages work on nodes, classes, and entities, so you can find your way around a 200-line diagram.

    Show Usages popup listing every reference to a class in a class diagram
  5. Highlighting and formatting

    Semantic highlighting colors each part of the diagram by its role, and Reformat Code applies formatting built around the diagram's structure, so the source reads clearly as it grows.

    Semantic highlighting and aligned relationship and attribute columns in an entity relationship diagram beside its preview
Completion popup on a new flowchart edge listing matching nodes with their labelsGantt chart inspection flagging a date that does not match the declared dateFormat, with a quick-fix to convert itIn-place rename of a sequence diagram participant with every occurrence highlightedShow Usages popup listing every reference to a class in a class diagramSemantic highlighting and aligned relationship and attribute columns in an entity relationship diagram beside its preview

Edit diagrams directly in the preview

Fixing a layout in text is a cycle of editing, re-rendering, and repeating. Switch the live preview to Edit Mode and work on flowcharts and other supported diagrams directly: add nodes, drag to connect them, and restyle any element from the Element Style pane. Each change becomes a targeted edit to your source that keeps your comments and formatting intact.

Explore visual editing
The rendered flowchart: Users to a load balancer to API servers, which feed a cache and a database, inside a VPC

Better diagrams from your coding agent

Coding agents write Mermaid.js from their training data, so they invent syntax, guess at icon names, and never see the diagram they produced. Mermaid Studio's MCP tools give your agent the parser, inspections, icon index, and renderer the IDE uses, so it can validate its output and review the render before handing it back to you.

The problem is worst for newer diagram types, which barely appear in any model's training data. The syntax guides are bundled with the plugin and validation runs inside your IDE, so any MCP-capable agent can check its work against them, whether it uses a hosted model or a local one. With a local model, the whole loop works offline.

Set up MCP tools

Beautiful light and dark themes for your diagrams

Mermaid Studio ships eight bundled themes, each with matched light and dark variants, or you can generate a branded one from a single seed color. The theme is written into your diagram as plain Mermaid.js frontmatter, so it looks the same wherever Mermaid.js renders it.

Try every paid feature free for 30 days

Install the Mermaid Studio plugin for code intelligence, visual editing, MCP tools for coding agents, and advanced styling.

Start 30-day trial

Style, export, and embed

Every native Mermaid.js diagram type in every JetBrains IDE

Mermaid Studio supports everything from flowcharts and sequence diagrams to Wardley maps and Ishikawa diagrams, and the feature matrix shows what each type supports. Android Studio is supported from Quail 2026.1. New to IntelliJ? Start with the setup guide.

JetBrains and the JetBrains IDE logos are trademarks of JetBrains s.r.o.

Choose your depth. Every diagram type is included.

Free covers highlighting, live preview, and export for every type. Core adds code intelligence for the six core diagram types, along with paid tools such as MCP tools, visual editing, and custom themes. Studio extends that language support to every diagram type, free for 30 days. Free and Core are part of the separate Mermaid Studio Core plugin.

Start diagramming
with intelligence