PptMcp

PptMcp

Enables AI assistants to automate Microsoft PowerPoint through natural language, supporting slide creation, text formatting, charts, animations, and export via the COM API.

Category
访问服务器

README

PptMcp - MCP Server for Microsoft PowerPoint

Release Release Workflow NuGet MCP Server NuGet CLI License: MIT .NET Platform Built with Copilot

Automate PowerPoint with AI — A Model Context Protocol (MCP) server for comprehensive PowerPoint automation through conversational AI.

PptMcp enables AI assistants such as GitHub Copilot, Claude, and ChatGPT to automate Microsoft PowerPoint through natural language commands. It covers real presentation work end to end: create slides, edit text, place shapes and images, build charts and tables, apply themes, run VBA, export to PDF or video, and manage live PowerPoint windows safely through the native COM API.

Origin and credit: This project builds on the original MCP automation foundation created by Stefan Broenner (sbroenne) in mcp-server-excel, extended here into a full PowerPoint-focused toolchain.

Releases and packages: GitHub Releases | NuGet: PptMcp.McpServer | NuGet: PptMcp.CLI

For multi-phase build / verify / repair workflows from source, the repo also includes the official orchestration client under src\PptMcp.Agent.

🛡️ 100% Safe — Uses PowerPoint's Native COM API — Zero risk of file corruption. Uses PowerPoint's official COM API ensuring complete safety and compatibility.

💡 Interactive Development — See results instantly in PowerPoint. Add slides, create charts, format text, and iterate. PowerPoint becomes your AI-powered workspace.

Technical Requirements:

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

🎯 What You Can Do

33 specialized tools with 204 operations:

  • 📄 Slides (1 tool, 8 ops) — Create, duplicate, move, delete, apply layouts, set name
  • 🔷 Shapes (1 tool, 19 ops) — Add, move, resize, fill, line, shadow, rotation, z-order, grouping, copy, connectors, merge, flip, duplicate
  • 📝 Text (1 tool, 5 ops) — Get/set text, find, replace, format
  • 📊 Charts (1 tool, 5 ops) — Create charts, set title, type, get info, delete
  • 📋 Slide Tables (1 tool, 8 ops) — Create, read, write cells, add/delete rows and columns, merge cells
  • 🎬 Animations (1 tool, 4 ops) — List, add, remove, clear animation effects
  • 🔄 Transitions (1 tool, 4 ops) — Get, set, remove, copy to all slides
  • 🎨 Design/Themes (1 tool, 4 ops) — List designs, apply themes, get theme colors, list color schemes
  • 🖼️ Images (1 tool, 1 op) — Insert images with position and size control
  • 📝 Notes (1 tool, 4 ops) — Get, set, clear, append speaker notes
  • 🏷️ Sections (1 tool, 4 ops) — List, add, rename, delete presentation sections
  • 🔗 Hyperlinks (1 tool, 4 ops) — Add, read, list, remove hyperlinks
  • 📺 Slideshow (1 tool, 4 ops) — Start, stop, navigate, get status
  • 🎭 Slide Masters (1 tool, 1 op) — List masters and layouts
  • 📤 Export (1 tool, 5 ops) — PDF, slide images, video (MP4), print, save-as (7 formats)
  • 📝 VBA (1 tool, 5 ops) — List, view, import, delete, run macros
  • 🎥 Media (1 tool, 3 ops) — Insert audio/video, get media info
  • 🪟 Window (1 tool, 5 ops) — Get info, minimize, restore, maximize, set zoom
  • 📁 Files (1 tool, 1 op) — File validation and info
  • 📑 Document Properties (1 tool, 2 ops) — Get/set title, author, subject, etc.
  • 💬 Comments (1 tool, 4 ops) — Add, list, delete, clear slide comments
  • 📌 Placeholders (1 tool, 2 ops) — List placeholders, set placeholder text
  • 🎨 Slide Background (1 tool, 4 ops) — Get info, set solid color, set image, reset to master
  • 📋 Headers & Footers (1 tool, 2 ops) — Get/set footer text, slide numbers, date
  • 🧩 SmartArt (1 tool, 2 ops) — Get diagram info, add nodes
  • 📐 Shape Alignment (1 tool, 2 ops) — Align and distribute shapes on slides
  • 🎪 Custom Shows (1 tool, 3 ops) — Create, list, delete custom slide shows
  • 📏 Page Setup (1 tool, 2 ops) — Get/set slide size and orientation
  • 📥 Slide Import (1 tool, 1 op) — Import slides from another .pptx file
  • 🏷️ Tags (1 tool, 3 ops) — Custom metadata on slides and shapes

📚 Complete Feature Reference → — Detailed documentation of all 156 operations

💬 Example Prompts

Create & Build Presentations:

  • "Create a new PowerPoint presentation called QuarterlyReport.pptx with a title slide"
  • "Add 5 slides with a 'Title and Content' layout"
  • "Insert a company logo image on the first slide"

