uml-mcp

Diagram Assistant

The Diagram Assistant is the set of MCP tools, resources, and prompts that help users generate and understand UML and other diagrams. This page describes four example user prompts and how the server satisfies them.

Example prompts and behavior

User prompt Desired behavior Tools Resources
“Show me a Mermaid sequence diagram for an API call” Return valid Mermaid sequenceDiagram (client → API → backend) and optionally call generate_uml("mermaid", code). generate_uml uml://examples (mermaid), uml://mermaid-examples (sequence_api)
“Generate a Gantt chart using Mermaid syntax” Return valid Mermaid gantt block and optionally call generate_uml("mermaid", code). generate_uml uml://mermaid-examples (gantt), uml://templates
“Explain how to draw a BPMN process model” Return concise guidance (elements, flow, BPMN 2.0.2 alignment) and optionally point to BPMN template/example. generate_bpmn_diagram, generate_uml uml://bpmn-guide, uml://templates (bpmn)
“Convert this class diagram into Mermaid code” Take PlantUML or description and output Mermaid classDiagram; optionally call generate_uml("mermaid", code). generate_uml uml://templates, uml://examples

Tools

Resources

Prompts

Registered prompts that support the four scenarios above:

Other diagram prompts (e.g. class_diagram, sequence_diagram, uml_diagram_with_thinking) remain available for general UML generation.

Supported diagram types

The server supports (among others): class, sequence, activity, usecase, state, component, deployment, object, mermaid, d2, graphviz, erd, blockdiag, packetdiag, bpmn, c4plantuml. See uml://types for the full list and descriptions.

Reference