Skip to main content
Glama
Powerpoint MCP Server

Powerpoint MCP Server

by supercurses

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 密钥)

Related MCP server: PowerPoint MCP Server

配置

通过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 文件。

Available Tools

11 tools
add-slide-comparisonA

Add a new a comparison slide with title and comparison content. Use when you wish to compare two concepts

Inputs: presentation_name (required), title (required), left_side_title (required), left_side_content (required), +2 more.

add-slide-picture-with-captionC

Add a new slide with a picture and caption to an existing presentation

Inputs: presentation_name (required), title (required), caption (required), image_path (required).

add-slide-section-headerC

This tool adds a section header (a.k.a segue) slide to the presentation you are working on. The tool doesn't return anything. It requires the presentation_name to work on.

Inputs: presentation_name (required), header (required), subtitle.

add-slide-title-contentC

Add a new slide with a title and content to an existing presentation

Inputs: presentation_name (required), title (required), content (required).

add-slide-title-onlyB

This tool adds a new title slide to the presentation you are working on. The tool doesn't return anything. It requires the presentation_name to work on.

Inputs: presentation_name (required), title (required).

add-slide-title-with-chartC

Add a new slide with a title and chart. The chart type will be automatically selected based on the data structure.

Inputs: presentation_name (required), title (required), data (required).

add-slide-title-with-tableC

Add a new slide with a title and table containing the provided data

Inputs: presentation_name (required), title (required), data (required).

create-presentationB

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.

Inputs: name (required).

generate-and-save-imageB

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.

Inputs: prompt (required), file_name (required).

open-presentationB

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.

Inputs: presentation_name (required), output_path.

save-presentationA

Save the presentation to a file. Always use this tool at the end of any process that has added slides to a presentation.

Inputs: presentation_name (required), output_path.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 11 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no ambiguity. The slide-adding tools are specialized for different slide types (comparison, picture-with-caption, section-header, title-content, title-only, title-with-chart, title-with-table), while the other tools handle presentation lifecycle operations (create, open, save) and image generation. An agent can easily select the right tool based on the desired slide type or operation.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using snake_case. The slide-adding tools consistently use 'add-slide-' prefix followed by the slide type, while other tools use clear action verbs like 'create-', 'open-', 'save-', and 'generate-and-save-'. There are no deviations in naming conventions.

    Tool Count5/5

    With 11 tools, this server is well-scoped for PowerPoint presentation creation and management. The count is appropriate, covering various slide types, presentation lifecycle operations, and image generation. Each tool earns its place without being excessive or insufficient for the domain.

    Completeness4/5

    The tool surface is nearly complete for PowerPoint presentation creation and editing. It covers creation, opening, saving, and multiple slide types. The only minor gap is the lack of tools for editing or deleting existing slides, which agents might need to work around by creating new presentations. However, core workflows for building presentations from scratch are well-covered.

    Related MCP Connectors

    Related MCP Servers