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)
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
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..."
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)
| Platform | Installation |
|---|---|
| Any MCP Client | dotnet tool install --global PptMcp.McpServer |
| Details | π Installation Guide |
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.CLIFor 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:
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!
π 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
Upstream projects by Stefan Broenner:
- mcp-server-excel (upstream) β Original MCP Server for Excel by Stefan Broenner
- pytest-aitest β LLM-powered testing framework for AI agents