InDesign MCP Server

io.github.zachshallbetter由 GitHub 账号 zachshallbetter 发布v2.5.0更新于 Oct 24, 2026

Drive Adobe InDesign from any MCP client: 135+ tools for layout, styles, books and PDF export.

已验证STDIO仅桌面效率与工作流媒体与设计

概览

AI 生成的概览

本地 MCP 服务器,在 macOS 或 Windows 上驱动 Adobe InDesign,让助手创建文档、排版页面、套用样式并导出 PDF、EPUB 或图片。

可以做什么
  • 创建、打开、保存、关闭和预检文档,并管理多文档书籍
  • 添加、调整、复制和浏览页面与跨页,并处理参考线、主页、图层和群组
  • 创建文本框、表格、图形和图片,并执行查找替换
  • 创建并套用段落、字符、对象和表格样式,以及色板和渐变
  • 导出 PDF、JPEG/PNG、EPUB 或 HTML,打包印刷文件,并执行数据合并或 XML 工作流
  • 通过内置帮助工具查询各工具的参数和分类
适用场景
适合设计与出版团队让助手自动完成重复的 InDesign 排版、品牌样式统一、报表生成,以及多页出版物和书籍制作,无需离开聊天客户端。
运行要求
通过 npx 以 stdio 在本地运行,需要 Node.js 18+。需在 macOS 或 Windows 上安装 Adobe InDesign 2023 或更高版本;macOS 使用 AppleScript,可能提示授予自动化权限,Windows 使用 PowerShell COM。可选环境变量:INDESIGN_APP_NAME、INDESIGN_ALLOWED_DIRS 和 INDESIGN_BACKEND。
安装前请注意
工具会写入并修改 InDesign 文档,部分被标记为破坏性操作,例如 delete_page、cleanup_document 以及会丢弃未保存更改的 close_document。文件操作仅限用户主目录及 INDESIGN_ALLOWED_DIRS 中列出的目录,请谨慎扩大范围。execute_indesign_code 工具会在 InDesign 中执行脚本代码。未声明任何身份验证。

安装

在 SourceWeft 中

  1. 打开 控制台中的 InDesign MCP Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

InDesign MCP Server

[npm] [License: MIT] [Node.js] [Platform] [MCP] [GitHub stars]

Turn Adobe InDesign into an AI design automation platform — 420+ MCP tools for documents, layout, typography, styles, tables, images, long documents, interactive documents, prepress, and PDF and EPUB export. Drive InDesign from Claude, Cursor, Warp, or any MCP client using natural language.

Why this exists

Design ops still means repeating the same layout chores by hand. This server exposes InDesign as structured tools an agent can call: create pages, place assets, apply brand styles, export PDF — without leaving the chat.

Perfect for

  • Design teams automating layout tasks and brand consistency
  • Content creators generating documents at scale
  • AI assistants that need real InDesign control
  • Developers building design automation workflows
  • Publishers streamlining production

Key features

Core

  • Document management — create, open, save, close, preferences, preflight, XML
  • Page management — add, delete, duplicate, move, guides, navigation
  • Content — text frames, tables, find/replace, shapes, images
  • Styles — paragraph, character, object styles and color swatches
  • Layout — spreads, master spreads, layers, groups, page items, guides and grids
  • Export — PDF, JPEG/PNG images, EPUB (reflowable or fixed layout), package for print
  • Books — multi-document books, sync, repaginate, cross-references

Module areas

Each area covers the panels and dialogs of one part of InDesign, mapped feature by feature to the capability atlas:

  • Typography — character and paragraph formatting, OpenType, bullets and numbering, GREP styles, tabs, CJK composition
  • Styles — paragraph, character, object, table, cell and TOC styles, style groups, Quick Apply, nested styles
  • Text frames, tables and long documents — text frame options, wrap, notes and track changes, threading; table and cell options; tables of contents, footnotes, index, conditional text, hyperlinks, cross-references, text variables and books
  • Frames, paths and layout — shapes, strokes, anchored objects, libraries, transformations, pathfinder, alternate and liquid layouts, flex layouts, linked content, guides and grids
  • Colour, effects and images — swatches, gradients, mixed inks, colour settings and proofing, effects and transparency, links and import options
  • Output — PDF, EPUB and HTML export with every option, Word and Excel import, printing, preflight, separations, booklets and packaging
  • Interactive documents, XML, data merge — buttons and forms, object states, animation, media; XML structure, tags and import/export; data merge, find and change, dictionaries and languages
  • Documents, pages and preferences — document presets, pages and spreads, parent pages, layers, selection, undo history, and every Preferences pane

