通过自然语言命令创建和操作 PowerPoint 演示文稿,具备添加各种幻灯片类型、生成图像以及纳入表格和图表的功能。
file-systemsimage-and-video-processing
4.5k 查看 · 2026-07-07 更新
简介
通过自然语言命令创建和操作 PowerPoint 演示文稿,具备添加各种幻灯片类型、生成图像以及纳入表格和图表的功能。
简介
通过自然语言命令创建和操作 PowerPoint 演示文稿,具备添加各种幻灯片类型、生成图像以及纳入表格和图表的功能。
powerpoint MCP 服务器
一个创建 PowerPoint 演示文稿的 MCP 服务器项目
组件
工具
服务器实现了多个工具:
create-presentation: 开始一个新的演示文稿- 需要 "name" 作为必需的字符串参数
- 创建一个演示文稿对象
add-slide-title-only: 向演示文稿中添加仅含标题的幻灯片- 需要 "presentation_name" 和 "title" 作为必需的字符串参数
- 创建一个带有 "title" 的标题幻灯片并将其添加到演示文稿中
add-slide-section-header: 向演示文稿中添加节标题幻灯片- 需要 "presentation_name" 和 "header" 作为必需的字符串参数
- 创建一个带有 "header"(可选 "subtitle")的节标题幻灯片并将其添加到演示文稿中
add-slide-title-content: 向演示文稿中添加包含标题和内容的幻灯片- 需要 "presentation_name", "title", "content" 作为必需的字符串参数
- 创建一个带有 "title" 和 "content" 的幻灯片并将其添加到演示文稿中
add-slide-title-with-table: 向演示文稿中添加包含表格的标题幻灯片- 需要 "presentation_name", "title", "data" 作为必需的字符串和数组参数
- 创建一个带有 "title" 的标题幻灯片,并动态构建表格从数据中添加
add-slide-title-with-chart: 向演示文稿中添加包含图表的标题幻灯片- 需要 "presentation_name", "title", "data" 作为必需的字符串和对象参数
- 创建一个带有 "title" 的标题幻灯片,并根据数据源动态构建图表。尝试从数据源确定最佳图表类型。
add-slide-picture-with-caption: 向演示文稿中添加带说明的图片幻灯片- 需要 "presentation_name", "title", "caption", "image_path" 作为必需的字符串参数
- 使用提供的 "title", "caption", 和 "image_path" 创建一个带说明的图片幻灯片。可以使用通过 "generate-and-save-image" 工具生成的图片,或者使用用户提供的 "image_path"(图片必须存在于 folder_path 中)
open-presentation: 打开一个演示文稿进行编辑- 需要 "presentation_name" 作为必需的参数
- 打开给定的演示文稿并自动保存一个备份为 "backup.pptx"
- 该工具允许客户端处理现有的 pptx 文件并向其中添加幻灯片。只需确保客户端在最后调用 "save-presentation" 工具。
save-presentation: 将演示文稿保存到文件- 需要 "presentation_name" 作为必需的参数
- 将演示文稿保存到 folder_path。客户端必须调用此工具以完成整个过程。
generate-and-save-image: 使用 FLUX 模型为演示文稿生成图像- 需要 "prompt" 和 "file_name" 作为必需的字符串参数
- 使用 TogetherAI 上的免费 FLUX 模型创建图像(需要 API 密钥)
配置
环境变量对于通过TogetherAI生成图像来说是必需的 注册账户: [https://api.together.xyz/settings/api-keys](https://link.0)
#0
需要一个folder_path。所有的演示文稿和图片都将保存到此文件夹中。
#1
## 快速开始 ### 安装 #### 确保已安装UV MacOS/Linux
#2
Windows
#3
#### 克隆仓库
#4
#### Claude 桌面版 在MacOS上: `~/Library/Application\ Support/Claude/claude_desktop_config.json` 在Windows上: `%APPDATA%/Claude/claude_desktop_config.json` - ```--directory```: 上方克隆仓库的路径 - ```--folder-path```: 用于保存PowerPoint幻灯片和图片的路径。同样,这也是你应该放置任何希望MCP服务器使用的图片的位置。
#5
### 使用示例
#6
#7
假设你已经安装了SQLite MCP服务器。
#8
# 许可证 本MCP服务器采用MIT许可证授权。这意味着你可以自由使用、修改和分发该软件,但需遵守MIT许可证的条款和条件。更多详情,请参见项目仓库中的LICENSE文件。 ## 工具列表 - **create-presentation**: This tool starts the process of generating a new powerpoint presentation with the name given by the user. Use this tool when the user requests to create or generate a new presentation. - **generate-and-save-image**: Generates an image using a FLUX model and save the image to the specified path. The tool will return a PNG file path. It should be used when the user asks to generate or create an image or a picture. - **add-slide-title-only**: This tool adds a new title slide to the presentation you are working on. The tool does not return anything. It requires the presentation_name to work on. - **add-slide-section-header**: This tool adds a section header (a.k.a segue) slide to the presentation you are working on. The tool does not return anything. It requires the presentation_name to work on. - **add-slide-title-content**: Add a new slide with a title and content to an existing presentation - **add-slide-comparison**: Add a new a comparison slide with title and comparison content. Use when you wish to compare two concepts - **add-slide-title-with-table**: Add a new slide with a title and table containing the provided data - **add-slide-title-with-chart**: Add a new slide with a title and chart. The chart type will be automatically selected based on the data structure. - **add-slide-picture-with-caption**: Add a new slide with a picture and caption to an existing presentation - **open-presentation**: Opens an existing presentation and saves a copy to a new file for backup. Use this tool when the user requests to open a presentation that has already been created. - **save-presentation**: Save the presentation to a file. Always use this tool at the end of any process that has added slides to a presentation. ## 来源 - 来源:github - 链接:https://github.com/supercurses/powerpoint