
一个模型上下文协议(MCP)服务器,通过 ExtendScript API 与 Adobe InDesign 交互。通过 Claude Desktop 实现 InDesign 文档中的文本操作。
概览
一个模型上下文协议(MCP)服务器,通过 ExtendScript API 与 Adobe InDesign 交互。通过 Claude Desktop 实现 InDesign 文档中的文本操作。 - : 在开始、结束或选择后插入文本 - : 查找并替换支持所有出现情况的文本 - : 从文档中删除特定文本 - : 从活跃文档中检索所有文本内容 2. 通过添加添加内容配置Claude桌面claude_desktop_config.json: 3. 确保Adobe InDesign已安装并运行 该服务器提供四种可通过 Claude Desktop 访问的工具: - 文本:添加文本- 位置:“开始”、“结束”或“after_selection”(默认:“结束”) - find_text:查找文本 - replace_text:替换文本- all_occurrences:替换所有实例(默认:false) - 文本:删除文本- all_occurrences:删除所有实例(默认:false)
概述(AI 翻译)
一个模型上下文协议(MCP)服务器,通过 ExtendScript API 与 Adobe InDesign 交互。通过 Claude Desktop 实现 InDesign 文档中的文本操作。
特色
- 添加文本:在选择开始、结束或选择后插入文本
- 更新文本:查找并替换所有出现情况的文本,支持所有情况
- 删除文本:删除文档中的特定文本
- 获取文档文本:从活跃文档中检索所有文本内容
布置
-
安装依赖:
-
通过在你的
claude_desktop_config.json中添加添加内容来配置Claude桌面: -
确保Adobe InDesign已安装并运行
用途
该服务器提供四种可通过 Claude Desktop 访问的工具:
add_text
text:添加文本position:“开始”、“结束”或“after_selection”(默认:“结束”)
update_text
find_text:文本查找replace_text:替换文本all_occurrences:替换所有实例(默认:false)
remove_text
text:需删除的文本all_occurrences:移除所有实例(默认:false)
get_document_text
返回激活 InDesign 文档中的所有文本内容。
要求
- Python 3.7+
- Adobe InDesign(2025 年测试)
本页由 AI 翻译,技术细节请以原文为准。
README
InDesign MCP Server
A Model Context Protocol (MCP) server for interacting with Adobe InDesign through ExtendScript API. Enables text manipulation in InDesign documents via Claude Desktop.
Features
- Add Text: Insert text at start, end, or after selection
- Update Text: Find and replace text with support for all occurrences
- Remove Text: Delete specific text from documents
- Get Document Text: Retrieve all text content from active document
Setup
-
Install dependencies:
pip install -r requirements.txt -
Configure Claude Desktop by adding to your
claude_desktop_config.json:{ "mcpServers": { "indesign": { "command": "python3", "args": ["/Users/honeycomb/indesign_mcp/server.py"], "env": {} } } } -
Ensure Adobe InDesign is installed and running
Usage
The server provides four tools accessible through Claude Desktop:
add_text
text: Text to addposition: “start”, “end”, or “after_selection” (default: “end”)
update_text
find_text: Text to findreplace_text: Replacement textall_occurrences: Replace all instances (default: false)
remove_text
text: Text to removeall_occurrences: Remove all instances (default: false)
get_document_text
Returns all text content from the active InDesign document.
Requirements
- Python 3.7+
- Adobe InDesign (tested with 2025)
- macOS (uses osascript for InDesign communication)
- Active InDesign document
How it Works
The server communicates with InDesign via ExtendScript through macOS osascript, executing JavaScript code within InDesign’s environment for text manipulation operations.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"indesign": {
"command": "python3",
"args": ["/Users/honeycomb/indesign_mcp/server.py"],
"env": {}
}
}
}