
让AI通过模型上下文协议直接驱动CorelDRAW——大规模自动设计文件生成
概览
让AI通过模型上下文协议直接驱动CorelDRAW——大规模自动设计文件生成 该项目将 CorelDRAW 展示为 MCP(模型上下文协议)工具服务器。AI 代理通过 COM API 连接,创建文档、替换文本、操作形状、运行印前检查和批量导出生产文件——所有这些都来自自然语言指令。 - 自然语言→ CorelDRAW 操作,无需手动重复 - 模板填充和批量导出为 PDF / DXF / PNG - 本地调试用 Streamlit 聊天界面,或连接任何兼容 MCP 的客户端(Claude Desktop、OpenCode 等) - : Windows 10 / 11(CorelDRAW COM API 仅支持 Windows) - : 3.11+, (必须匹配 CorelDRAW 的比特) - : X6 或更高版本(必须安装并激活;X6 验证兼容) - : Anthropic Claude、Deepseek 或阿里巴巴 Qwen 中的一个 打开http://localhost:8501,,在侧边栏输入你的API密钥,用自然语言控制CorelDRAW。
概述(AI 翻译)
让AI通过Model Context Protocol直接驱动CorelDRAW——大规模自动设计文件生成
中文文档
概述
该项目将 CorelDRAW 展示为 MCP(模型上下文协议)工具服务器。AI 代理通过 COM API 连接,创建文档、替换文本、操作形状、运行印前检查和批量导出生产文件——所有这些都来自自然语言指令。
关键能力
- 自然语言→ CorelDRAW 操作,无需手动重复
- 模板填充和批量导出为PDF / DXF / PNG
- Streamlit聊天界面用于本地调试,或连接任何兼容MCP的客户端(Claude Desktop、OpenCode等)
建筑
三层结构
| 层 | 组件 | 描述 |
|---|---|---|
| 代理 | server/agent/runner.py |
大型语言模型工具调用循环;支持 Claude / DeepSeek / Qwen |
| MCP工具 | server/server.py + server/tools/ |
30+ CorelDRAW工具,HTTP或stdio传输 |
| CorelDRAW | server/core/connection.py |
通过pywin32 COM API 驱动本地CorelDRAW |
工具模块
| 模块 | 工具 | 功能 |
|---|
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
CorelDRAW Signage MCP
Let AI drive CorelDRAW directly via the Model Context Protocol — automated design file generation at scale
Overview
This project exposes CorelDRAW as an MCP (Model Context Protocol) tool server. An AI Agent connects via COM API to create documents, replace text, manipulate shapes, run preflight checks, and batch-export production files — all from natural language instructions.
Key capabilities
- Natural language → CorelDRAW operations, no manual repetition
- Template filling and batch export to PDF / DXF / PNG
- Streamlit Chat UI for local debugging, or connect any MCP-compatible client (Claude Desktop, OpenCode, etc.)
Architecture
┌─────────────────────────────────────────────────┐
│ Designer's machine (Windows) │
│ │
│ ┌──────────────┐ ┌────────────────────┐ │
│ │ AI Agent │─MCP─▶│ MCP Server │ │
│ │ (runner.py) │◀─────│ (FastMCP / HTTP) │ │
│ │ │ │ │ │
│ │ Streamlit │ │ CorelDRAW COM API │ │
│ │ Chat UI │ │ (pywin32) │ │
│ └──────────────┘ └────────┬───────────┘ │
│ │ │
│ ┌───────▼──────┐ │
│ │ CorelDRAW │ │
│ │ (local proc) │ │
│ └──────────────┘ │
└─────────────────────────────────────────────────┘
│ LLM API calls
▼
Company LiteLLM Proxy (planned)
or Anthropic / DeepSeek / Qwen direct
Three-layer structure
| Layer | Component | Description |
|---|---|---|
| Agent | server/agent/runner.py |
LLM tool-call loop; supports Claude / DeepSeek / Qwen |
| MCP tools | server/server.py + server/tools/ |
30+ CorelDRAW tools, HTTP or stdio transport |
| CorelDRAW | server/core/connection.py |
Drives local CorelDRAW via pywin32 COM API |
Tool modules
| Module | Tools | Functionality |
|---|---|---|
document |
7 | Open template, create, save, close, page management |
shapes |
11 | Rectangle / ellipse / line drawing, SVG / image import, boolean ops |
text |
5 | Text replacement, style, overflow detection, convert to curves |
colors |
8 | CMYK / RGB / Pantone fill & stroke, RGB compliance check |
layers |
5 | Create, query, assign, show/hide, lock layers |
export |
7 | PDF / DXF / AI / SVG / PNG export, visual preview, batch export |
preflight |
4 | Size check, text overflow, missing fonts, color report |
data_merge |
3 | Excel data read, barcode / QR code generation |
Requirements
- OS: Windows 10 / 11 (CorelDRAW COM API is Windows-only)
- Python: 3.11+, 64-bit (must match CorelDRAW’s bitness)
- CorelDRAW: X6 or later (must be installed and activated; X6 verified compatible)
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →