CorelDRAW Live MCP
Enables control of an already open CorelDRAW document via MCP, with live editing, atomic undo, and safe coordinate-based operations. Supports Windows-only COM automation and integrates with desktop AI clients like Claude Desktop.
README
CorelDRAW Live MCP
Control the exact document already open in CorelDRAW through the Model Context Protocol. Version 0.2.2 focuses on safe live editing, predictable coordinates, atomic undo, and cross-model reliability.
Windows-only: CorelDRAW automation uses the local COM API. The MCP server must run on the same Windows computer as CorelDRAW.
Supported usage scope: This project is intended only for desktop applications and local CLI agents that support user-configured/custom MCP servers—for example Claude Desktop and compatible desktop/CLI clients such as Antigravity. It is not designed for browser-only AI websites that cannot start or connect to a local custom MCP server. A desktop ChatGPT client is supported only when that specific app/version provides custom local MCP configuration.
What changed in 0.2.2
- Attaches to an existing CorelDRAW process by default; it will not silently launch a second instance.
- Binds every edit to an explicit document session.
- Uses one public coordinate system: page top-left, Y downward, millimetres.
- Applies related changes atomically as one CorelDRAW Undo command.
- Detects both stale agent revisions and external document changes before editing.
- Prevents preview/export from overwriting files unless
overwrite=true. - Keeps hidden and non-printable layers unchanged during preview and export.
- Lazily reconnects when CorelDRAW starts after the MCP server.
- Separates live edit, create, save, Save As, preview, and export.
- Exposes a compact 14-tool MCP catalog instead of 70+ overlapping tools.
- Fixes nested COM-thread deadlocks and double Y-coordinate conversion.
See the phased implementation document for completed and planned phases. Use the manual Windows/CorelDRAW test plan before production use.
Requirements
- Windows 10/11
- CorelDRAW X6 or newer; certify your exact version before production use
- 64-bit Python 3.11–3.13 recommended
- Python bitness matching CorelDRAW
Install
py -3.12 -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
pip install -r requirements.txt
Optional features are separate so MCP-only users do not install heavy agent and data-processing packages:
pip install ".[agent]" # Streamlit + bundled LLM agent
pip install ".[datamerge]" # Excel, barcode and image helpers
pip install ".[https]" # Optional local HTTPS wrapper
pip install ".[all]" # Everything
Start CorelDRAW and open the document you want to edit before starting the server.
$env:COREL_ATTACH_POLICY = "existing_only"
python server\server.py --transport stdio
MCP client configuration
Replace the two example paths with paths on the user's computer.
{
"mcpServers": {
"coreldraw-live": {
"command": "C:\\path\\to\\coreldraw-mcp\\.venv\\Scripts\\python.exe",
"args": [
"C:\\path\\to\\coreldraw-mcp\\server\\server.py",
"--transport",
"stdio"
],
"env": {
"PYTHONUNBUFFERED": "1",
"COREL_ATTACH_POLICY": "existing_only",
"COREL_TOOL_PROFILE": "compact"
}
}
}
}
This local stdio configuration is intended for desktop applications and local CLI agents that support custom MCP servers, including Claude Desktop, Claude Code, Antigravity-compatible CLI environments, Gemini CLI, Cursor, and VS Code.
A desktop ChatGPT app should be treated as compatible only if its installed version supports adding and running a custom local MCP server. Browser-only ChatGPT and other web-only AI interfaces are outside the supported scope because they cannot directly run this local stdio process.
Safe live-edit workflow
corel_statuslist_open_documentsattach_active_documentorattach_open_documentinspect_documentapply_operationsusing the returned revisionrender_previewwhen visual verification is neededsave_current_documentonly when explicitly requesteddetach_document
attach_active_document never creates or opens a document. save_current_document never invents another filename.
Coordinate contract
All public geometry is expressed as:
{
"coordinate_space": "page_top_left",
"unit": "mm",
"bounds": {"x": 10, "y": 20, "width": 80, "height": 30}
}
(0,0)is the page top-left.- X increases right.
- Y increases down.
- The driver converts coordinates to CorelDRAW exactly once.
Atomic operation example
{
"session_id": "sess_example",
"expected_revision": 4,
"label": "Update sale heading",
"operations": [
{
"op": "text.set_content",
"shape_id": "128",
"value": "SUMMER SALE"
},
{
"op": "text.set_style",
"shape_id": "128",
"font_family": "Montserrat",
"font_size_pt": 30,
"bold": true
},
{
"op": "shape.move",
"shape_id": "128",
"x": 20,
"y": 15
}
]
}
Supported operation names in 0.2.2:
text.set_contenttext.set_styletext.create_frameshape.set_boundsshape.moveshape.resizeshape.create_rectangleshape.rotateshape.renameshape.deletefill.set_cmykfill.set_rgb
Tool profiles
Production default:
$env:COREL_TOOL_PROFILE = "compact"
Temporary migration profile exposing the original tools:
$env:COREL_TOOL_PROFILE = "legacy"
The legacy profile is not recommended for general AI clients because the large catalog reduces tool-selection reliability.
Tests
Platform-independent unit tests:
python -m unittest discover -s tests -v
python -m compileall -q server tests
Windows/CorelDRAW end-to-end test:
python server\test_e2e.py
The final release gate must be run on Windows with each supported CorelDRAW version. Linux tests cannot validate COM behaviour.
Reference-image reconstruction
The project retains a reconstruction foundation, but a flattened image cannot guarantee a perfect editable clone. Production reconstruction requires OCR, font matching, asset detection, vector tracing, and a render-and-compare loop. See Phase 3 in the implementation plan.
Security
- Never commit
.envfiles, API keys, logs, generated customer designs, or crash dumps. - Keep the local server on stdio or loopback-only networking.
- Do not expose CorelDRAW COM automation directly to the public internet.
- Require explicit confirmation before overwrite, destructive edits, or remote execution.
- Set
COREL_OUTPUT_ROOTto restrict Save As, preview, and export destinations to one approved directory. - Preview/export defaults to
overwrite=falseand rejects an existing destination.
License
Apache License 2.0. See LICENSE and NOTICE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。