Skip to main content
Glama
SanNw

mcp-indesign

by SanNw

InDesign MCP

Typing SVG

npm version npm downloads Windows License

English | Português | Español

直接从 Codex、Claude、OpenCode 及其他 MCP 客户端控制 Adobe InDesign。

安装 · 工具 · 安全 · 开发


InDesign MCP 是一个通过 COM 和 ExtendScript 在 Windows 上自动化 Adobe InDesign 的 Model Context Protocol 服务器。它使 AI 助手能够使用结构化工具检查文档、编辑内容并执行导出。

✨ 亮点

  • 19 个工具,可用于编辑、检查和导出。

  • npm 安装,无需 InDesign 插件或启动脚本。

  • 与 Codex、Claude Desktop、Claude Code 和 OpenCode 原生集成

  • 通过 stdio 本地执行;您的文档不会通过 MCP 发送。

  • 默认安全,禁用任意 JSX 执行。

Related MCP server: indesign-mcp-server

📋 系统要求

  • Windows 10 或 11

  • Adobe InDesign 2024 或更高版本

  • Node.js 18 或更高版本

  • PowerShell 5.1 或更高版本

使用服务器时,InDesign 必须处于打开状态。无需启动脚本或防火墙配置。

📦 npm 安装

您无需克隆仓库或全局安装该包。将您的 MCP 客户端配置为运行:

npx -y mcp-indesign

Codex

将以下内容添加到 ~/.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 或 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
    }
  }
}

重启客户端,打开 InDesign,然后运行 check_connection

🧰 工具

工具

功能

check_connection

检查与 InDesign 的通信

list_documents

列出打开的文档

get_document_info

返回文档页面和属性

get_page_info

返回有关页面的信息

get_text

从选区、页面、文档或框架中读取文本

insert_text

将文本插入框架

set_frame_text

替换、追加或前置文本

replace_text

查找并替换文本

list_frames

列出文本框架

create_text_frame

创建文本框架

list_styles

列出文档样式

apply_style

将样式应用于选区或框架

list_colors

列出颜色色板

create_color_swatch

创建 RGB、CMYK、LAB 或 GRAY 色板

export_pdf

导出 PDF

export_image

导出 JPG、PNG 或 TIFF 图像

quick_export

快速导出为所选格式

batch_export

导出多个文档和格式

run_jsx

在显式启用时运行 ExtendScript

🔐 安全

运行时默认使用英语。如有需要,可在 MCP 环境中设置界面语言:

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 允许任意 ExtendScript 执行,默认处于禁用状态。仅在受信任的环境中启用它:

INDESIGN_MCP_ENABLE_RUN_JSX=1

要使用外部安装的 BatchExportProfessional.jsx

INDESIGN_MCP_BATCH_SCRIPT=C:\path\BatchExportProfessional.jsx

🛠️ 开发

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

该测试会启动服务器,验证全部 19 个工具,并确认 run_jsx 默认仍处于阻止状态。

🩺 故障排除

  • 在使用其他工具之前,先运行 check_connection

  • 确认 InDesign 已在同一 Windows 会话中打开。

  • 更改配置后,重启 MCP 客户端。

  • 导出预设因 InDesign 版本和语言而异。

⚠️ 限制

  • 0.1.x 系列仅支持 Windows。

  • 操作可能会修改打开的文档,但不会自动保存。

  • 兼容性已通过 InDesign 2025 直接验证;其他版本应由社区进行测试。

📄 许可证

MIT

致力于拉近人工智能与编辑设计的距离。

Footer

Install Server
A
license - permissive license
B
quality
A
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI assistants to programmatically control Adobe Photoshop on Windows to create documents, manipulate layers, and manage image adjustments. It provides a bridge between the Model Context Protocol and the Photoshop Python API for automated graphic design workflows.
    291
    MIT
  • 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
    30
    MIT
  • A
    license
    C
    quality
    A
    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
    86
    MIT

View all related MCP servers

Related MCP Connectors

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • Generate PDFs from templates via AI chat. Works with Claude, ChatGPT, Cursor, and any MCP client.

  • Control Unreal Engine to browse assets, import content, and manage levels and sequences. Automate…

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SanNw/Indesign-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server