Skip to main content
Glama
mcp-indesign

mcp-indesign

by SanNw

InDesign MCP

Typing SVG

npm version npm downloads Windows License

English | Português | Español

Control Adobe InDesign directly from Codex, Claude, OpenCode, and other MCP clients.

Installation · Tools · Security · Development


InDesign MCP is a Model Context Protocol server that automates Adobe InDesign on Windows through COM and ExtendScript. It enables AI assistants to inspect documents, edit content, and perform exports using structured tools.

✨ Highlights

  • 19 tools ready for editing, inspection, and export.

  • npm installation, with no InDesign plugin or startup script required.

  • Native integration with Codex, Claude Desktop, Claude Code, and OpenCode.

  • Local execution over stdio; your documents are not sent through MCP.

  • Secure by default, with arbitrary JSX execution disabled.

Related MCP server: InDesign UXP MCP Server

📋 Requirements

  • Windows 10 or 11

  • Adobe InDesign 2024 or later

  • Node.js 18 or later

  • PowerShell 5.1 or later

InDesign must be open while the server is in use. No startup script or firewall configuration is required.

📦 npm Installation

You do not need to clone the repository or install the package globally. Configure your MCP client to run:

npx -y mcp-indesign

Codex

Add the following to ~/.codex/config.toml:

[mcp_servers.indesign]
command = "npx"
args = ["-y", "mcp-indesign"]
startup_timeout_sec = 30

[mcp_servers.indesign.env]
INDESIGN_MCP_LANGUAGE = "en"

Claude Desktop or Claude Code

{
  "mcpServers": {
    "indesign": {
      "command": "npx",
      "args": ["-y", "mcp-indesign"],
      "env": { "INDESIGN_MCP_LANGUAGE": "en" }
    }
  }
}

OpenCode

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "indesign": {
      "type": "local",
      "command": ["npx", "-y", "mcp-indesign"],
      "environment": { "INDESIGN_MCP_LANGUAGE": "en" },
      "enabled": true
    }
  }
}

Restart the client, open InDesign, and run check_connection.

🧰 Tools

Tool

Function

check_connection

Checks communication with InDesign

list_documents

Lists open documents

get_document_info

Returns document pages and properties

get_page_info

Returns information about a page

get_text

Reads text from the selection, page, document, or frame

insert_text

Inserts text into a frame

set_frame_text

Replaces, appends, or prepends text

replace_text

Finds and replaces text

list_frames

Lists text frames

create_text_frame

Creates a text frame

list_styles

Lists document styles

apply_style

Applies styles to the selection or a frame

list_colors

Lists color swatches

create_color_swatch

Creates an RGB, CMYK, LAB, or GRAY swatch

export_pdf

Exports a PDF

export_image

Exports a JPG, PNG, or TIFF image

quick_export

Quickly exports to a selected format

batch_export

Exports multiple documents and formats

run_jsx

Runs ExtendScript when explicitly enabled

🔐 Security

The runtime defaults to English. Set the interface language in your MCP environment when needed:

INDESIGN_MCP_LANGUAGE=en     # English
INDESIGN_MCP_LANGUAGE=pt-BR  # Portuguese (pt and pt-PT are also accepted)
INDESIGN_MCP_LANGUAGE=es     # Spanish

run_jsx allows arbitrary ExtendScript execution and is disabled by default. Enable it only in trusted environments:

INDESIGN_MCP_ENABLE_RUN_JSX=1

To use an external installation of BatchExportProfessional.jsx:

INDESIGN_MCP_BATCH_SCRIPT=C:\path\BatchExportProfessional.jsx

🛠️ Development

git clone https://github.com/SanNw/Indesign-MCP.git
cd Indesign-MCP
npm install
npm test

The test starts the server, validates all 19 tools, and confirms that run_jsx remains blocked by default.

🩺 Troubleshooting

  • Run check_connection before using the other tools.

  • Confirm that InDesign is open in the same Windows session.

  • Restart the MCP client after changing its configuration.

  • Export presets vary by InDesign version and language.

⚠️ Limitations

  • The 0.1.x series supports Windows only.

  • Operations may modify the open document but do not save it automatically.

  • Compatibility has been directly validated with InDesign 2025; other versions should be tested by the community.

