SM

sbroenne/mcp-server-powerpoint

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

48 stars 6 forks 质量 75 趋势 21MIT

通过MCP服务器或CLI自动化真实的Microsoft PowerPoint,使用AI操作——幻灯片、形状、表格、图表、SmartArt、动画以及141操作,并支持导出验证的视觉检查。

概览

—— 一个模型上下文协议服务器和 CLI,用于通过对话式 AI 实现实时 PowerPoint 自动化。与 mcp-server-excel 的兄弟项目,遵循相同的分层架构:ComInterop → Core → CLI / MCP 服务器。 它使 AI 助手(GitHub Copilot、Claude、ChatGPT 等)能够通过自然语言——幻灯片、形状、文本、表格、图表、演讲者笔记和布局——构建和编辑真实.pptx演示文稿——无需 VBA 或 PowerPoint 对象模型知识。 ——大多数PowerPoint MCP服务器离线操作.pptx文件,使用像python-pptx这样的库,或使用代理运行的脚本,并使用LibreOffice渲染的缩略图。该项目则驱动的是通过Microsoft.Office.Interop.PowerPoint——官方的Primary Interop Assembly。这意味着实现真实的真实渲染,兼容已开放的Deck,并且没有生成PowerPoint无法打开的.pptx,因为PowerPoint是编写者。 ——核心差异化。

概述(AI 翻译)

用AI自动化PowerPoint — 模型上下文协议服务器和CLI工具 通过对话式人工智能实现实时 PowerPoint 自动化。兄弟项目 MCP-服务器-Excel,遵循相同的分层 架构:ComInterop → Core → CLI / MCP Server。

** PowerPoint 的 MCP 服务器** 使 AI 助手(GitHub Copilot、Claude、ChatGPT)能够构建和 通过自然语言编辑真实的.pptx演示文稿——幻灯片、图形、文本、表格、图表, 演讲者笔记和布局——无需VBA或PowerPoint对象模型知识。

** 🛡️ 实时COM自动化,而非文件解析** — 大多数PowerPoint MCP服务器操作.pptx 使用像python-pptx这样的库进行离线文件,或使用代理运行的脚本并用LibreOffice渲染 缩略图。这个项目实际上驱动了一个实时的PowerPoint桌面实例 Microsoft.Office.Interop.PowerPoint ——官方的主操作互操作大会。这意味着 真实保真渲染,兼容已开放的 Deck,且零生成 .pptx 那个PowerPoint本身打不开,因为PowerPoint是写它的人。

** 🖼️ 导出验证** — 核心差异化器。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

PowerPointMcp — MCP Server & CLI for Microsoft PowerPoint

Create and edit real PowerPoint presentations with AI assistants or scripts. Build a new deck or update an existing .pptx file. Add slides, format text and shapes, create charts and tables, insert images, and write speaker notes using the installed Microsoft PowerPoint desktop application on Windows.

Choose how you work. Connect your AI assistant through the Model Context Protocol server, use the VS Code extension with GitHub Copilot Chat, or run pptcli from terminal commands and scripts. The packages require desktop PowerPoint; they do not replace it.

Review the actual result. The MCP server can export presentations to PDF or render slides as images through PowerPoint. An assistant that can inspect images can then check for overlapping shapes, text overflow, and layout problems before you share the presentation.

Technical Requirements:

  • ⚠️ Windows Only — COM interop is Windows-specific
  • ⚠️ PowerPoint Required — Microsoft PowerPoint 2016 or later must be installed
  • ⚠️ Desktop Environment — controls a real PowerPoint process (not for server-side processing)

[!TIP] Also automating spreadsheets? Check out Excel MCP Server — the sister project, built the same way.

🎯 What You Can Do

32 MCP tools with 215 operations across 17 domains:

The tool total includes 15 read-only aliases; the operation total counts each unique action once.

  • 🗂️ Presentation (20 ops) — create, open, Save As, Save Copy As, close, list sessions, apply a .potx/.pptx template’s masters/theme/layouts, read the current theme name, set/read
在 GitHub 查看完整 README

安装

npx -y @sbroenne/mcp-server-powerpoint@latest
新手?先看 mcpskill.org 教程 →