Skip to content

Add drawio MCP usage sample - #18

Draft
pollenjp wants to merge 2 commits into
mainfrom
claude/drawio-mcp-sample-L3W6B
Draft

Add drawio MCP usage sample#18
pollenjp wants to merge 2 commits into
mainfrom
claude/drawio-mcp-sample-L3W6B

Conversation

@pollenjp

@pollenjp pollenjp commented May 9, 2026

Copy link
Copy Markdown
Member

Summary

drawio-mcp-sample-2026-05-09/ 配下に、公式 jgraph/drawio-mcp の MCP Tool Server (@drawio/mcp) を Claude Code / Claude Desktop から使うためのサンプル一式を追加。

  • README.md: drawio MCP の概要、提供される 3 ツール (open_drawio_xml / open_drawio_csv / open_drawio_mermaid)、セットアップ手順
  • config/: Claude Code / Claude Desktop それぞれの mcpServers 設定 JSON
  • examples/: XML / CSV / Mermaid (sequence, flowchart) の入力サンプル
  • prompts.md: 各ツールを呼ばせるためのプロンプト例

Test plan

  • npx -y @drawio/mcp が起動することを確認
  • Claude Code に config/claude-code.mcp.json の設定でサーバ登録 (claude mcp add drawio -- npx -y @drawio/mcp)
  • prompts.md の各プロンプトを投げて examples/* がブラウザで draw.io 上に開くことを確認

Generated by Claude Code

claude added 2 commits May 9, 2026 12:19
Sample setup and example inputs (XML/CSV/Mermaid) for using the official
@drawio/mcp tool server from Claude Code / Claude Desktop, so the workflow
of feeding diagram source to AI and opening it in draw.io can be tried
quickly.
@drawio/mcp's open_drawio_* tools only return an editor URL — they do not
export. Add a small Node script that renders mxfile XML to a `.drawio.svg`
(SVG with the original mxfile embedded in the `content` attribute), which
is the format draw.io recognizes as an editable diagram. Commit the
generated architecture.drawio.svg as a worked example.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants