Powerpoint MCP Server

by supercurses
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Allows retrieval of data from SQLite databases for inclusion in PowerPoint presentations, specifically mentioned for creating presentations based on database content

powerpoint MCP 服务器

创建 PowerPoint 演示文稿的 MCP 服务器项目

成分

工具

服务器实现了多个工具:

  • create-presentation :开始演示
    • 将“name”作为必需的字符串参数
    • 创建一个演示对象
  • add-slide-title-only :向演示文稿添加标题幻灯片
    • 将“presentation_name”和“title”作为必需的字符串参数
    • 创建带有“标题”的标题幻灯片并将其添加到演示文稿中
  • add-slide-section-header :向演示文稿添加节标题幻灯片
    • 将“presentation_name”和“header”作为必需的字符串参数
    • 创建带有“标题”(以及可选的“副标题”)的章节标题幻灯片并将其添加到演示文稿中
  • add-slide-title-content :向演示文稿添加带有内容幻灯片的标题
    • 将“presentation_name”、“title”、“content”作为必需的字符串参数
    • 创建带有“标题”和“内容”的内容幻灯片标题,并将其添加到演示文稿中
  • add-slide-title-with-table :添加带有表格的标题幻灯片
    • 将“presentation_name”、“title”、“data”作为必需的字符串和数组参数
    • 创建带有“标题”的标题幻灯片,并添加一个由数据动态构建的表格
  • 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

"env": { "TOGETHER_API_KEY": "api_key" }

需要指定 folder_path。所有演示文稿和图片都将保存到此文件夹。

"--folder-path", "/path/to/decks_folder"

快速入门

安装

确保已安装 UV

MacOS/Linux

curl -LsSf https://astral.sh/uv/install.sh | sh

视窗

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

克隆 repo

git clone https://github.com/supercurses/powerpoint.git

克劳德桌面

在 MacOS 上: ~/Library/Application\ Support/Claude/claude_desktop_config.json在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json

  • --directory :上面克隆 repo 的路径
  • --folder-path :PowerPoint 演示文稿和图片的保存路径。同时也是您希望 MCP 服务器使用的图片的存放路径。
# Add the server to your claude_desktop_config.json "mcpServers": { "powerpoint": { "command": "uv", "env": { "TOGETHER_API_KEY": "api_key" }, "args": [ "--directory", "/path/to/powerpoint", "run", "powerpoint", "--folder-path", "/path/to/decks_folder" ] }

使用示例

Create a presentation about fish, create some images and include tables and charts
Create a presentation about the attached paper. Please use the following images in the presentation: author.jpeg

假设您已安装 SQLite MCP 服务器。

Review 2024 Sales Data table. Create a presentation showing current trends, use tables and charts as appropriate

执照

此 MCP 服务器采用 MIT 许可证。这意味着您可以自由使用、修改和分发该软件,但须遵守 MIT 许可证的条款和条件。更多详情,请参阅项目仓库中的 LICENSE 文件。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

创建和操作 PowerPoint 演示文稿,具有添加各种幻灯片类型、生成图像以及通过自然语言命令合并表格和图表的功能。

  1. Components
    1. Tools
  2. Configuration
    1. Quickstart
      1. Install
      2. Usage Examples
    2. License
      ID: h1wl85c8gs