Platform

  • macOS — AppleScript (osascript) bridge; InDesign version is auto-detected (or set via INDESIGN_APP_NAME)
  • Windows — COM automation via PowerShell (New-Object -ComObject); tries current and recent InDesign ProgIDs
  • UXP (optional) — INDESIGN_BACKEND=uxp|auto via local bridge + plugin under uxp/
  • Session manager — tracks page dimensions and fills in positions and sizes you leave out
  • Help tool — parameters for every tool and category, generated from the same definitions as tools/list
  • Safe JSX helpers — src/utils/jsxSafe.js for validated string/number/path interpolation into ExtendScript

Quick start

Prerequisites

  • Adobe InDesign (2023 or later recommended)
  • Node.js 18+
  • macOS or Windows
macOS

Uses AppleScript. Grant Automation permissions for your terminal/Node if prompted (System Settings → Privacy & Security → Automation).

InDesign version is resolved in order:

  1. INDESIGN_APP_NAME environment variable (e.g. Adobe InDesign 2026)
  2. A running InDesign process
  3. Newest Adobe InDesign *.app under /Applications or ~/Applications
  4. Fallback: Adobe InDesign 2025
Windows

Uses COM automation through PowerShell. No extra install steps. InDesign should be installed; the server will attach to a running instance or launch via COM.

Installation

Nothing to clone. MCP clients start the server with npx, which downloads it from npm on first run. It is listed in the official MCP Registry as io.github.zachshallbetter/adobe-mcp-indesign.

Claude Code:

bash
claude mcp add indesign -- npx -y adobe-mcp-indesign

MCP client config

Any other client (Claude Desktop claude_desktop_config.json, Cursor, Warp, …):

json
{  "mcpServers": {    "indesign": {      "command": "npx",      "args": ["-y", "adobe-mcp-indesign"]    }  }}

Optional environment overrides:

json
{  "mcpServers": {    "indesign": {      "command": "npx",      "args": ["-y", "adobe-mcp-indesign"],      "env": {        "INDESIGN_APP_NAME": "Adobe InDesign 2026",        "INDESIGN_ALLOWED_DIRS": "/Users/you/Projects:/Users/you/Documents"      }    }  }}
  • INDESIGN_APP_NAME — macOS only; force a specific app name for AppleScript
  • INDESIGN_ALLOWED_DIRS — extra directories allowed for file operations (delimiter is : on macOS, ; on Windows)

Restart the client, open InDesign, then try: Create an A4 doc and add a centered title.

To run from a clone instead (for development), use "command": "node" with "args": ["/ABSOLUTE/PATH/TO/adobe-mcp-indesign/src/index.js"] after npm install.

Help system

javascript
await tools.call("help");await tools.call("help", { tool: "create_document" });await tools.call("help", { category: "text" });await tools.call("help", { format: "detailed" });await tools.call("help", { format: "examples" });

Example calls

javascript
await callTool('create_document', {  width: 210,  height: 297,  pages: 1});
await callTool('create_text_frame', {  content: 'Hello, InDesign!',  fontSize: 14});
await callTool('create_paragraph_style', {  name: 'Heading',  fontSize: 24,  alignment: 'CENTER_ALIGN'});

Tools

137 tools in seven areas. The full reference, with every parameter, is docs/TOOLS.md (generated from the same definitions the server advertises).

AreaToolsExamples
Documents & books46create_document, open_document, save_document, preflight_document, data_merge, validate_document, create_book, export_book
Pages & spreads30add_page, resize_page, create_page_guides, place_file_on_page, list_spreads, duplicate_spread
Text & tables5create_text_frame, edit_text_frame, create_table, populate_table, find_replace_text
Graphics & images8place_image, create_rectangle, create_polygon, create_object_style
Styles & colors8create_paragraph_style, create_character_style, create_color_swatch, apply_color
Layout, masters & layers30move_page_item, create_group, create_master_spread, detach_master_items, create_layer
Export & utilities10export_pdf, export_images, export_epub, package_document, indesign_status, execute_indesign_code

For AI agents

  • Instructions at connect. The server sends usage instructions in its initialize response (units, indexes, colors, fonts, paths, errors), which MCP clients pass to the model.
  • Annotations on every tool. readOnlyHint, destructiveHint, idempotentHint and openWorldHint let clients ask before destructive calls such as delete_page, cleanup_document or close_document (which discards unsaved changes).
  • Real errors. A failed call returns isError: true with a message such as "No document open" or "Error: color swatch 'Brand' not found".
  • Self-describing. help({ tool }) returns any tool's parameters; help({ category }) lists tools by area.
  • Conventions. Millimeters from the target page's top-left corner, 0-based indexes, swatch names or "#RRGGBB", fonts as "Family\tStyle". See docs/LLM_PROMPT.md for workflows.

Session management

The server tracks page dimensions and active document metadata so tools can place content with sensible defaults when coordinates are omitted.

javascript
await callTool('get_session_info', {});await callTool('clear_session', {});
await callTool('create_text_frame', {  content: 'Auto-positioned text',  fontSize: 12});

