SuperAPI AI Directory

ai-diagram-maker-mcp

AI Diagram Maker: generate flowcharts, sequence diagrams, ERDs, architecture, UML and mind maps from text, code, ASCII, images or Mermaid, rendered inline.

Open website

About this tool

AI Diagram Maker MCP Server is an MCP (Model Context Protocol) server that lets AI agents generate software engineering diagrams directly in a conversation. Its repository address is https://github.com/erajasekar/ai-diagram-maker-mcp。

Purpose This server enables Cursor, Claude Desktop, Claude Code, or any MCP-compatible AI agent to generate professional software diagrams from plain English descriptions, making it suitable for quickly visualizing system structures, processes, and data models during coding and design.

Main capabilities

  • 5 tools covering all input types: natural language text, code, ASCII diagrams, images, and Mermaid.
  • Inline rendering: diagrams are displayed directly in the chat through the MCP Apps UI, with no download required.
  • Responses include a diagram URL: it can be opened in a browser to view and edit the diagram.
  • 5 diagram types: flowchart, sequence diagram, ERD, system architecture diagram, and UML.
  • Supports both stdio (local) and HTTP/Streamable HTTP (remote) transports.

Specific tools

  1. generate_diagram_from_text: Generates a diagram from a natural language description. Example prompts include creating a microservices architecture with an API gateway, authentication service, user service, and PostgreSQL database; drawing a user login sequence diagram with JWT token generation; and showing the CI/CD pipeline for a Next.js application deployed to Vercel.
  2. generate_diagram_from_json: Converts a JSON structure into a diagram, suitable for API responses, database schemas, configuration files, and more.
  3. generate_diagram_from_ascii: Converts ASCII art into a polished diagram.
  4. generate_diagram_from_image: Converts whiteboard photos, screenshots, or any image into a clean diagram.
  5. generate_diagram_from_mermaid: Converts a Mermaid diagram definition into D2 and returns a PNG image.

Trigger method When users use phrases such as the following, the AI agent automatically selects the correct tool: "ai diagram maker ...", "create a diagram of ...", "show me a flowchart / sequence diagram / ERD / architecture ...", "visualise / draw / diagram ...".

Usage Hosted server (recommended, no installation required):

  • The public MCP endpoint is https://mcp.aidiagrammaker.com/mcp(Streamable HTTP).
  • Authentication (HTTP): Remote HTTP clients must send the API Key in every request, rather than via environment variables. You can use the request header X-ADM-API-Key: <your_api_key> (recommended), or Authorization: Bearer <your_api_key>. The API Key comes from your AI Diagram Maker account.
  • Merge the remote server JSON example into the client's MCP configuration to use it.

Local run (npx):

  • No permanent installation is needed; npx runs the package on demand. The package name is ai-diagram-maker-mcp; if you need to resolve the latest version each time, you can append @latest (recommended for one-off runs and claude mcp add).
  • Add it to ~/.cursor/mcp.json or Settings → MCP. This setup requires no environment variables.
  • Optional: add "ADM_DEBUG": "1" in env to enable debug logs.
  • Claude Desktop configuration: on macOS, add it to ~/Library/Application Support/Claude/claude_desktop_config.json; on Windows, add it to %APPDATA%\Claude\claude_desktop_config.json.

Set up HTTP transport yourself (local or self-hosted):

  • Uses the same header-based authentication as HTTP authentication.
  • The server listens on $PORT or 3001, and the client points to /mcp and sends the API Key in every request via the headers above.

Local developer setup steps (build from source):

  1. Clone the repository.
  2. Install dependencies.
  3. (Optional) Regenerate the API client: if you changed the AI Diagram Maker OpenAPI specification or configuration, regenerate the client.
  4. Build: compile TypeScript and build the MCP app UI into the dist/ directory; the server entry point is dist/index.js.
  5. Run the local MCP server: stdio (default, for Cursor, Claude Desktop, etc.) or use npm scripts; HTTP transport is for remote clients or testing (same request headers as HTTP authentication); the HTTP server listens on $PORT (default 3001).
  6. Use the local server in Cursor: point Cursor to the built server via Settings → MCP (or ~/.cursor/mcp.json), replacing /absolute/path/to/ai-diagram-maker-mcp with the actual cloned repository path. After changing the configuration, restart Cursor or reload the MCP server. For debug logs, you can add "ADM_DEBUG": "1".

Environment Variables The material mentions an Environment Variables section, but aside from ADM_DEBUG for debug logs, no other specific environment variables are listed, so no further details are provided for now.

Use Cases

  • Quickly draw architecture diagrams, flowcharts, sequence diagrams, ERDs, and UML in AI coding agent conversations.
  • Convert existing JSON, ASCII diagrams, images, or Mermaid definitions into standardized diagrams.
  • In team collaboration, view and edit diagrams in the browser via diagram URLs.

Limitations

  • Requires an AI Diagram Maker account and API Key.
  • Remote HTTP clients must carry the API Key in every request and cannot rely on environment variables.
  • The specific environment variable list, pricing information, and more usage limitations are not provided for now.