Skip to main content
Glama
trustypangolin

powerpoint-mcp-live

powerpoint-mcp-live

在 PowerPoint 打开时编辑演示文稿——AI 会附着在你已经打开的窗口上,而不会启动自己的窗口。

Live editing · Windows (COM) · 23 tools


大多数 PowerPoint MCP 服务器(包括本工作区自带的 mcp-server-powerpoint)的工作方式是启动一个全新的、不可见的 PowerPoint 进程,在其中打开你的文件,完成后再次关闭它。这对于脚本化生成演示文稿来说很棒,但这意味着 AI 永远不会看到你正在看的同一个窗口。

powerpoint-mcp-live 的做法恰恰相反:它通过 COM 附着到你已经打开的任何 PowerPoint 窗口上,采用与 word-mcp-liveexcel-mcp-live 相同的"查找正在运行的应用程序"方法。它从不启动 PowerPoint,也从不关闭它——它只操作你自己打开的演示文稿。

要求

  • Windows(COM 自动化仅限 Windows——本项目没有 macOS/Linux 模式)

  • 已安装 Microsoft PowerPoint 并且已打开一个演示文稿在运行

  • Python 3.11+

Related MCP server: mcp-powerpoint

安装

git clone <this-repo-url>
cd powerpoint-mcp-live
pip install -e .

或者使用 uv 直接从源码运行——无需安装步骤:

uv run powerpoint_mcp_server.py

客户端配置(.mcp.json

将你的 MCP 客户端指向项目目录。对于 Claude Code,请将此添加到项目中的 .mcp.json(或 ~/.claude.json 以进行用户级配置):

{
  "mcpServers": {
    "powerpoint-live": {
      "command": "uv",
      "args": [
        "--directory",
        "G:/Ai/MCP/powerpoint-mcp-live",
        "run",
        "powerpoint_mcp_server.py"
      ],
      "env": {
        "MCP_AUTHOR": "Your Name",
        "MCP_AUTHOR_INITIALS": "YN"
      }
    }
  }
}

如果你改用 pip install -e . 安装,则可以直接使用控制台脚本:

{
  "mcpServers": {
    "powerpoint-live": {
      "command": "powerpoint-mcp-live",
      "env": {
        "MCP_AUTHOR": "Your Name",
        "MCP_AUTHOR_INITIALS": "YN"
      }
    }
  }
}

MCP_AUTHOR / MCP_AUTHOR_INITIALS 设置附加到新幻灯片评论的作者姓名/缩写(默认:"Author" / "")。

支持的功能

每个工具都作用于已在 PowerPoint 中打开的演示文稿。presentation 几乎在所有地方都是可选的——省略它即可针对当前活动的演示文稿。

工具

描述

演示文稿

list_open_presentations

列出 PowerPoint 中打开的每个演示文稿

get_presentation_info

幻灯片数量、每张幻灯片的标题、当前活动幻灯片

save_presentation

就地保存(Ctrl+S)

幻灯片

list_slides

列出幻灯片索引和标题

add_slide

使用所选版式添加幻灯片

delete_slide

删除幻灯片

duplicate_slide

复制幻灯片,插入到原幻灯片之后

move_slide

将幻灯片重新排序到新位置

activate_slide

使幻灯片成为 PowerPoint 窗口中可见的那一张

形状与文本

list_shapes

列出幻灯片上的形状(名称、类型、位置、文本)

get_slide_text

读取幻灯片的标题和所有正文文本

add_textbox

在指定位置添加文本框

set_shape_text

设置现有形状/占位符的文本

delete_shape

删除形状

set_shape_position

移动和/或调整形状大小

格式设置

format_shape_text

粗体/斜体/下划线、字体、字号、颜色

format_shape

填充颜色、轮廓颜色、轮廓粗细

演讲者备注

get_speaker_notes

读取幻灯片的演讲者备注

set_speaker_notes

替换幻灯片的演讲者备注

导出

export_slide_to_image

将幻灯片导出为 PNG/JPG/BMP/GIF 以进行视觉验证

评论

add_comment

添加幻灯片评论(PowerPoint 2016+)

get_comments

列出幻灯片上的评论

delete_comment

删除评论

尚未覆盖:表格、图表、SmartArt、动画、切换效果、模板/主题——如需这些功能,请使用 mcp-server-powerpoint,它会启动自己的 PowerPoint 实例,并且操作覆盖范围更广。

示例提示

"I have this deck open — read the text on slide 3 and tell me if the bullets are too long."
"Add a new slide after slide 2 with a blank layout."
"Add a text box on slide 4 that says 'Draft — do not distribute' in red."
"Make the title on slide 1 bold and increase it to 44pt."
"Export slide 5 as an image so I can check whether anything overlaps."
"Add a comment on slide 3 asking if the chart numbers are up to date."

已知限制

  • 仅限 Windows。 PowerPoint COM 自动化在 macOS/Linux 上不存在。

  • 演示文稿必须已在 PowerPoint 中打开。 此服务器不会创建或打开文件——请参阅 mcp-server-powerpoint。

  • 无单次撤销分组。 Word 的 COM API 可以将多次编辑合并为一次 Ctrl+Z;PowerPoint 则不能(Excel 也不能)。执行多次写入的工具调用可能需要多次 Ctrl+Z 才能完全撤销。

  • 评论需要 PowerPoint 2016+(现代线程化评论)。

开发

有关架构说明和设计约束,请参阅 CLAUDE.md——特别是为什么此服务器绝不能自行启动或退出 PowerPoint。

Install Server
F
license - not found
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to create and manipulate PowerPoint presentations programmatically, including adding slides, exporting to PDF, and reading metadata.
    73
    5
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    Full-featured PowerPoint MCP server with cross-platform support (Windows native, macOS designed). Control PowerPoint programmatically via the Model Context Protocol — 153 tools covering slides, shapes, text, formatting, charts, tables, animations, and more.

View all related MCP servers

Related MCP Connectors

  • Generate, edit, and export AI presentations to PDF, PPTX, or a shareable link.

  • Deterministic, fully editable PowerPoint from typed slide intents. 200+ layouts, brand templates.

  • Presentations.AI MCP server — create designed slide decks from a topic, text, or document.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/trustypangolin/powerpoint-mcp-live'

If you have feedback or need assistance with the MCP directory API, please join our Discord server