drawio-mcp
Local Draw.io MCP
ローカル STDIO MCP サービス。Codex が編集可能な draw.io XML ファイルを直接作成・維持できるようにします。
ツール
server_info:バージョンとアクセスを許可されたディレクトリを表示します。create_diagram:グループ、ノード、エッジに基づいて.drawioを作成します。inspect_diagram:最初のページのノード、エッジ、ジオメトリ情報を読み取ります。validate_diagram:重複 ID、無効な座標、範囲外、無効なエッジ、ノードの重なりをチェックします。update_diagram:ノード/エッジを追加したり、既存のノードを変更します。
ファイル内のテキストはデータとしてのみ処理され、MCP の指示として実行されることはありません。
Related MCP server: Draw.io MCP Server
ローカルでの実行
npm install
npm test
npm startnpm start は STDIO を使用し、正常に起動すると MCP クライアントの接続を待機します。対話型の画面は表示されません。
Codex への接続
Codex デスクトップ版で「設定 → MCP servers → Add server」を開き、STDIO を選択して、次の項目を入力します:
Command:
C:\Program Files\nodejs\node.exeArguments:このプロジェクトの
src\server.mjsの絶対パスWorking directory:このプロジェクトのディレクトリ
config.example.toml の内容を ~/.codex/config.toml にコピーし、パスを書き換えてから Codex を再起動することもできます。
Codex CLI では次を実行します:
codex mcp listセッションの入力欄では /mcp を使用して接続状態を確認できます。
パス制限
アクセス範囲は以下の環境変数で制御します。Windows では複数のディレクトリをセミコロンで区切ります:
DRAWIO_MCP_READ_ROOTSDRAWIO_MCP_WRITE_ROOTS
未設定の場合、アクセスできるのはこの MCP プロジェクトのディレクトリのみです。プロジェクトのワークスペースだけを開放し、ディスク全体を書き込み可能に設定しないことを推奨します。
呼び出し例
接続後、Codex に次のように指示できます:
drawio MCP を使用して、データプラットフォーム層、アラートエンジン層、レスポンスフィードバック層を含む
主动预警系统.drawioを作成し、完了後にvalidate_diagramを実行して検証してください。
作成ツールはデフォルトでは既存ファイルを上書きしません。上書きする必要がある場合は、明示的に overwrite=true を渡してください。
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
- AlicenseNot gradedqualityDmaintenanceEnables programmatic creation and management of draw.io diagrams through MCP tools. Supports building architecture diagrams, flowcharts, and visualizations with stateless operations that generate VSCode-compatible .drawio.svg files.74Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to create and edit draw.io diagrams programmatically, supporting a wide range of diagram types and styles.5MIT
- AlicenseNot gradedqualityBmaintenanceEnables creating and editing draw.io diagrams from structured descriptions, rendering them as interactive inline SVGs, and providing access to the full draw.io editor for further modification and export.970MIT
- FlicenseAqualityBmaintenanceEnables local Draw.io diagram creation, editing, and export via MCP tools, using the desktop app.52
Related MCP Connectors
Create, validate, edit, export (markdown/svg/png/mermaid), and search JSON Canvas files.
Create diagrams in chat, rendered as live interactive draw.io diagrams. 10,000+ searchable shapes.
Generate cloud architecture diagrams, flowcharts, and sequence diagrams.
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/k26k26/drawio-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server