AI Diagram Maker MCP Server
The AI Diagram Maker MCP Server generates professional software engineering diagrams from various inputs directly within AI agents like Cursor or Claude.
Natural language to diagrams — Describe your system, flow, or architecture in plain English to create flowcharts, sequence diagrams, ERDs, system/network architecture, UML, mindmaps, or workflows
JSON to diagrams — Visualize API responses, database schemas, config files, or any structured JSON data
ASCII art to diagrams — Convert text-based ASCII art (box-drawing characters, arrows, etc.) into polished visuals
Images to diagrams — Turn whiteboard photos, screenshots, or hand-drawn sketches (via public URL or base64 data URI) into clean diagrams
Mermaid to D2 diagrams — Convert Mermaid definitions (flowchart, sequenceDiagram, erDiagram, etc.) into D2 format rendered as PNG images
Inline rendering — Diagrams appear directly in the chat interface via MCP Apps UI, no downloads needed
Browser editing — Every generated diagram includes a URL to view and edit it in your browser
Customizable output — Add styling/layout instructions via a
promptparameter; optionally include iconsFlexible deployment — Works via stdio (local) or HTTP/Streamable HTTP (remote), compatible with Cursor, Claude Desktop, and Claude Code
Requires an API key — An AI Diagram Maker account and API key are needed for operation
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.
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
Related MCP server: obscuraai-mcp
Contents
Prerequisites
Node.js 18+
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), orAuthorization: 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"
}
}
}
}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).
ADM_API_KEY=your_api_key npx ai-diagram-maker-mcp@latestMCP 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)
{
"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):
{
"mcpServers": {
"ai-diagram-maker": {
"command": "npx",
"args": ["-y", "ai-diagram-maker-mcp@latest"],
"env": {
"ADM_API_KEY": "your_api_key_here"
}
}
}
}Claude Code
macOS
claude mcp add ai-diagram-maker -t stdio -e ADM_API_KEY=<api_key> -- npx -y ai-diagram-maker-mcp@latestWindows
claude mcp add ai-diagram-maker \
--command "npx" \
--args "-y,ai-diagram-maker-mcp@latest" \
--env ADM_API_KEY=your_api_key_hereHTTP transport (local or self-hosted)
To run an HTTP server yourself (same header-based auth as Authentication (HTTP)):
npx ai-diagram-maker-mcp@latest --transport httpThe server listens on $PORT or 3001. Point clients at /mcp and send the API key with each request using the headers above.
Environment variables
Variable | Required | Default | Description |
| Yes (stdio only) | — | Your AI Diagram Maker API key (stdio transport only; remote HTTP clients use headers — see Authentication (HTTP)) |
| No |
| Override for local/staging API; also used as the base for diagram URLs in tool responses |
| No | — | Set to |
Tools
generate_diagram_from_text
Generate a diagram from a natural language description.
Parameter | Type | Required | Description |
| string | Yes | Natural language description of the diagram |
| enum | No | flowchart, sequence, erd, system_architecture, uml |
| string | No | Additional 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).
Parameter | Type | Required | Description |
| string | Yes | JSON string to visualise |
| string | No | How to interpret the JSON |
| enum | No | Preferred diagram type |
generate_diagram_from_ascii
Convert ASCII art into a polished diagram.
Parameter | Type | Required | Description |
| string | Yes | Raw ASCII art diagram |
| string | No | Rendering instructions |
| enum | No | Preferred diagram type |
generate_diagram_from_image
Convert a whiteboard photo, screenshot, or any image into a clean diagram.
Parameter | Type | Required | Description |
| string | Yes | Public image URL or base64 data URI |
| string | No | What to extract or how to render |
| enum | No | Preferred output diagram type |
generate_diagram_from_mermaid
Convert a Mermaid diagram definition to D2 and return a PNG image.
Parameter | Type | Required | Description |
| string | Yes | Mermaid diagram source (e.g. flowchart, sequenceDiagram, erDiagram) |
| string | No | Optional layout or styling instruction |
| enum | No | Preferred 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
git clone https://github.com/erajasekar/ai-diagram-maker-mcp.git
cd ai-diagram-maker-mcp2. Install dependencies
npm install3. (Optional) Regenerate API client
If you change the AI Diagram Maker OpenAPI spec or config, regenerate the client:
npm run generate4. Build
npm run buildThis 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.:
ADM_API_KEY=your_api_key node dist/index.jsOr use the npm script:
ADM_API_KEY=your_api_key npm startHTTP transport — for remote clients or testing (same headers as Authentication (HTTP)):
ADM_API_KEY=your_api_key node dist/index.js --transport httpOr:
ADM_API_KEY=your_api_key npm run start:httpThe 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):
{
"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
Available Tools
5 toolsgenerate_diagram_from_asciiA
Convert an ASCII art diagram into a polished visual diagram. Use this tool when the user has an existing ASCII art representation of a system, flow, or architecture and wants it rendered as a proper diagram. Accepts box-drawing characters, arrow representations (-->, ==>), and plain text layouts. Returns a link to view and edit the generated diagram in the browser.
Inputs: content (required), prompt, diagramType, isIconEnabled.
generate_diagram_from_imageA
Convert an image (whiteboard photo, screenshot, hand-drawn sketch) into a clean diagram. Use this tool when the user provides an image URL or base64-encoded image and wants it converted to a proper software engineering diagram. Accepts public image URLs or base64 data URIs (data:image/...;base64,...). Returns a link to view and edit the generated diagram in the browser.
Inputs: content (required), prompt, diagramType, isIconEnabled.
generate_diagram_from_jsonA
Generate a diagram from a JSON structure. Use this tool when the user wants to visualise JSON data such as API responses, database schemas, dependency trees, configuration files, or any structured data. Pass the raw JSON string as content. Returns a link to view and edit the generated diagram in the browser.
Inputs: content (required), prompt, diagramType, isIconEnabled.
generate_diagram_from_mermaidA
Convert a Mermaid diagram definition into a D2 diagram and return a PNG image. Use this tool when the user has existing Mermaid code (flowchart, sequenceDiagram, erDiagram, etc.) and wants it converted to D2 or rendered as an image. Pass the Mermaid source as content. Returns a link to view and edit the generated diagram in the browser.
Inputs: content (required), prompt, diagramType, isIconEnabled.
generate_diagram_from_textA
Generate a software engineering diagram from a natural language description. Use this tool when: the user asks to 'create a diagram', 'show me a flowchart', 'visualise the architecture', uses the keyword 'adm' or 'ai diagram maker', or asks for any visual representation of code, systems, processes or data flows. Supported diagram types: flowchart, sequence, ERD, system architecture, network architecture, UML, mindmap, workflow. Returns a link to view and edit the generated diagram in the browser.
Inputs: content (required), diagramType, prompt, isIconEnabled.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose based on the input format: ASCII art, images, JSON, Mermaid code, or natural language text. The descriptions explicitly differentiate when to use each tool, with no overlap in functionality. An agent can easily select the appropriate tool based on the input type provided.
All tool names follow a consistent verb_noun pattern with 'generate_diagram_from_' as the prefix, followed by the specific input source (ascii, image, json, mermaid, text). This creates a predictable and readable naming convention throughout the tool set, making it easy for agents to understand the pattern.
With 5 tools, the server is well-scoped for its purpose of generating diagrams from various input formats. Each tool covers a distinct input type, and the count is neither too sparse nor overwhelming. This number allows comprehensive coverage without unnecessary complexity for the domain of diagram generation.
The tool set provides complete coverage for the server's purpose of generating diagrams from diverse input sources. It supports ASCII art, images, JSON, Mermaid code, and natural language text, covering all common ways users might want to create diagrams. There are no obvious gaps in the input formats supported, ensuring agents can handle a wide range of user requests.
Maintenance
Related MCP Connectors
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Turn calls and notes into process flow diagrams in Claude, ChatGPT, VS Code, Cursor, and Teams.
AI-native mock API server with MCP. Create REST/SOAP mocks from Claude, Cursor, or Windsurf.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI assistants to programmatically create and manage flowcharts, ERDs, and swimlane diagrams. It provides tools for manipulating diagram structures, performing auto-layouts, and exporting to Mermaid or Markdown formats.23 npmMIT
- AlicenseBqualityDmaintenanceMCP server for Claude, ChatGPT, coding agents (cursor, claude code etc), windsurf, etc— generate visual AI automation workflows. Describe a business process, get an interactive flow map you can edit and share.178 npmMIT
- AlicenseAqualityCmaintenanceMCP server for AI-powered image, audio, and video generation, enabling media creation directly from Claude, Cursor, and other MCP clients.1144 npmMIT
- AlicenseAqualityDmaintenanceMCP server for generating diagrams, charts, and visualizations using Gemini image generation on Vertex AI. Supports auto-detection of diagram types, multiple style modes, and iterative refinement.358 npm1MIT