by icebird1998
Live MCP control of the visible draw.io canvas for step-by-step scientific illustration in Codex.
# Add to your Claude Code skills
git clone https://github.com/icebird1998/drawio-scientific-illustratorGuides for using mcp servers skills like drawio-scientific-illustrator.
drawio-scientific-illustrator is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by icebird1998. Live MCP control of the visible draw.io canvas for step-by-step scientific illustration in Codex. It has 1,476 GitHub stars.
drawio-scientific-illustrator's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/icebird1998/drawio-scientific-illustrator" and add it to your Claude Code skills directory (see the Installation section above).
drawio-scientific-illustrator is primarily written in JavaScript. It is open-source under icebird1998 on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh drawio-scientific-illustrator against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
[!IMPORTANT] 项目已迁移 / Project migrated
本仓库目前继续保持公开访问,暂不归档或删除,但已停止功能与兼容性更新。后续开发、版本发布和问题修复均已迁移至 scientific-illustrator。建议所有新老用户下载并使用新项目。
推荐下载新项目 / Download the new project: 项目主页 / Project home · 最新版本下载 / Latest release
This repository remains publicly accessible and is not being archived or deleted at this time, but it no longer receives feature or compatibility updates. All future development, releases, and fixes have moved to scientific-illustrator. New and existing users are encouraged to download and use the new project.
中文说明 · English guide · MIT License
A Codex plugin that lets an AI agent draw scientific figures live inside the visible draw.io desktop canvas. You can watch shapes, labels, arrows, styling, and layout appear step by step. The live workflow calls draw.io's own graph API through a localhost-only MCP server; it does not automate the operating-system mouse or keyboard and does not create XML first and merely open it afterward.
Legacy status: this repository remains online for existing users but is no longer updated. Windows was the tested platform for this version. For current development and cross-platform support, use scientific-illustrator.
drawio-live MCP server: launches/connects to the visible draw.io desktop editor and edits its active graph model in real time.drawio-file-utils MCP server: validates saved .drawio documents and exports PNG, SVG, PDF, or JPG deliverables.This is therefore both an MCP implementation and a Codex plugin. MCP provides the callable tools; the plugin is the installable package containing the MCP servers, skill, and presentation metadata.
node when running the MCP servers outside the bundled Codex runtime. Node.js 22 or newer is recommended.The plugin auto-detects common draw.io locations on Windows, macOS, and Linux. For a custom installation, set DRAWIO_PATH to the executable before starting Codex.
Paste this into a Codex task that has terminal access:
Help me install the Codex plugin associated with
https://github.com/icebird1998/drawio-scientific-illustrator.
Before cloning, downloading, registering, or installing anything, tell me that active
development has moved to https://github.com/icebird1998/scientific-illustrator and
recommend the new project. Ask me to choose exactly one option:
1. Install scientific-illustrator (recommended; actively maintained).
2. Continue installing drawio-scientific-illustrator (legacy; no further updates).
Do not perform any installation step until I answer. After I choose, install only the
selected repository: register its root as a Codex marketplace, then install
scientific-illustrator@scientific-illustrator-tools for option 1 or
drawio-scientific-illustrator@drawio-scientific-tools for option 2. Finally tell me
when to restart Codex.
The one-command and manual instructions below intentionally install the legacy plugin and do not ask this question. Use them only after explicitly choosing option 2; otherwise install scientific-illustrator.
Review install.ps1, then run:
$p="$env:TEMP\drawio-scientific-install.ps1"; Invoke-WebRequest https://raw.githubusercontent.com/icebird1998/drawio-scientific-illustrator/main/install.ps1 -OutFile $p; powershell -ExecutionPolicy Bypass -File $p
Review install.sh, then run:
curl -fsSL https://raw.githubusercontent.com/icebird1998/drawio-scientific-illustrator/main/install.sh | bash
Restart Codex and start a new task after installation so the new skill and MCP tools are loaded.
git clone https://github.com/icebird1998/drawio-scientific-illustrator.git
cd drawio-scientific-illustrator
codex plugin marketplace add "$(pwd)"
codex plugin add drawio-scientific-illustrator@drawio-scientific-tools
On PowerShell, replace "$(pwd)" with (Get-Location).Path:
git clone https://github.com/icebird1998/drawio-scientific-illustrator.git
Set-Location drawio-scientific-illustrator
codex plugin marketplace add (Get-Location).Path
codex plugin add drawio-scientific-illustrator@drawio-scientific-tools
Recommended Codex configuration for complex scientific redraws: choose GPT-5.6 Sol and set reasoning effort to Max. In Codex settings, enable the six-level reasoning selector first; the default five-level selector does not show the Max option. This setting can increase response time and token use.
Recommended prompt:
Use Draw.io Scientific Illustrator. Launch the live draw.io canvas and recreate this
reference scientific figure step by step with a 100 ms delay. Control only draw.io's
own graph API; do not use OS mouse/keyboard automation and do not generate XML first.
Keep all labels, arrows, panels, and legends editable. Visually inspect and refine each
section, then save the final .drawio file and export a 2000 px PNG preview.
Chinese prompts work equally well:
使用 Draw.io Scientific Illustrator。启动实时 draw.io,以 100 ms 的步骤间隔重绘
这张参考图。必须直接控制 draw.io 画布,不要使用系统鼠标键盘控制,也不要先生成
XML。文字、箭头、分区和图例都要可编辑;完成后保存 .drawio 并导出 2000 px PNG。
The agent normally uses the tools in this order:
drawio_live_launch — launch or connect to a visible draw.io editor.drawio_live_status — confirm that the graph is ready.drawio_live_add_shape, drawio_live_add_edge, or paced drawio_live_draw_sequence — construct editable content visibly.drawio_live_screenshot — inspect the draw.io renderer after logical sections.drawio_live_inspect and drawio_live_update_cell — correct labels, styles, positions, and sizes.drawio_live_fit — keep the evolving figure in view.drawio_live_save_snapshot — serialize the already-visible graph to .drawio.drawio_validate and drawio_export — validate and export deliverables.Optional environment variables:
| Variable | Purpose | Default |
|---|---|---|
DRAWIO_PATH |
Explicit draw.io executable path | Auto-detected |
DRAWIO_LIVE_PORT |
Preferred localhost debugging port | 9333; a nearby free port is selected when needed |
DRAWIO_LIVE_PROFILE |
Dedicated draw.io/Electron profile directory | ~/.drawio-live-mcp/<port> |
Example on Windows:
$env:DRAWIO_PATH = "D:\Apps\draw.io\draw.io.exe"
This legacy repository no longer receives updates. Install or update scientific-illustrator to receive current features, compatibility improvements, and fixes.
node not found: install Node.js 22+ or make sure the Codex runtime exposes Node to plugin MCP servers.DRAWIO_PATH.DRAWIO_LIVE_PORT to a free port.127.0.0.1, not a public network interface.Draw.io Scientific Illustrator 是一个面向科研插图的 Codex 插件。它会启动桌面版 draw.io,并通过仅限本机的 MCP 通道直接调用 draw.io 自身的图模型 API。你可以亲眼看到形状、文字、箭头、配色和布局按步骤出现在画布上。
它不会模拟系统鼠标或键盘,也不会先生成一个 XML 文件再让 draw.io 打开。只有当可见画布中的图已经绘制完成后,才会把当前图模型保存为 .drawio 文件。
这个仓库同时包含:
drawio-live MCP;drawio-file-utils MCP;