
非官方的 Adobe Premiere Pro MCP (模型上下文协议) 服务器
该项目提供了一个与 MCP 兼容的服务器,使用户能够对 Adobe Premiere Pro 项目进行高级自动化、查询和远程控制。它专为高级用户、工作流自动化以及与 AI 或脚本工具集成而设计。
免责声明
本项目未得到 Adobe Inc. 的任何形式的支持、认可或赞助。这是一个独立开发的第三方工具,用于与 Adobe Premiere Pro 配合使用。
自行承担风险使用。对于功能、兼容性或安全性不作任何保证。作者不对因使用此软件而导致的任何损失、损害或数据损坏承担责任。
使用前务必备份您的项目。
该服务器通过 MCP API 提供以下工具:
要在面板中添加一个按帧修剪片段的 UI,请在您的 CEP 面板中包含以下代码片段:
<div>
<label>轨道类型:
<select id="trackType">
<option value="video">视频</option>
<option value="audio">音频</option>
</select>
</label>
<label>方向:
<select id="direction">
<option value="in">入点</option>
<option value="out">出点</option>
</select>
</label>
<label>帧数差:
<input type="number" id="framesDelta" value="10" />
</label>
<button onclick="trimClipUI()">修剪片段</button>
</div>
<script>
async function trimClipUI() {
// 替换为实际逻辑以获取选定序列/片段 ID
const sequenceId = 0; // 示例:活动序列索引
const clipId = getSelectedClipId(); // 根据您的面板逻辑实现此函数
const framesDelta = parseInt(document.getElementById('framesDelta').value, 10);
const direction = document.getElementById('direction').value;
const trackType = document.getElementById('trackType').value;
const response = await fetch('http://localhost:5000/trim_clip_by_frames', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ sequenceId, clipId, framesDelta, direction, trackType })
});
const result = await response.json();
alert(result.content[0].text);
}
</script>
用您实际的逻辑替换 getSelectedClipId() 函数以获取选定的片段。
Adobe CEP(通用扩展平台)是允许在 Adobe 创意云应用程序(如 Premiere Pro、After Effects 和 Photoshop)中自定义面板和扩展的技术。
更多详情和开发者资源请访问 Adobe CEP GitHub 组织。
开始之前,请确保您拥有:
定位扩展文件夹
(通常命名为类似 com.yourcompany.premiere-mcp 的名称)
将文件夹复制到 Adobe CEP 扩展目录:
%APPDATA%\Adobe\CEP\extensions
~/Library/Application Support/Adobe/CEP/extensions
在 Adobe 应用程序中启用开发者模式:
PlayerDebugMode 注册表键(参见 Adobe-CEP/Getting-Started)重启 Premiere Pro
窗口 > 扩展 并选择您的面板。安装依赖项
(例如,对于 Node.js: npm install 或对于 Python: pip install -r requirements.txt)
启动服务器
(例如,npm start, node server.js 或 python server.py)
默认情况下,服务器运行在
localhost:PORT(替换 PORT 为您配置的端口,例如 5000)。
在使用 Premiere Pro 的扩展时保持服务器运行。
状态:错误:无法获取
这意味着 MCP 服务器没有运行或不可达。
面板未出现在 Premiere 中
更多帮助:
查看 Adobe-CEP/Getting-Started 和 Adobe-CEC 以获取额外的文档和故障排除提示。
a. 克隆仓库
git clone https://github.com/yourusername/premiere-mcp-server.git
cd premiere-mcp-server
b. 安装依赖项
npm install
启动 MCP 服务器:
node mcp-server.js
a. 打开 Claude Desktop(或您的 AI 开发环境)。
b. 将 Premiere MCP 服务器作为新 MCP 服务器添加:
http://localhost:PORT — 替换 PORT 为您服务器使用的端口,例如 http://localhost:3000)。c. 测试连接:
get_project_info)来验证连接。本项目根据 MIT 许可证发布。详情请参阅 LICENSE 文件。
本项目未由 Adobe 生产、认可或支持。