Zero-Dependency MCP Server · Windows COM + ExtendScript

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.

11
Production DOM Tools
0
External Dependencies
UTF-8
End-to-End Safe Pipeline
2023–2026+
Auto-Detected Versions
Architecture

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.

1

AI Client

Sends standard MCP JSON-RPC 2.0 requests (tools/list, tools/call) over stdin.

stdio JSON-RPC
2

Python Bridge

Wraps ES3 ExtendScript inside try/catch, NEVER_INTERACT, and UTF-8 temp files.

server.py
3

PowerShell Guard

Detects hung processes, clears stale recovery caches if requested, and ensures InDesign is live.

PS_ENSURE_AND_RUN
4

Windows COM

Binds to InDesign.Application.2026 (or 2025/2024/2023) and invokes DoScript().

ID: 1246973031
5

ExtendScript DOM

Mutates documents, links, text frames, or exports PDF/PNG and returns __out lines.

ES3 Engine
Engineering

Designed 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.

Capabilities

11 Built-in DOM Tools

Everything from quick document inspection to GREP editing, preflight auditing, visual PNG exports, and print packaging.

indesign_ping

Connects via COM (launching InDesign if needed) and reports version, open doc count, and active document.

Health & Lifecycle
indesign_execute_script

Runs arbitrary ES3 ExtendScript inside InDesign with NEVER_INTERACT mode and captures __out.push() output.

Full DOM Power
indesign_get_document_info

Inspects an .indd file or active document: page count, dimensions, units, overset frames, missing fonts, and links.

Inspection
indesign_get_page_text

Extracts all text frames (bounding coordinates, overflow status, and text contents) per page or across the document.

Content Extraction
indesign_replace_text

Plain text or GREP find/replace scoped to a document or pageNumber, with fontStyle, caseSensitive, and wholeWord.

Editing & GREP
indesign_relink_and_update

Updates all out-of-date links or relinks a specific asset to a new file path with optional fitToFrame.

Asset Management
indesign_export_pdf

Updates links if requested, applies pageRange, and exports PDF using any installed Adobe PDF preset.

Publishing
indesign_export_images

Renders document pages to PNG or JPEG at custom DPI for visual QA and AI layout inspection.

Visual Preview
indesign_preflight_check

Audits missing fonts, overset text frames (with page numbers), and missing/out-of-date links before print.

Preflight QA
indesign_package_document

Packages the .indd file into a target folder including fonts, linked graphics, IDML, and PDF report.

Print Production
indesign_list_presets

Lists all available PDF Export Presets configured in the running Adobe InDesign instance.

Configuration
Configuration

Ready in 30 Seconds

No virtual environments, no npm install, no UXP sideloading. Point your MCP client directly to server.py.

mcp_config.json / claude_desktop_config.json
{
  "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