Content & Formatting:

  • "Add a textbox on slide 2 with the text 'Q1 Revenue Summary' in bold 24pt Arial"
  • "Create a table on slide 3 with columns for Region, Q1, Q2, Q3, Q4"
  • "Set the shape fill color to #0078D4 and add a 2pt border"

Charts & Visuals:

  • "Create a bar chart on slide 4 showing quarterly revenue data"
  • "Set the chart title to 'Revenue by Quarter'"
  • "Add an entrance animation to the chart shape"

Automation:

  • "Export the presentation as PDF"
  • "Run the FormatAllSlides macro"
  • "Show me PowerPoint while you work" — watch changes in real-time

🪟 Agent Mode — Watch AI Work in PowerPoint:

  • "Show me PowerPoint side-by-side while you build this presentation" — real-time visibility
  • "Let me watch while you create the slides"
  • Status bar shows live progress: "PptMcp: Creating chart on slide 4..."

👥 Who Should Use This?

Perfect for:

  • ✅ Presenters automating repetitive PowerPoint workflows
  • ✅ Developers building PowerPoint-based reporting solutions
  • ✅ Business users managing complex presentation decks
  • ✅ Teams maintaining presentation templates and VBA macros

Not suitable for:

  • ❌ Server-side processing (use libraries like Open XML SDK instead)
  • ❌ Linux/macOS users (Windows + PowerPoint installation required)
  • ❌ High-volume batch operations (consider PowerPoint-free alternatives)

🚀 Quick Start

Platform Installation
Any MCP Client dotnet tool install --global PptMcp.McpServer
Details 📖 Installation Guide

⚠️ Important: Close all PowerPoint files before using. The server requires exclusive access to presentations during automation.

🔧 CLI vs MCP Server

This package provides both CLI and MCP Server interfaces. Choose based on your use case:

Interface Best For Why
CLI (pptcli) Coding agents (Copilot, Cursor, Windsurf) Fewer tokens — single tool, no large schemas.
MCP Server Conversational AI (Claude Desktop, VS Code Chat) Rich tool discovery, persistent connection.

Manual Installation:

# Install MCP Server and CLI
dotnet tool install --global PptMcp.McpServer
dotnet tool install --global PptMcp.CLI

🤖 Optional: Official Agent Client from Source

For larger deck-building tasks, this repo also ships an official source-side controller: src\PptMcp.Agent.

It is intentionally not a third server surface. Instead, it sits above the MCP server and runs one client-side loop:

  • plan the deck
  • execute through normal sequential MCP tool calls
  • verify the generated deck
  • repair incomplete output when needed

Quick start:

dotnet build src\PptMcp.McpServer\PptMcp.McpServer.csproj -c Release

Set-Location src\PptMcp.Agent
npm install
npm run check
npm test

node .\src\cli.mjs run `
  --task "Build a 5-slide executive deck on Q4 revenue performance and next actions." `
  --output "C:\Users\you\Documents\q4-revenue-deck.pptx"

Read more:

⚙️ How It Works — COM Automation & Unified Service Architecture

PptMcp uses Windows COM automation to control the actual PowerPoint application (not just .pptx files).

Both the MCP Server and CLI communicate with a shared PptMcp Service that manages PowerPoint sessions. This unified architecture enables:

┌─────────────────────┐     ┌─────────────────────┐
│   MCP Server        │     │   CLI (pptcli)    │
│  (AI assistants)    │     │  (coding agents)    │
└─────────┬───────────┘     └─────────┬───────────┘
          │                           │
          └──────────┬────────────────┘
                     ▼
          ┌─────────────────────────┐
          │   PptMcp Service      │
          │  (shared session mgmt)  │
          └─────────┬───────────────┘
                    ▼
          ┌─────────────────────────┐
          │   PowerPoint COM API    │
          │  (PowerPoint.Application)│
          └─────────────────────────┘

Key Benefits:

  • ✅ Shared Sessions — CLI and MCP Server can access the same open presentations
  • ✅ Single PowerPoint Instance — No duplicate processes or file locks
  • ✅ System Tray UI — Monitor active sessions via the PptMcp tray icon

💡 Tip: Watch PowerPoint While AI Works By default, PowerPoint runs hidden for faster automation. To see changes in real-time, just ask:

  • "Show me PowerPoint while you work"
  • "Let me watch what you're doing"
  • "Open PowerPoint so I can see the changes"

The AI will display the PowerPoint window so you can watch every operation happen live!

📋 Additional Information

📚 CLI Guide → | MCP Server Guide → | Agent Client → | Eval Framework → | Archetype Pipeline → | All Agent Skills →

License: MIT License - see LICENSE file

Contributing: See CONTRIBUTING.md for guidelines

Built With: This entire project was developed using GitHub Copilot AI assistance - mainly with Claude but lately with Auto-mode.

Acknowledgments:

  • Microsoft PowerPoint Team — For comprehensive COM automation APIs
  • Model Context Protocol community — For the AI integration standard
  • Open Source Community — For inspiration and best practices

Related Projects

Upstream projects by Stefan Broenner:

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选