Labsco
MCP SERVER

AI Diagram Maker MCP

by erajasekar

Turn a description, a JSON blob, an ASCII sketch, a whiteboard photo or a Mermaid file into a diagram you can open and edit in the browser.

Diagrams & ChartsVerified
Summary
The five tools differ only in what you hand them: the same content, diagramType, prompt and isIconEnabled go in, and a link to the drawn diagram comes back.

That uniformity is the useful part — the input format stops being a decision about which API to learn and becomes an argument. There is no editing, layout or re-render tool here, so a diagram that comes back wrong is revised in the browser page the call returns rather than through a second call. generate_diagram_from_mermaid is the odd member: it changes notation rather than medium, taking Mermaid source to D2 and returning a PNG.

What it is

A diagram generator split by input format — natural-language description, JSON structure, ASCII art, image or Mermaid source — returning a link to view and edit the generated diagram in the browser.

What you get
  • generate_diagram_from_text draws from a natural-language description of code, systems, processes or data flows, with diagramType selecting the form: flowchart, sequence, ERD, system architecture and network architecture are among those supported.
  • generate_diagram_from_json takes a raw JSON string as content and renders structured data directly — API responses, database schemas, dependency trees, configuration files.
  • generate_diagram_from_ascii accepts box-drawing characters, arrow forms such as --> and ==>, and plain text layouts, and returns them as a drawn diagram.
  • generate_diagram_from_image converts a whiteboard photo, screenshot or hand-drawn sketch, supplied as a public image URL or a base64 data URI.
  • generate_diagram_from_mermaid converts existing Mermaid source into a D2 diagram and returns a PNG image.
  • Every call takes the same arguments whatever the input format — content, diagramType, prompt and isIconEnabled — so switching source material does not mean rewriting the call.
Requirements

An AI Diagram Maker API key, supplied as ADM_API_KEY. Images have to arrive as a public URL or an inline base64 data URI, so a local screenshot needs to be encoded or hosted first.

Setup effort

One command plus a key — ADM_API_KEY=your_api_key npx ai-diagram-maker-mcp@latest, then supply credentials