AI Diagram Maker MCP logo

AI Diagram Maker MCP

by erajasekar

MCP server generating software engineering diagrams from text, code, ASCII, images, or Mermaid with inline rendering and editable URLs.

Install AI Diagram Maker MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "erajasekar-ai-diagram-maker-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ai-diagram-maker-mcp@latest"
      ],
      "env": {
        "ADM_API_KEY": "YOUR_VALUE_HERE",
        "ADM_BASE_URL": "YOUR_VALUE_HERE",
        "ADM_DEBUG": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

The install command didn't complete successfully in our automated test.

npx -y ai-diagram-maker-mcp@latest

npm notice npm notice New major version of npm available! 10.1.0 -> 12.0.2 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v12.0.2> npm notice Run `npm install -g npm@12.0.2` to update! npm notice npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/Nothing - Not found npm ERR! 404 npm ERR! 404 'Nothing@*' is not in this registry. npm ERR! 404 This package name is not valid, because npm ERR! 404 1. name can no longer contain capital letters npm ERR! 404

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked 1mo ago.

Overview

This MCP server enables AI agents to create various software engineering diagrams such as flowcharts, sequence diagrams, ERDs, system architecture, and UML from multiple input types including natural language, code, ASCII diagrams, images, and Mermaid syntax. It supports both local stdio and remote HTTP transports, providing inline rendering in chat and URLs for editing diagrams. Use this server when you want to generate and interact with professional diagrams directly within MCP-compatible AI clients.

Use cases

  • Generate flowcharts from plain English descriptions
  • Create sequence diagrams from user stories or code
  • Convert JSON or API schemas into ER diagrams
  • Render system/network architecture diagrams from text
  • Produce UML diagrams from natural language or code snippets

Key features

  • Supports 5 input types: natural language, code, ASCII, images, Mermaid
  • Generates 5 diagram types: flowchart, sequence, ERD, system architecture, UML
  • Inline diagram rendering in chat via MCP Apps UI
  • Provides editable diagram URLs in responses
  • Supports stdio and HTTP/streamable HTTP transports
  • Header-based API key authentication for HTTP

Tools5

What AI Diagram Maker MCP lets your agent do. Expand a tool for its parameters.

Self-reported~118 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

5/5 checks healthy over the last 80d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · ai-diagram-maker-mcp@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars10Stargazers on the source repository.
npm downloads332Package downloads in the last 30 days.
Last commit5mo agoMost recent push to the default branch.
Install checkInconclusiveInstall command did not finish in our automated test.
Tools exposed5Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

From the project README

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

Prerequisites

  1. Node.js 18+
  2. An AI Diagram Maker account and API key

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):

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

Installation

Option A — hosted server (recommended)

Use the remote server JSON example above and wire it into your client using MCP client configuration. No global install.

Option B — run locally with npx

Nothing to install permanently — npx runs the package on demand. The package name is ai-diagram-maker-mcp; append @latest if you want every invocation to resolve the newest release (recommended for one-off runs and claude mcp add).

bash
ADM_API_KEY=your_api_key npx ai-diagram-maker-mcp@latest

MCP client configuration

Cursor

Remote (recommended)

Add to ~/.cursor/mcp.json or Settings → MCP using the remote server JSON example. No environment variables are required for this setup.

Local (stdio)

config.json
{
  "mcpServers": {
    "ai-diagram-maker": {
      "command": "npx",
      "args": ["-y", "ai-diagram-maker-mcp@latest"],
      "env": {
        "ADM_API_KEY": "your_api_key_here"
      }
    }
  }
}

Optional: add "ADM_DEBUG": "1" to env for debug logging — see Environment variables.

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

config.json
{
  "mcpServers": {
    "ai-diagram-maker": {
      "command": "npx",
      "args": ["-y", "ai-diagram-maker-mcp@latest"],
      "env": {
        "ADM_API_KEY": "your_api_key_here"
      }
    }
  }
}

Claude Code

macOS

Terminal
claude mcp add ai-diagram-maker -t stdio -e ADM_API_KEY=<api_key> -- npx -y ai-diagram-maker-mcp@latest

Windows

Terminal
claude mcp add ai-diagram-maker \
  --command "npx" \
  --args "-y,ai-diagram-maker-mcp@latest" \
  --env ADM_API_KEY=your_api_key_here

HTTP transport (local or self-hosted)

To run an HTTP server yourself (same header-based auth as Authentication (HTTP)):

Terminal
npx ai-diagram-maker-mcp@latest --transport http

The server listens on $PORT or 3001. Point clients at /mcp and send the API key with each request using the headers above.

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

Local developer setup

Use these steps to clone the repo, build locally, and run the MCP server with Node.

1. Clone the repository

bash
git clone https://github.com/erajasekar/ai-diagram-maker-mcp.git
cd ai-diagram-maker-mcp

2. Install dependencies

Terminal
npm install

3. (Optional) Regenerate API client

If you change the AI Diagram Maker OpenAPI spec or config, regenerate the client:

Terminal
npm run generate

4. Build

Terminal
npm run build

This compiles TypeScript and builds the MCP app UI into dist/. The server entrypoint is dist/index.js.

5. Run the local MCP server

stdio (default) — for use with Cursor, Claude Desktop, etc.:

bash
ADM_API_KEY=your_api_key node dist/index.js

Or use the npm script:

bash
ADM_API_KEY=your_api_key npm start

HTTP transport — for remote clients or testing (same headers as Authentication (HTTP)):

bash
ADM_API_KEY=your_api_key node dist/index.js --transport http

Or:

bash
ADM_API_KEY=your_api_key npm run start:http

The HTTP server listens on $PORT (default 3001).

6. Use the local server in Cursor

Point Cursor at your built server via Settings → MCP (or ~/.cursor/mcp.json):

config.json
{
  "mcpServers": {
    "ai-diagram-maker": {
      "command": "node",
      "args": ["/absolute/path/to/ai-diagram-maker-mcp/dist/index.js"],
      "env": {
        "ADM_API_KEY": "your_api_key_here"
      }
    }
  }
}

Replace /absolute/path/to/ai-diagram-maker-mcp with the actual path to your cloned repo. After changing the config, restart Cursor or reload the MCP servers.

For debug logging, add "ADM_DEBUG": "1" to env — see Environment variables.

License

MIT

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about AI Diagram Maker MCP

It supports natural language text, code, ASCII diagrams, images, and Mermaid syntax as inputs.

Send your AI Diagram Maker API key in each request header as either 'X-ADM-API-Key' or 'Authorization: Bearer <key>'.

Yes, you can run it locally via stdio or HTTP transport using the provided npx command and your API key.

You can generate flowcharts, sequence diagrams, ER diagrams, system architecture diagrams, and UML diagrams.

Yes, diagrams appear directly in the chat interface using MCP Apps UI without requiring downloads.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAI Diagram Maker MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/erajasekar-ai-diagram-maker-mcp?style=directory)](https://allmcps.com/mcp/erajasekar-ai-diagram-maker-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/erajasekar-ai-diagram-maker-mcp"><img src="https://allmcps.com/api/badge/erajasekar-ai-diagram-maker-mcp?style=directory" alt="AI Diagram Maker MCP on AllMCPs" /></a>