powerpoint-mcp
Skill29 starsChanged 4 months agoMITView on GitHub
PowerPoint MCP Server skill for Windows presentation automation via a live PowerPoint desktop instance (COM/PIA). Use when an assistant needs rich MCP tools to create, open, build, format, and export PowerPoint (.pptx/.pptm) presentations — slides, shapes, text boxes, tables, native charts, images, audio, video, speaker notes, layouts, and image export for visual verification. Triggers: PowerPoint, presentation, deck, slides, pptx, pptm, speaker notes, chart, MCP.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- skills/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- powerpoint-cliSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 42
Use full Windows paths: C:\Users\Name\Documents\Deck.pptx.
- Very specific: line 49
Every editing action requires the sessionId returned by presentation(action: "create"/"open").
- Distinctive: line 89
Never end a turn with only a tool call.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PowerPoint MCP Server Skill
Provides 17 PowerPoint MCP tools (one presentation tool + 16 domain action-dispatch tools)
via the Model Context Protocol, driving a live PowerPoint desktop instance through the official
Microsoft.Office.Interop.PowerPoint PIA. Tools are auto-discovered via MCP tools/list — this
skill documents session lifecycle, indexing conventions, workflows, and gotchas that aren't
obvious from tool schemas alone.
Session lifecycle, Save As/copy, templates, the advisory Mark as Final flag, document properties,
and presentation tags use the presentation action-dispatch tool with camelCase arguments.
Domain tools (slide, shape, textframe, table, chart, image, media,
notes, layout, master, smartart, animation, export, pagesetup, accessibility, customshow) are
action-dispatch: one tool per domain, called as tool(action:
"kebab-action", session_id: ..., snake_case_param: ...).
Workflow Checklist
| Step | Tool | Action | When |
| 1. Create or open | presentation(action: "create"/"open") | Start a session, get sessionId | Always, before any edit |
| 3. Build | slide(action: "add-blank"), shape(action: "add-rectangle"/"add-text-box"/"add-auto-shape"/"add-line"/"add-connector"/"add-attached-connector"), table(action: "add-table"), chart(action: "add-chart"), image(action: "add-picture"), media(action: "add-media") | Add structure and content | As needed |
| 4. Format | textframe(action: "set-font-size"/"set-bold"/"set-font-color"), layout(action: "set-layout") | Apply formatting | After adding content |
| 5. Animate (optional) | animation(action: "add-effect"/"set-transition") | Add entrance/emphasis/exit effects or slide transitions | After content/layout are final |
| 6. Annotate | notes(action: "set-notes-text") | Add speaker notes | After each slide's content is final |
| 7. Verify | export(action: "export-slide-to-image"/"export-all-slides-to-images") | Visually confirm the result | After any visual change |
| 8. Save & close | presentation(action: "close", save: true) | Persist and release the session | Always last |
Preconditions
- Windows host with Microsoft PowerPoint installed (desktop, not web/mobile).
- Use full Windows paths:
C:\Users\Name\Documents\Deck.pptx. - The target
.pptx/.pptmfile must not be open in another PowerPoint window.
CRITICAL: Execution Rules (MUST FOLLOW)
Rule 1: Sessions Are Required for Every Edit
Every editing action requires the sessionId returned by presentation(action: "create"/"open").
See Behavioral Rules for the full session lifecycle.
Rule 2: Everything Is 1-Based
slideIndex, shapeIndex, and table row/column all start at 1, matching PowerPoint's own COM
object model — not 0-based like most languages. See
Behavioral Rules.
Rule 3: Save-on-Close Is Explicit
Nothing is written to disk unless presentation(action: "close", sessionId: ..., save: true) is
used. Closing with the default save: false discards all changes since the last save.
Rule 4: Close Does Not Block
presentation(action: "close", ...) returns immediately after removing the session; PowerPoint's own process
cleanup happens afterward in the background (can take up to a few minutes). Do not poll waiting
for the OS process to exit.
Rule 5: Verify Visually — This Is the Differentiator
export(action: "export-slide-to-image"/"export-all-slides-to-images", ...) renders real
PowerPoint output to an image. This is the only reliable way to catch overlapping shapes, text
overflow, or chart layout problems — text-only inspection tools (textframe(action: "get-text",
...), shape(action: "get-count", ...)) cannot. See
Export & Verify.
Rule 6: Never Ask Clarifying Questions
Discover state yourself instead of asking the user:
| Bad (Asking) | Good (Discovering) |
| "Which presentation is open?" | presentation(action: "list") |
| "How many slides are there?" | slide(action: "get-count", session_id: sessionId) |
| "What shapes are already on this slide?" | shape(action: "get-count", session_id: sessionId, slide_index: slideIndex) |
Rule 7: Always End With a Text Summary
Never end a turn with only a tool call. State what was built, the file path, and whether it was saved.
Tool Selection Quick Reference
| Task | Tool(s) | |
| Create/open/test/close/list sessions | presentation(action: "create"/"open"/"test"/"close"/"list") | |
| Apply template, read theme name | presentation(action: "apply-template"/"get-theme-name") | |
| Read/set advisory Mark as Final state | presentation(action: "get-final"/"set-final") | |
| Document metadata (built-in and custom properties) | presentation property actions | |
| String metadata on presentations, slides, or shapes | owner-specific set-tag/get-tag/list-tags/delete-tag actions | |
| Add/count/delete/duplicate/reorder slides | slide(action: "add-blank"/"get-count"/"delete"/"duplicate"/"move-to") | |
| Per-slide visibility, background color, sections | slide(action: "set-hidden"/"set-display-master-shapes"/"set-background-color"/"get-background-color"/"add-section"/"rename-section"/"delete-section"/"get-section-count"/"get-section-name") | |
| Add/count/delete/move/resize shapes | shape(action: "add-rectangle"/"add-text-box"/"add-text-effect"/"add-auto-shape"/"add-line"/"add-connector"/"add-attached-connector"/"get-count"/"delete"/"set-position"/"set-size") | |
| Align/distribute shapes | `shape(action: "align"/"distribute", shape_indexes: [...], align_cmd/distribute_cmd: "...", relative_to_slide: true | false)` |
| Merge shapes | shape(action: "merge", shape_indexes: [...], merge_type: "msoMergeUnion" / "msoMergeCombine" / "msoMergeIntersect" / "msoMergeSubtract" / "msoMergeFragment") | |
| Format shapes and manage links | shape(action: "set-fill"/"get-fill"/"set-line"/"get-line"/"copy-formatting"/"set-rotation"/"get-rotation"/"set-3d-rotation"/"get-3d-rotation"/"flip"/"set-z-order"/"set-shadow"/"get-shadow"/"set-glow"/"get-glow"/"set-reflection"/"get-reflection"/"set-soft-edge"/"get-soft-edge"/"set-bevel"/"get-bevel"/"group"/"ungroup"/"set-name"/"get-name"/"set-alt-text"/"get-alt-text"/"set-hyperlink"/"get-hyperlink"/"remove-hyperlink"/"get-link-info"/"update-link"/"break-link"/"set-link-auto-update") | |
| Duplicate shapes on the same slide or copy them to another slide | shape(action: "duplicate"/"copy-to-slide") | |
| Set/read/find/replace text and font formatting | textframe(action: "set-text"/"get-text"/"find-text"/"replace-text"/"set-font-size"/"set-bold"/"set-font-color"/"set-italic"/"set-underline"/"set-font-name"/"set-alignment"/"set-bullet") | |
| Tables | table(action: "add-table"/"set-cell-text"/"get-cell-text"/"insert-row"/"delete-row"/"insert-column"/"delete-column"/"set-cell-fill"/"get-cell-fill"/"set-cell-border"/"get-cell-border"/"merge-cells") | |
| Native charts | chart(action: "add-chart"/"get-chart-data"/"add-series"/"replace-chart-data"/"set-chart-title"/"get-chart-title"/"set-axis-title"/"get-axis-title"/"set-legend-visibility"/"get-legend-visibility"/"set-style"/"get-style"/"set-color-style"/"get-color-style"/"set-data-table"/"get-data-table") | |
| SmartArt diagrams | smartart(action: "add-smart-art"/"add-node"/"add-child-node"/"set-node-text"/"get-node-text"/"delete-node"/"get-node-count") | |
| Images (embedded by default; optional file links) | image(action: "add-picture"/"set-brightness-contrast"/"get-brightness-contrast"/"set-recolor"/"get-recolor"/"set-crop"/"get-crop") | |
| Audio and video | media(action: "add-media"/"get-media-info") | |
| Speaker notes | notes(action: "set-notes-text"/"get-notes-text") | |
| Slide layouts | layout(action: "set-layout"/"get-layout") | |
| Slide master theme, title/body font, background color | master(action: "list-masters"/"get-theme-colors"/"get-theme-fonts"/"get-title-font"/"set-title-font"/"get-body-font"/"set-body-font"/"get-background-color"/"set-background-color") | |
| Shape entrance/emphasis/exit effects, slide transitions | animation(action: "add-effect"/"get-effect-count"/"delete-effect"/"get-transition"/"set-transition") | |
| Visual verification | export(action: "export-slide-to-image"/"export-all-slides-to-images") | |
| Named custom shows (curated, ordered slide subsets) | customshow(action: "list"/"create"/"delete") |
Reference Documentation
See references/ for detailed guidance:
- Behavioral rules — sessions, indexing, save/close semantics
- Canonical create → build → verify → save → close workflow
- Deck builder — assembling a multi-slide deck
- Slides and shapes — add/position/size/delete
- String tags — presentation, slide, and shape metadata
- Text formatting — set-text, font size/bold/color
- Tables — add-table, cell text, row/column edits, fill/border formatting, merge
- Charts — add-chart/add-series categories/series/values, titles, legend
- SmartArt — add-smart-art layouts, node addressing, hierarchy diagrams
- Images — picture insertion and picture-format adjustments
- Audio and video — embedded/linked insertion and media metadata
- Speaker notes — set/get notes
- Layouts — set/get slide layout
- Slide master — theme colors/fonts, title/body font, and background color
- Animations — entrance/emphasis/exit effects and slide transitions
- Export and verify — the visual verification loop
- Anti-patterns — common mistakes to avoid
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