📄 License

MIT

Built to bring artificial intelligence and editorial design closer together.

Footer

Available Tools

19 tools
apply_styleB

Applies a paragraph or character style to selected text or a frame.

Inputs: styleName (required), page, target, styleType, +1 more.

batch_exportA

Runs batch export using the existing BatchExportProfessional.jsx script. Ideal for exporting multiple formats at once.

Inputs: formats (required), document (required), outputDir (required), openAfter, +7 more.

check_connectionA

Checks whether Adobe InDesign is open and responding. Run this tool before using the others.

Inputs: no named parameters.

create_color_swatchA

Creates a new color swatch in the active document.

Inputs: name (required), values (required), model, colorSpace.

create_text_frameB

Creates a new text frame on a page with the specified dimensions.

Inputs: geometricBounds (required), page, text.

export_imageC

Exports document pages as JPG, PNG, or TIFF images.

Inputs: format (required), outputDir (required), quality, document, +3 more.

export_pdfB

Exports one or all open documents as PDF.

Inputs: outputDir (required), document, overwrite, pageRange, +1 more.

get_document_infoC

Gets detailed information about an InDesign document.

Inputs: document (required).

get_page_infoC

Gets detailed information about a specific page.

Inputs: page.

get_textC

Reads text from frames, paragraphs, or pages in the active document.

Inputs: target (required), page, frameIndex.

insert_textB

Inserts text into a text frame in the active document.

Inputs: text (required), page, append, frameIndex.

list_colorsA

Lists all colors and tints (swatches) in the active document.

Inputs: swatchType.

list_documentsA

Lists all InDesign documents currently open.

Inputs: no named parameters.

list_framesC

Lists all text frames on a page or in a document.

Inputs: page, scope.

list_stylesA

Lists paragraph, character, and other styles in the active document.

Inputs: styleType.

quick_exportC

Quickly exports the active document to a specific format.

Inputs: format (required), outputPath (required), pageRange, pdfPreset, +1 more.

replace_textC

Replaces text in the active document.

Inputs: search (required), replace (required), scope, wholeWord, +1 more.

run_jsxA

Runs arbitrary ExtendScript code in InDesign. Use for custom automation not covered by other tools.

Inputs: code (required), waitForResult.

set_frame_textC

Sets or appends text in a specific text frame.

Inputs: text (required), mode, page, frameIndex.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 19 tools

    Disambiguation4/5

    Most tools have clear distinct purposes, but there is some overlap among export tools (export_pdf, export_image, batch_export, quick_export) and between insert_text and set_frame_text which could cause misselection. Descriptions do help differentiate, but the boundaries are not perfectly crisp.

    Naming Consistency4/5

    The tool set mostly follows a verb_noun pattern (list_, get_, create_, export_, etc.), with a few exceptions like check_connection, run_jsx, and quick_export that deviate slightly but are still readable. The naming is largely predictable and consistent.

    Tool Count3/5

    With 19 tools, the server is on the heavy side (16-25 is considered borderline). While InDesign is a complex application and many tools are necessary, the count feels slightly oversized and could benefit from consolidation, such as combining export variants.

    Completeness4/5

    The tool surface covers connection, document info, exports, text manipulation, frames, styles, colors, and page info, which is substantial. Missing operations like document creation or deletion are notable, but the presence of run_jsx for arbitrary ExtendScript allows agents to work around gaps, making it fairly complete.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      C
      maintenance
      Enables AI assistants to automate Adobe InDesign publishing workflows, including document creation, text formatting, image placement, PDF export, and more via 35+ professional tools.
      36
      64
      MIT
    • A
      license
      C
      quality
      C
      maintenance
      A Model Context Protocol (MCP) server that gives AI assistants direct, native control over Adobe InDesign via a UXP plugin bridge, with ~130 tools covering documents, pages, text, graphics, styles, master spreads, books, and export.
      100
      113
      MIT
    • A
      license
      C
      quality
      C
      maintenance
      Enables AI assistants to control and automate Adobe InDesign on Windows through COM and ExtendScript, offering 51 tools for document creation, editing, styling, and PDF export.
      51
      1
      MIT