yohasacura avatar

Drawio Mcp

yohasacura/drawio-mcp

A programmatic interface to draw.io's XML format that exposes diagram lifecycle, drawing, styling, layout, and inspection tools through MCP. You get 310+ shape presets spanning flowcharts, UML, C4, ER, BPMN, and cloud architectures, plus auto-layout engines like Sugiyama DAG and orthogonal routing with obstacle avoidance. Works with Claude Desktop, GitHub Copilot agent mode, and Cursor. The polish action is the standout: one call fixes overlaps, reroutes edges, and cleans up labels automatically. Ships with 44 edge styles and 21 color themes. If you need your LLM to generate or modify technical diagrams that open cleanly in draw.io without manual cleanup, this handles the geometry and styling mechanics so prompts like "make a Kubernetes deployment diagram" actually produce usable output.

GitHub stars
5
tool
1
transport
STDIO
last updated
Feb 9, 2026

Tools

1 tools

Public tool metadata for what this MCP can expose to an agent.

create_diagramCreates and displays an interactive draw.io diagram. Pass draw.io XML (mxGraphModel format) to render it inline. IMPORTANT: The XML must be well-formed. Do NOT use double hyphens (--) inside XML comments, as this is invalid XML and will break the parser. Use single hyphens or...1 params

Creates and displays an interactive draw.io diagram. Pass draw.io XML (mxGraphModel format) to render it inline. IMPORTANT: The XML must be well-formed. Do NOT use double hyphens (--) inside XML comments, as this is invalid XML and will break the parser. Use single hyphens or...

Parameters* required
xmlstring
The draw.io XML content in mxGraphModel format to render as a diagram. Must be well-formed XML: no double hyphens (--) inside comments, no unescaped special characters in attribute values.

Sponsors

Readme

🎨 Draw.io MCP Server

CI PyPI Python License: MIT

Let your AI assistant create beautiful draw.io diagrams — just describe what you want.

An MCP server that generates draw.io / diagrams.net XML files programmatically. Works with GitHub Copilot (agent mode), Claude Desktop, Cursor, and any MCP-compatible client.


✨ What Can It Do?


View the full README on GitHub

Details

Repository
github.com/yohasacura/drawio-mcp
Category
Data & Analytics
Package
drawio-mcp
Transport
STDIO
Registry
MCP registry, active

Related Data & Analytics MCP servers

View all
1coinversaa avatarMcp Servercoinversaa/mcp-serverCrypto intelligence for AI agents. Hyperliquid trader analytics, cohorts, and live market data.0stars
2cyanheads avatarOpenfda Mcp Servercyanheads/openfda-mcp-serverQuery FDA data on drugs, food, devices, and recalls via openFDA. STDIO or Streamable HTTP.4stars
3cyanheads avatarSocrata Mcp Servercyanheads/socrata-mcp-serverSearch and query government open-data portals (Socrata SODA API).4stars
4coinrithm avatarCoinRithm Agent Tradingcoinrithm/coinrithm-agent-tradingKeyless prediction-market data across 12 venues plus paper-trading of crypto spot, futures, and PM.4stars
5egulatee avatarCodecovegulatee/mcp-server-codecovMCP server for querying Codecov coverage data with configurable URL support4stars
6isakskogstad avatarOECD MCP Serverisakskogstad/oecd-mcp-serverOECD economic and statistical data via SDMX API. Access 5,000+ datasets across 17 categories.4stars