CorelDRAW Signage MCP

CorelDRAW Signage MCP

This MCP server exposes CorelDRAW as a tool server, enabling AI agents to create documents, replace text, manipulate shapes, run preflight checks, and batch-export production files from natural language instructions via COM API.

Category
访问服务器

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)
  • LLM API Key: one of Anthropic Claude, DeepSeek, or Alibaba Qwen

Installation

# 1. Clone the repo
git clone <repo-url>
cd coreldraw-signage-mcp

# 2. Create virtual environment
python -m venv .venv
.venv\Scripts\activate

# 3. Install dependencies
pip install -r requirements.txt

# 4. Configure environment variables
copy .env.example .env
# then fill in a real LLM API key

Minimal .env:

# Pick one LLM provider
ANTHROPIC_API_KEY=sk-ant-xxxxx

# MCP Server transport (stdio or streamable-http)
MCP_TRANSPORT=streamable-http
MCP_HOST=127.0.0.1
MCP_PORT=8765

Usage

Option 1 — Streamlit Chat UI (recommended for quick start)

# Make sure CorelDRAW is running first, then:
streamlit run server/app.py

Open http://localhost:8501, enter your API key in the sidebar, and control CorelDRAW with natural language.

Note: The Streamlit UI connects to CorelDRAW directly via COM. Do not run server.py at the same time — two simultaneous COM connections can cause conflicts.

Option 2 — Claude Desktop / OpenCode via MCP HTTP

The repo ships a .mcp.json that Claude Desktop and OpenCode auto-discover:

# Start MCP Server in HTTP mode
cd server
MCP_TRANSPORT=streamable-http python server.py

Option 3 — stdio mode (for MCP client integration)

cd server
MCP_TRANSPORT=stdio python server.py

Example prompts

Batch room-number signs

  1. Place a CDR template (with text placeholders) in server/templates/
  2. Prepare an Excel sheet (one sign per row)
  3. Type: Batch generate room signs, template: room_template.cdr, data: rooms.xlsx
  4. The agent reads the data, fills the template row by row, runs preflight, and exports PDF + DXF

Single sign, quick output

Create a 300×150 mm room sign, room number 301, department "R&D Center",
background CMYK(0,0,0,80), export print-ready PDF and laser-cut DXF

Directory structure

coreldraw-signage-mcp/
├── server/
│   ├── server.py          # MCP Server entry point
│   ├── app.py             # Streamlit Web UI
│   ├── agent/
│   │   ├── runner.py      # Agent main loop (LLM + tool calls)
│   │   └── prompts.py     # System prompt
│   ├── tools/             # MCP tool implementations (30+ tools)
│   ├── core/              # CorelDRAW COM connection & shared models
│   ├── config/            # Settings & template registry
│   └── templates/         # CDR template files
├── docs/                  # Architecture docs & diagrams
├── CONTRIBUTING.md
├── LICENSE
├── NOTICE
├── requirements.txt
└── pyproject.toml

Development

# Install dev dependencies
pip install -e ".[dev]"

# Lint
ruff check server/

# End-to-end test (requires CorelDRAW running locally)
cd server
python test_e2e.py

Roadmap

Phase Status Scope
Phase 1 MVP ✅ Done MCP Server + 30+ tools + Agent loop + HTTP transport
Phase 2 In progress LiteLLM Proxy for unified LLM management; migrate agent orchestration to LangGraph
Planned Architecture drafted Company dispatch mode: task queue, multi-workstation workers, concurrency lock

Contributing

See CONTRIBUTING.md. Note: the COM API is Windows-only, so end-to-end testing requires a Windows machine with CorelDRAW installed.


License

Apache 2.0 © 2026 深圳市玄熵智能科技有限责任公司 (Xuanshang Intelligent Technology Co., Ltd., Shenzhen)

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选