excalidraw-diagram-agent
Generates editable Excalidraw diagrams from system descriptions, producing .excalidraw files with bound text labels and arrows that remain attached when elements are moved.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@excalidraw-diagram-agentDraw me a diagram of a typical 3-tier web app: client, API server, database"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Built as a portfolio project proving MCP breadth beyond data-query tools: this server takes a described system and produces a real, editable diagram file — not a data lookup, a generative/creative tool exposed the same way as the data-query MCP server in this portfolio.
excalidraw-diagram-agent
An MCP server that turns a described system into a real, editable
.excalidraw diagram file. Describe an architecture in Claude Desktop
("draw me a diagram of a client talking to an API gateway, which routes to
an auth service and an order service, both writing to Postgres") and get
back a file you can open and keep editing in Excalidraw.
What's here
layout.py— a simple layered graph layout (no external graph library): positions nodes left-to-right by distance from a root, stacked vertically within each layer.excalidraw_gen.py— builds valid.excalidrawJSON: rectangles with properly bound text labels (they move together in the editor) and arrows with realstartBinding/endBinding(they stay attached when you drag a box) — not just static lines dropped at fixed coordinates.server.py— the MCP server, one tool:generate_diagram(title, nodes, edges).requirements.txt— one dependency, pinned.
Related MCP server: Excalidraw MCP Server
1. Setup
cd excalidraw-diagram-agent
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt2. Test it standalone (no Claude needed yet)
python3 -c "
from server import generate_diagram
print(generate_diagram(
title='Order Processing System',
nodes=[
{'id': 'client', 'label': 'Web Client'},
{'id': 'gateway', 'label': 'API Gateway'},
{'id': 'auth', 'label': 'Auth Service'},
{'id': 'orders', 'label': 'Order Service'},
{'id': 'db', 'label': 'Postgres DB'},
],
edges=[
{'from': 'client', 'to': 'gateway'},
{'from': 'gateway', 'to': 'auth'},
{'from': 'gateway', 'to': 'orders'},
{'from': 'auth', 'to': 'db'},
{'from': 'orders', 'to': 'db'},
],
))
"Should print a confirmation with the file path. Open the generated file at
excalidraw.com (File > Open, or just drag the .excalidraw file onto
the page) to see the actual diagram.
3. Connect it to Claude Desktop
Same pattern as the rental-data MCP server (project 1) — add a second
entry to the same config file, ~/Library/Application Support/Claude/claude_desktop_config.json,
alongside your existing mcpServers block:
"diagram-agent": {
"command": "/absolute/path/to/excalidraw-diagram-agent/venv/bin/python3",
"args": ["/absolute/path/to/excalidraw-diagram-agent/server.py"]
}(Both servers can live in the same mcpServers object — don't replace
rental-data, add diagram-agent next to it.) Fully quit and reopen
Claude Desktop, then check Settings > Developer to confirm both show as
running.
4. Demo prompts
"Draw me a diagram of a typical 3-tier web app: client, API server, database"
"Diagram a CI/CD pipeline: developer pushes to Git, triggers a build, runs tests, then deploys to staging and production"
"Show me an event-driven architecture with a producer, a message queue, and two consumers"
Claude will figure out the nodes and edges from your description and call the tool — you're not writing the JSON yourself, that's the point. Open the resulting file at excalidraw.com to show it's a real, editable diagram, not a static image.
Architecture notes
Why a real Excalidraw file, not just a picture: an LLM could describe a diagram in words, or even generate an SVG. Producing an actual
.excalidrawfile with correct element bindings means the output is a genuine editable artifact — drag a box, the arrows and label follow. That's a meaningfully different (and harder) target than a static image.Layout: intentionally simple (layered left-to-right) rather than a general-purpose graph layout library — sufficient for the kind of system/architecture diagrams this tool is aimed at, and keeps the dependency list at just the MCP SDK.
Validation:
server.pychecks that every edge references a real node id before generating anything, returning a clear error instead of producing a broken file.
Repo structure
excalidraw-diagram-agent/
├── README.md
├── requirements.txt
├── layout.py
├── excalidraw_gen.py
├── server.py
└── outputs/ (generated .excalidraw files, gitignored)This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables creation, management, and export of Excalidraw drawings through natural language. Supports CRUD operations on drawings and export to SVG, PNG, and JSON formats with file-based storage.82,214The Unlicense
- FlicenseAqualityBmaintenanceGenerates beautiful Excalidraw diagrams from natural language descriptions using a local llama.cpp LLM, entirely offline.3
- AlicenseAqualityCmaintenanceGenerates Excalidraw architecture diagrams with support for 60+ components including GCP, Kafka, and AI/Agentic shapes. Provides MCP tools for creating, modifying, and converting diagrams from structured input or Mermaid syntax.41MIT
- AlicenseAqualityCmaintenanceGenerates professional architecture diagrams from natural language descriptions using template-driven prompts and swappable AI image providers.71MIT
Related MCP Connectors
Generate cloud architecture diagrams, flowcharts, and sequence diagrams.
Generate dynamic Mermaid diagrams and charts with AI assistance. Customize styles and export diagr…
AI agent draws editable hand-drawn diagrams (flowchart, ER, architecture) via MCP, not static images
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/CharanyaPonnala/excalidraw-diagram-agent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server