Architecture

text
src/├── core/│   ├── InDesignMCPServer.js    # MCP server│   ├── scriptExecutor.js       # macOS AppleScript + Windows COM│   └── sessionManager.js       # Session state├── handlers/                   # Tools by domain│   ├── documentHandlers.js│   ├── pageHandlers.js│   ├── textHandlers.js│   ├── styleHandlers.js│   ├── graphicsHandlers.js│   ├── bookHandlers.js│   ├── pageItemHandlers.js│   ├── groupHandlers.js│   ├── masterSpreadHandlers.js│   ├── spreadHandlers.js│   ├── layerHandlers.js│   ├── exportHandlers.js│   ├── utilityHandlers.js│   ├── helpHandlers.js│   └── index.js├── types/                      # Tool definitions├── utils/│   ├── stringUtils.js          # Response helpers, escapeJsxString│   └── jsxSafe.js              # Validated ExtendScript literals / paths└── index.js

Script execution

PlatformMechanismNotes
macOSosascript → do scriptApp name auto-detected; temp .jsx in OS temp dir
WindowsPowerShell COM DoScriptProgIDs tried newest-first; temp .jsx in OS temp dir

ExtendScript safety

Tool arguments that flow into JSX should go through src/utils/jsxSafe.js:

  • str(), num(), bool(), index(), enumOf(), measure(), json(), numList()
  • validateFilePath() / jsxPath() for filesystem paths (INDESIGN_ALLOWED_DIRS)

Every handler uses these helpers; raw argument strings never reach a script.

Errors

Scripts report failures as text ("No document open", "Error …", "… not found"). The server recognizes these (looksLikeFailure in src/utils/stringUtils.js) and returns them with success: false and MCP isError: true, so clients can tell a failed call from a successful one.

Real-world applications

  • Automated report generation with consistent styles
  • Brand asset and template systems
  • Multi-page publications and books
  • Design-system driven layout

Testing

bash
npm run check          # syntax check core modulesnpm test               # everything below that needs no InDesignnpm run test:audit     # script audit only; pass a regex to audit some toolsnpm run test:integration   # full suite — requires InDesign runningnpm run test:unified       # single-document unified runner

npm test covers:

  • Tool definitions: every tool has a description, title, annotations and a typed, described parameter list
  • Path confinement: every file or folder parameter rejects paths outside your home folder and INDESIGN_ALLOWED_DIRS
  • MCP protocol: the server starts over stdio, sends instructions, lists all tools and answers help for each
  • Error detection: failure messages become isError results
  • Tool reference: docs/TOOLS.md matches the definitions
  • Script audit: see below

The script audit (tests/audit/scripts.audit.js) calls every tool with arguments built from its schema, captures the ExtendScript it would send, and fails if any advertised tool is not dispatched, if a script is not valid ES5 (ExtendScript has no let, arrow functions or JSON), or if a script uses a property, method, enum or global that does not exist in the InDesign 2023 scripting DOM (types-for-adobe).

CI runs check and npm test on every push and pull request. The audit checks scripts against Adobe's published DOM; it does not run them, so the integration suite against a live InDesign remains the final check.

Related projects

Execution backends

BackendHow to enable
ExtendScript / COM (default)unset or INDESIGN_BACKEND=extendscript
UXP bridge + pluginINDESIGN_BACKEND=uxp (or auto) + npx -p adobe-mcp-indesign adobe-mcp-indesign-uxp-bridge + load uxp/plugin
ArtCraft / DesignCraftINDESIGN_TARGET=craft or automatic fallback when InDesign is absent and DesignCraft is running (127.0.0.1:7979)

ArtCraft (DesignCraft) Support

This server features transparent adapter support for Storytold's DesignCraft desktop publishing application. When InDesign is not installed or running, or when INDESIGN_TARGET=craft (or ADOBE_TARGET=craft) is set, compatible tools route directly to DesignCraft's loopback control protocol (127.0.0.1:7979 by default or DESIGNCRAFT_CONTROL_PORT).

Details: docs/architecture-execution.md and uxp/README.md.

Optional packaging reference: theloniuser/indesign-uxp-server (bridge/plugin adapted into uxp/ with attribution).

Examples

See examples/basic-flyer.md and examples/mcp-config.json for a first-run workflow and client config.

Contributing

See CONTRIBUTING.md. Report security issues privately as described in SECURITY.md.

Credits

This server began as lucdesign/indesign-mcp-server by Lukas Drechsel-Burkhard, released under the MIT License. This project builds on that work; the original copyright notice is kept in LICENSE.

License

MIT. See LICENSE.

Documentation

Issues: https://github.com/zachshallbetter/adobe-mcp/issues

来源:packages/indesign/README.md,提交 44b5b50

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v2.5.0最新Oct 15, 2026
  2. v2.4.0Oct 15, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分