Labsco
erajasekar logo

Rierino Documentation

from erajasekar

GitBook documentation for Rierino - a low-code microservices and AI agent development platform.

πŸ”₯πŸ”₯FreeQuick setup

AI Diagram Maker MCP Server

MCP server for AI Diagram Maker β€” generate beautiful software engineering diagrams directly inside Cursor, Claude Desktop, Claude Code, or any MCP-compatible AI agent.

  • ai-diagram-maker-mcp 🌐 ☁️ - Generate professional software diagrams from plain English descriptions. erajasekar/ai-diagram-maker-mcp MCP server

Features

  • 5 tools covering every input type: natural language text, code, ASCII diagram, images, and Mermaid
  • Inline rendering β€” diagrams appear directly in the chat using MCP Apps UI, no downloads
  • Diagram URL in responses β€” open it in your browser to view and edit the diagram
  • 5 diagram types: flowchart, sequence, ERD, system architecture, UML
  • Supports both stdio (local) and HTTP/Streamable HTTP (remote) transports

Contents

Hosted MCP server

The public MCP endpoint is https://mcp.aidiagrammaker.com/mcp (Streamable HTTP). Nothing to install for this option.

Authentication (HTTP)

For remote HTTP clients, send your API key on every request β€” not via environment variables:

  • X-ADM-API-Key: <your_api_key> (recommended), or
  • Authorization: Bearer <your_api_key>

Use the API key from your AI Diagram Maker account (see Prerequisites).

Remote server JSON example

Merge this into your client’s MCP config (replace the API key placeholder):

{
  "mcpServers": {
    "ai-diagram-maker": {
      "url": "https://mcp.aidiagrammaker.com/mcp",
      "headers": {
        "X-ADM-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Environment variables

VariableRequiredDefaultDescription
ADM_API_KEYYes (stdio only)β€”Your AI Diagram Maker API key (stdio transport only; remote HTTP clients use headers β€” see Authentication (HTTP))
ADM_BASE_URLNohttps://app.aidiagrammaker.comOverride for local/staging API; also used as the base for diagram URLs in tool responses
ADM_DEBUGNoβ€”Set to 1, true, or yes to log request parameters from the AI agent and the payload sent to the AI Diagram Maker API. Logs go to stderr. In Cursor, open Output, choose the MCP or ai-diagram-maker channel to read the server logs.

Tools

generate_diagram_from_text

Generate a diagram from a natural language description.

ParameterTypeRequiredDescription
contentstringYesNatural language description of the diagram
diagramTypeenumNoflowchart, sequence, erd, system_architecture, uml
promptstringNoAdditional styling/layout instruction

Example prompts:

  • "Create a microservices architecture with API gateway, auth service, user service, and PostgreSQL database"
  • "Draw a sequence diagram for user login flow with JWT token generation"
  • "adm show the CI/CD pipeline for a Next.js app deployed to Vercel"

generate_diagram_from_json

Convert a JSON structure into a diagram (great for API responses, database schemas, config files).

ParameterTypeRequiredDescription
contentstringYesJSON string to visualise
promptstringNoHow to interpret the JSON
diagramTypeenumNoPreferred diagram type

generate_diagram_from_ascii

Convert ASCII art into a polished diagram.

ParameterTypeRequiredDescription
contentstringYesRaw ASCII art diagram
promptstringNoRendering instructions
diagramTypeenumNoPreferred diagram type

generate_diagram_from_image

Convert a whiteboard photo, screenshot, or any image into a clean diagram.

ParameterTypeRequiredDescription
contentstringYesPublic image URL or base64 data URI
promptstringNoWhat to extract or how to render
diagramTypeenumNoPreferred output diagram type

generate_diagram_from_mermaid

Convert a Mermaid diagram definition to D2 and return a PNG image.

ParameterTypeRequiredDescription
contentstringYesMermaid diagram source (e.g. flowchart, sequenceDiagram, erDiagram)
promptstringNoOptional layout or styling instruction
diagramTypeenumNoPreferred diagram type for the converted output

Trigger keywords

The AI agent will automatically select the right tool when you use phrases like:

  • adm ...
  • ai diagram maker ...
  • create a diagram of ...
  • show me a flowchart / sequence diagram / ERD / architecture ...
  • visualise / draw / diagram ...