AI Diagram Maker — Claude Code MCP server: install
This MCP server turns text, JSON, ASCII, images, and Mermaid into software diagrams. Use it for architecture, flow, and data-structure sketches.
claude mcp add ai-diagram-maker-mcp -e YOUR_API_KEY=<YOUR_API_KEY> -- npx -y ai-diagram-maker-mcpWhat AI Diagram Maker does
AI Diagram Maker exposes five tools for turning different inputs into diagrams: natural-language descriptions, JSON, ASCII art, images, and Mermaid. It can produce flowcharts, sequence diagrams, ERDs, system-architecture diagrams, and UML. The result may render inside the chat, with a URL for opening and editing the diagram.
The server supports local stdio and remote Streamable HTTP connections. A local setup needs Node.js 18+ plus an AI Diagram Maker account and API key. The key is required for stdio use. Remote HTTP requests send it through a request header instead.
What it helps with
- turn a service description into an architecture diagram
- visualise a JSON database structure
- polish an ASCII sketch into a diagram
- extract a diagram from an image
- convert Mermaid into a PNG image
Example prompts for the agent
- Create a system-architecture diagram from this service description.
- Turn this JSON database schema into an ERD.
- Convert this Mermaid definition and return a PNG image.
How to install AI Diagram Maker
Platform CLI
claude mcp add ai-diagram-maker-mcp -e YOUR_API_KEY=<YOUR_API_KEY> -- npx -y ai-diagram-maker-mcpReplace <…> with your own values
Platform CLI
codex mcp add ai-diagram-maker --env YOUR_API_KEY=<YOUR_API_KEY> -- npx -y ai-diagram-maker-mcpReplace <…> with your own values
Config file
{
"mcpServers": {
"ai-diagram-maker": {
"command": "npx",
"args": [
"-y",
"ai-diagram-maker-mcp"
],
"env": {
"YOUR_API_KEY": "<YOUR_API_KEY>"
}
}
}
}Replace <…> with your own values
Config file
{
"servers": {
"ai-diagram-maker": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"ai-diagram-maker-mcp"
],
"env": {
"YOUR_API_KEY": "<YOUR_API_KEY>"
}
}
}
}Replace <…> with your own values
Platform CLI
gemini mcp add -e YOUR_API_KEY=<YOUR_API_KEY> ai-diagram-maker npx -y ai-diagram-maker-mcpReplace <…> with your own values
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about AI Diagram Maker
How do I install AI Diagram Maker in Claude Code?
Run claude mcp add ai-diagram-maker-mcp -e YOUR_API_KEY=<YOUR_API_KEY> -- npx -y ai-diagram-maker-mcp.
What does AI Diagram Maker do?
It creates software diagrams from text, JSON, ASCII art, images, or Mermaid. Supported outputs include flowcharts, sequence diagrams, ERDs, system-architecture diagrams, and UML.
Which platforms support AI Diagram Maker?
The server is listed for Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, and Gemini CLI.