Full Adobe InDesign DOM Control for AI Assistants
Connect Claude, Cursor, or Antigravity directly to Adobe InDesign without UXP plugins or external packages. Inspect layouts, run GREP replacements, audit preflight issues, export print PDFs, and execute ExtendScript cleanly.
How It Works Behind the Scenes
Every tool call travels from the AI client through a stateless Python JSON-RPC bridge into Adobe InDesign's native COM scripting engine.
AI Client
Sends standard MCP JSON-RPC 2.0 requests (tools/list, tools/call) over stdin.
stdio JSON-RPCPython Bridge
Wraps ES3 ExtendScript inside try/catch, NEVER_INTERACT, and UTF-8 temp files.
server.pyPowerShell Guard
Detects hung processes, clears stale recovery caches if requested, and ensures InDesign is live.
PS_ENSURE_AND_RUNWindows COM
Binds to InDesign.Application.2026 (or 2025/2024/2023) and invokes DoScript().
ID: 1246973031ExtendScript DOM
Mutates documents, links, text frames, or exports PDF/PNG and returns __out lines.
ES3 EngineDesigned for Unattended Reliability
Desktop publishing apps love modal popups. This server neutralizes every common automation blocker.
NEVER_INTERACT Modal Shield
Sets UserInteractionLevels.NEVER_INTERACT before execution and restores INTERACT_WITH_ALL in a finally block so missing font or link warnings never freeze the pipeline.
Zombie & Recovery Guard
If InDesign is stuck headless without a MainWindowTitle, PowerShell terminates the zombie process and optionally wipes stale InDesign Recovery locks before relaunching.
Full UTF-8 Encoding
Reconfigures Python stdio and PowerShell Console OutputEncoding to UTF-8, preserving Turkish, German, French, and special typographic glyphs end-to-end.
Version Auto-Discovery
Automatically scans Program Files for Adobe InDesign 2023–2026+ and cascades COM ProgIDs, while allowing explicit overrides via environment variables.
11 Built-in DOM Tools
Everything from quick document inspection to GREP editing, preflight auditing, visual PNG exports, and print packaging.
Connects via COM (launching InDesign if needed) and reports version, open doc count, and active document.
Health & LifecycleRuns arbitrary ES3 ExtendScript inside InDesign with NEVER_INTERACT mode and captures __out.push() output.
Full DOM PowerInspects an .indd file or active document: page count, dimensions, units, overset frames, missing fonts, and links.
InspectionExtracts all text frames (bounding coordinates, overflow status, and text contents) per page or across the document.
Content ExtractionPlain text or GREP find/replace scoped to a document or pageNumber, with fontStyle, caseSensitive, and wholeWord.
Editing & GREPUpdates all out-of-date links or relinks a specific asset to a new file path with optional fitToFrame.
Asset ManagementUpdates links if requested, applies pageRange, and exports PDF using any installed Adobe PDF preset.
PublishingRenders document pages to PNG or JPEG at custom DPI for visual QA and AI layout inspection.
Visual PreviewAudits missing fonts, overset text frames (with page numbers), and missing/out-of-date links before print.
Preflight QAPackages the .indd file into a target folder including fonts, linked graphics, IDML, and PDF report.
Print ProductionLists all available PDF Export Presets configured in the running Adobe InDesign instance.
ConfigurationReady in 30 Seconds
No virtual environments, no npm install, no UXP sideloading. Point your MCP client directly to server.py.
{
"mcpServers": {
"indesign-dom": {
"command": "python",
"args": [
"C:\\path\\to\\indesign-dom-mcp\\server.py"
]
}
}
}
| Environment Variable | Purpose | Default |
|---|---|---|
INDESIGN_EXE |
Full path to InDesign.exe | Auto-detected (2023–2026+) |
INDESIGN_COM_ID |
Explicit COM ProgID | Cascades 2026 → 2023 → InDesign.Application |
INDESIGN_RECOVERY_DIR |
Custom InDesign Recovery folder | Auto-detected in %LOCALAPPDATA% |
INDESIGN_TIMEOUT |
Command timeout in seconds | 120 |