Agent Canvas
⚡ Agentic AI Diagram Studio · Chat · Draw · Visualize

Turn natural language into
polished draw.io diagrams

Chat with AI to plan, render, validate and iteratively refine diagrams — with orthogonal edges, grid-aligned layouts and consistent fonts and colors. Fully compatible with draw.io.

⭐ Star on GitHub Read the Docs
Apache 2.0 License 25+ AI Providers MCP Server Ready

Features

Everything you need to go from idea to professional diagram

💬

Chat-to-Diagram

Describe what you want in natural language — the agent plans the layout, renders draw.io XML, and streams it to your canvas in real time.

💡

Refine in one click

Align elements, tidy edges, and apply consistent fonts and colors to any diagram without ever changing its structure or meaning.

📝

Summarize & Export docs

Ask for a concise summary of the current diagram, or export a full Markdown documentation page describing components and flows.

🖼️

Image & PDF uploads

Upload an existing diagram, image, PDF, or text file and let the AI replicate, extract, and enhance the content automatically.

📐

Grid & edge polish

Server-side post-processing snaps near-grid coordinates to a 10px grid and removes messy curved edges in favor of clean orthogonal routing.

🔐

BYOK & self-hosted TLS

Bring your own API key — or disable TLS verification for internal HTTPS endpoints. Keys live in your browser, never on the server.

🔁

Diagram history

Full version control of every edit. View, compare, and restore any previous state before the AI touched your work.

🛰️

Cloud architecture

Specialized support for AWS, GCP, and Azure diagram generation using model-native cloud icon knowledge.

MCP for agents

Expose the canvas to Claude Desktop, Cursor, VS Code and your own agents through a first-class MCP server.

Live examples

Real diagrams generated from a single prompted description

RAG architecture diagram
“Generate a RAG architecture diagram for a chat application”
React + AWS auth diagram
“Generate an authentication process using React with AWS”
AWS cloud architecture diagram
“AWS serverless architecture diagram”
Azure architecture diagram
“Azure cloud architecture diagram”
GCP architecture diagram
“GCP cloud architecture diagram”
Animated connectors diagram
“An animated connector diagram of a transformer’s architecture”

25+ AI providers

Bring your own key — or configure server-side multi-model settings with the admin panel

AWS BedrockOpenAIAnthropic Google AIVertex AIAzure OpenAI OllamaOpenRouterAIHubMix DeepSeekSiliconFlowModelScope SGLangVercel AI GatewayEdgeOne GLMQwenMiniMaxMiMo GroqMistralxAIDoubao and more…

MCP Server

Let any AI agent draw to your canvas

{ "mcpServers": {
    "drawio": {
      "command": "npx",
      "args": ["@agentcanvas/mcp-server@latest"]
    }
} }

Then ask: “Create a flowchart showing user auth with MFA”  →  the diagram appears in your browser in real time.