PowerPoint MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PowerPoint MCP add speaker notes to slide 3 summarizing the key points"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PowerPoint MCP
An MCP server that lets AI assistants manipulate live, open PowerPoint presentations on macOS and PowerPoint Web via Office.js APIs.
Unlike file-based tools (python-pptx), PowerPoint MCP works with presentations that are already open — changes appear instantly, and you keep full access to PowerPoint's UI, animations, and formatting.
Installation
Codex Plugin
This repository includes Codex plugin metadata in .codex-plugin/ and Codex repo instructions in AGENTS.md.
For local development:
git clone https://github.com/kzarzycki/powerpoint-mcp.git
cd powerpoint-mcp
npm install
npm run buildThe Codex plugin MCP config in .mcp.json uses the shared HTTP MCP endpoint:
{
"mcpServers": {
"powerpoint-mcp": {
"type": "http",
"url": "http://localhost:3001/mcp"
}
}
}The Codex plugin ships a SessionStart hook in hooks/hooks.json. On session start it runs scripts/start-http-bridge.sh, which starts the built bridge with node ./dist/index.cjs --http --bridge if the HTTP MCP server or add-in bridge is not already healthy.
Then restart PowerPoint, open a presentation, and click the bridge add-in in the ribbon. For manual local development, start the TypeScript source directly with node --experimental-strip-types ./server/index.ts --http --bridge.
Claude Code Plugin (recommended)
Zero-config install from the marketplace. MCP auto-starts, add-in auto-sideloads, skill included.
/plugin marketplace add kzarzycki/powerpoint-mcp
/plugin install powerpoint-mcp@powerpoint-mcpThen restart PowerPoint, open a presentation, and click the bridge add-in in the ribbon.
Claude Desktop Extension
Build and install as a one-click .mcpb extension (from source):
git clone https://github.com/kzarzycki/powerpoint-mcp.git
cd powerpoint-mcp
npm install && npm run build:mcpb
open powerpoint-mcp-*.mcpb # opens Claude Desktop installerThe extension auto-starts the bridge and auto-sideloads the add-in. Restart PowerPoint after first install.
Known limitations:
Chat mode only — Cowork and Code tabs don't load desktop extensions (upstream bug)
Single instance — only one bridge can run on port 8080
From source (development)
git clone https://github.com/kzarzycki/powerpoint-mcp.git
cd powerpoint-mcp
npm install
npm run sideload # copies manifest to PowerPoint's add-in folder
npm start -- --http --bridge # starts the MCP HTTP transport (:3001/mcp) + add-in bridge (:8080)Then point your MCP client at the HTTP transport. Create or merge into the project's .mcp.json:
{
"mcpServers": {
"powerpoint-mcp": {
"type": "http",
"url": "http://localhost:3001/mcp"
}
}
}Restart PowerPoint, open a presentation, and click the bridge add-in in the ribbon. For STDIO mode and other standalone options, see skills/powerpoint-mcp/references/setup.md.
Related MCP server: Office-PowerPoint-MCP
Motivation
This project was inspired by the Claude in PowerPoint add-in. The first time I tried it, I was amazed — it edits live, open decks via Office.js, and the results are far better than file-based pptx tools. But it only works inside the add-in, which means no access to CLAUDE.md, skills, or any other Claude Code features. PowerPoint MCP brings those same Office.js capabilities to Claude Code (and any MCP client) so you get live editing with the full power of your coding environment.
The project was originally named powerpoint-bridge and renamed to powerpoint-mcp in v0.5.0. The "bridge server" component keeps its name — it bridges MCP and the Office.js add-in over WebSocket.
Architecture
AI Assistant <--MCP STDIO/HTTP--> Bridge Server (Node.js) <--WS/WSS--> PowerPoint Add-in (Office.js)
| |
STDIO (default) Desktop: WKWebView sandbox
or HTTP (:3001/mcp) Web: browser iframe
localhost:8080 (HTTP) Office.js API 1.1-1.8
or :8443 (HTTPS) executes commands on
serves add-in files + WS live presentationTwo MCP transports are supported:
STDIO (default) — used by plugin installs and
--stdioflag; the MCP client spawns the server process directlyHTTP —
127.0.0.1:3001/mcp; enabled by the--httpflag (e.g.node server/index.ts --http --bridgefor development with.mcp.json)
Three components in one repo:
addin/— Office.js taskpane add-in that loads inside PowerPoint and connects as a WebSocket clientserver/— Node.js bridge server: HTTP + WS + MCP transport (HTTPS/WSS opt-in viaBRIDGE_TLS=1)skills/powerpoint-mcp/— Claude Code skill with tool docs, code patterns, and setup guide (auto-installed with plugin)certs/— Optional local TLS certificates for HTTPS mode (generated, gitignored)
Prerequisites
macOS (primary platform) or PowerPoint Web in Chrome/Brave (requires HTTPS mode)
Node.js >= 24 (uses native TypeScript execution)
Microsoft PowerPoint for Mac or a Microsoft 365 account for PowerPoint Web
brew install nodeAvailable Tools
Tool | Description |
| Lists all connected presentations with their IDs and status |
| Deck overview: slide dimensions, theme (colors + fonts), and all slides with layout and shape count |
| Slide layouts with names, types, placeholders, and positions. Supports field selection |
| Returns detailed shape info for a slide (text, positions, sizes, fills) |
| Lightweight shape scanner: IDs, types, and positions |
| Captures a visual screenshot of a slide as PNG (requires PowerPoint 16.96+) |
| Returns thumbnails + text for all/selected slides in one call (efficient full-deck review) |
| Copies slides between two open presentations (data stays server-side, never in Claude context) |
| Inserts an image from a file path, URL, or base64 data onto a slide |
| Returns a local file path for the presentation (passthrough for local, exports cloud files to temp .pptx) |
| Search Microsoft Fluent UI icons by keyword and insert as SVG |
| Runs arbitrary Office.js code inside the live presentation |
| Add a new slide from a named layout at a specific position, with placeholder text pre-filled |
| Duplicate a slide within the same presentation; data stays server-side |
| Lightweight text extractor: slide titles and body text as plain strings (~20x smaller than inspect_slide) |
| Read raw OOXML |
| Replace paragraph content of a shape with raw OOXML |
| Read the full raw OOXML of a slide, or filter to a specific shape |
| Edit slide XML and reimport (xml mode or JS code mode for DOM manipulation) |
| Read multiple files from the exported slide zip (slide XML, rels, chart XMLs, Content_Types) |
| Update multiple files in the slide zip and reimport in a single operation |
| Create a chart on a slide from structured data (column, bar, line, pie, doughnut, area) via OOXML |
| Read speaker notes from slides as plain text |
| Set speaker notes on one or more slides; accepts markdown text |
| Apply fill color and font formatting to multiple shapes on a slide in one call |
| Search for text across all slides — like grep for slides; supports regex |
| Run programmatic checks on a slide (overlaps, out-of-bounds, empty text, unused placeholders) |
When multiple presentations are open, pass presentationId (from list_presentations) to target a specific one.
Limitations
Limited image control — Images inserted via Common API (
insert_imagetool), not shape API; positioning works but no shape-level manipulation after insertionCharts via OOXML — Charts created by injecting OOXML (
edit_slide_chart), not via Office.js chart APINo animations — Not exposed in stable APIs
Solid fills only — No gradients, effects, or shadows
Points for positioning — All position/size values are in points (1 point = 1/72 inch)
Security
PowerPoint MCP assumes a single-user, locally-trusted machine. Both network servers bind to the loopback interface only:
The bridge server (HTTP + WebSocket) binds to
127.0.0.1:8080(or127.0.0.1:8443withBRIDGE_TLS=1)The MCP HTTP transport binds to
127.0.0.1:3001; the default STDIO transport opens no network portThe MCP HTTP transport enables DNS-rebinding protection (rejects requests whose
Hostheader is not127.0.0.1:3001/localhost:3001)The MCP HTTP transport bounds
/mcprequest bodies to 16 MiB (16,777,216 bytes), enforced while the body streams in rather than after it is fully buffered. The ceiling covers the largest supported request — a base64-encoded image viainsert_image— with headroom: base64 inflates raw bytes by ~4/3, so 16 MiB admits a ~12 MB source image plus the surrounding JSON-RPC envelope. An oversized or over-length chunked upload gets a413response (Request body too large) instead of being buffered into memory; the connection remains usable for the next request.On startup the server makes one outbound
GET https://registry.npmjs.org/powerpoint-mcp/latestto check for a newer version. Nothing is sent beyond the request itself; no presentation data, telemetry, or identifiers. Disable it withBRIDGE_NO_UPDATE_CHECK=1or the--no-update-checkflag.
Local file and URL access. The insert_image tool reads arbitrary local file paths (sourceType: 'file') and fetches arbitrary URLs (sourceType: 'url') with the full privileges of the server process. A URL fetch can reach internal/loopback addresses (SSRF), and a file read can pull in any file the user can read. Only run the bridge on a trusted, single-user machine.
Local-trust posture. The add-in executes whatever JavaScript the bridge sends it over the local WebSocket. The bridge WebSocket enforces an Origin allowlist: it only accepts the upgrade when the request's Origin header exactly matches the bridge's own currently-serving origin (http://localhost:PORT, or https://localhost:PORT with BRIDGE_TLS=1) — the origin the add-in's own served page always connects from, on both PowerPoint for Mac and PowerPoint Web (the WAC host frame at officeapps.live.com never opens this socket itself; the taskpane iframe it hosts navigates directly to the bridge origin first). A missing, malformed, or foreign Origin is rejected before the socket can register or answer any pending request — a real browser/webview always sends Origin on a WebSocket handshake, so no legitimate client is excluded. This is an origin policy, not authentication: it stops a foreign page's script from driving the bridge, but any local process that can reach the loopback port and mimic that Origin header still can. Do not run PowerPoint MCP on a shared or multi-user host.
execute_officejs runs arbitrary code inside PowerPoint's Office.js runtime. This is by design — it gives the AI full access to the Office.js API. Only use this with MCP clients you trust.
Planned hardening. Before binding to any non-loopback interface or shipping a remote-MCP deployment, the bridge needs a per-session handshake token and an authenticated transport.
Troubleshooting
Add-in not appearing in PowerPoint
Run
npm run sideloadand restart PowerPointCheck that the file exists:
~/Library/Containers/com.microsoft.Powerpoint/Data/Documents/wef/manifest.xml
Add-in shows "Disconnected"
Make sure the bridge server is running. In plugin mode the server auto-starts with Claude Code — call any tool to verify. For standalone installs, run npm start -- --bridge and verify with curl http://127.0.0.1:8080/health. The add-in auto-reconnects with exponential backoff.
Using HTTPS mode (required for PowerPoint Web) HTTPS is required for PowerPoint Web and optional for desktop. To enable:
brew install mkcert && mkcert -install(one-time, trusts the CA in browsers)npm run setup-certsto generate localhost certificatesFor desktop:
npm run sideload:httpsand restart PowerPointFor PowerPoint Web: open a presentation at office.com, go to Home → Add-ins → Upload My Add-in, and upload
addin/manifest-https.xmlStart the server:
BRIDGE_TLS=1 npm start -- --bridge
Platform Support
Platform | Status |
macOS | Supported (primary) |
PowerPoint Web | Supported — requires HTTPS mode, sideload via browser (all tools work) |
Windows | Untested — different sideloading path |
Linux | Not supported (no PowerPoint for Linux) |
Auto-Activation
The add-in uses Office.AutoShowTaskpaneWithDocument to minimize manual activation:
Platform | Behavior |
macOS desktop | Taskpane auto-opens when the add-in is sideloaded. Closing the pane keeps the WebSocket connection alive (shared runtime with |
PowerPoint Web | One ribbon click per document per browser session to activate. After activation, the pane auto-reopens on page reload. Closing the pane keeps the connection alive within the session. |
New file from template | OOXML template embedding can pre-activate the add-in (see below) |
Requires SharedRuntime 1.1 (PowerPoint 16.46+ on Mac, 2102+ on Windows). Centralized Deployment via Microsoft 365 admin center can eliminate the manual click for organizational use.
Preparing Templates for Auto-Open
External tools can embed the add-in reference directly into .pptx templates so the add-in activates on first open without prior installation. This requires injecting two OOXML parts into the .pptx zip:
ppt/webextensions/webextension1.xml— add-in reference withOffice.AutoShowTaskpaneWithDocumentpropertyppt/webextensions/taskpane.xml— taskpane configuration (dock state, visibility, width)
Plus the corresponding entries in [Content_Types].xml and relationship files.
Set visibility="0" if the add-in must already be sideloaded; set visibility="1" to prompt users to install it on first open.
For a complete working example, see Office-OOXML-EmbedAddin. The add-in ID to reference is AE89909C-2813-4B08-9E1B-49E7379BD0E6 with storeType="Registry" and store="developer" for sideloaded installations.
Contributing
See CONTRIBUTING.md for development setup and guidelines.
License
Available Tools
27 toolsadd_slideA
Add a new slide from a layout at a specific position, with placeholder text pre-filled and shapes renamed to layout names. Use inspect_layouts to find available layout names and placeholder names. Returns the new slide index and its placeholder shapes with semantic names.
Inputs: layoutName (required), position, placeholders, presentationId.
copy_slidesA
Copies slides between two open presentations entirely server-side — the Base64 data never enters Claude context. Exports from the source presentation and inserts into the destination in a single operation. Both presentations must be connected to the bridge. Requires PowerPointApi 1.8.
Inputs: sourceSlideIndex (required), sourcePresentationId (required), destinationPresentationId (required), formatting, +1 more.
duplicate_slideA
Duplicate a slide within the same presentation. Exports the slide and reimports it at the specified position. Data stays server-side.
Inputs: slideIndex (required), insertAfter, presentationId.
edit_shape_paragraphsA
Replace paragraph content of a shape with raw OOXML <a:p> XML. Preserves <a:bodyPr> and <a:lstStyle>. Use read_shape_paragraphs first to get the current XML, modify it (using /pptx skill knowledge), then write it back. The slide is exported, modified server-side, and reimported — data never enters Claude's context.
Inputs: xml (required), shapeId (required), slideIndex (required), presentationId.
edit_slide_chartA
Create a chart on a slide from structured data. Generates all OOXML automatically (chart XML, rels, graphic frame, Content_Types). Supports column, bar, line, pie, doughnut, and area charts with multiple series.
Inputs: title (required), series (required), chartType (required), categories (required), +4 more.
edit_slide_xmlA
Edit slide XML and reimport. Two modes: (1) xml mode — provide finished XML string (use read_slide_xml first to get current XML), (2) code mode — provide JS code that manipulates the pre-parsed DOM (receives: doc, findShapeById, NS_P, NS_A, escapeXml, serializeXml, DOMParser). Code mode preserves untouched attributes. The slide is exported, modified server-side, and reimported — data never enters Claude's context.
Inputs: slideIndex (required), xml, code, shapeId, +2 more.
edit_slide_zipA
Update multiple files in the slide zip and reimport in a single operation. Accepts a map of { path: content } — can modify existing files or add new ones (e.g. chart XML + rels). Auto-registers Content_Types for new chart files. Use read_slide_zip first to get the current content.
Inputs: files (required), slideIndex (required), presentationId.
edit_speaker_notesA
Set speaker notes on one or more slides. Accepts markdown text (paragraphs, bold, italic). Converts to OOXML server-side and injects via single-slide reimport. Replaces all existing notes on the specified slides.
Inputs: notes (required), presentationId.
execute_officejsB
Execute arbitrary Office.js code inside the live PowerPoint presentation. The code runs inside PowerPoint.run(async (context) => { ... }) with 'context' available as a variable. Use 'await context.sync()' after loading properties. Return a value to get it back as the tool result. For positioning, all values are in points (1 point = 1/72 inch). Common operations: add shapes, set text, change colors, add/delete slides.
Inputs: code (required), presentationId.
format_shapesA
Apply formatting to multiple shapes on a slide in one call. Generates Office.js code internally. Use for fill color, font bold/italic/size/color/name. Cannot set corner radius or borders (use edit_slide_xml code mode for those).
Inputs: shapes (required), slideIndex (required), presentationId.
get_local_copyA
Returns a local file path for the presentation. For local files, returns the existing path. For SharePoint/cloud files, exports server-side and saves to a temp .pptx. Caches by revision number — re-exports only when the presentation has been saved since last export.
Inputs: presentationId.
insert_imageA
Inserts an image onto a slide using Office.js setSelectedDataAsync with CoercionType.Image. Accepts a file path, URL, or raw base64 data. Optionally navigate to a specific slide first and control position/size in points.
Inputs: source (required), sourceType (required), top, left, +5 more.
inspect_deckA
Deck overview: slide dimensions, theme (colors + fonts), and all slides with index, ID, and shape count. Use as the first call to understand deck structure. Theme is cached after the first call. For shape details, follow up with scan_slide or inspect_slide on specific slides. For available layouts, use inspect_layouts.
Inputs: presentationId.
inspect_layoutsA
Returns slide layouts with names, OOXML type (e.g. blank, twoObj, secHead), master/layout indices, and detailed placeholders. Use fields to control which data is returned. By default reads all layouts from every slide master in OOXML (complete list, requires file access — may take a moment on first call for cloud files). Layouts sharing a name across different masters are distinguished by masterIndex. Set usedOnly to return only layouts assigned to existing slides (fast, Office.js only, no file access).
Inputs: fields, usedOnly, presentationId.
inspect_slideA
Detailed slide inspector (~80 tokens/shape): returns every shape with text content, positions, sizes, and fill colors, plus slide dimensions. Supports slideRange for multiple slides. For just positions without text/fills, use scan_slide instead.
Inputs: slideRange (required), presentationId.
list_presentationsA
Lists all PowerPoint presentations currently connected to the bridge server. Shows presentation IDs (file paths for saved files, generated IDs for unsaved) and connection status. Use this to find the presentationId to pass to other tools when multiple presentations are open.
Inputs: no named parameters.
preview_deckA
Deck preview: batch overview of all/selected slides with optional thumbnails + text. With images: ~900 tokens/slide; text-only (includeImages=false): ~35 tokens/slide. Use for visual review or content audit. Do NOT use to inspect one slide — use inspect_slide or screenshot_slide instead.
Inputs: imageWidth, slideRange, includeImages, presentationId.
read_deck_textA
Lightweight text extractor: returns slide titles and body text as plain strings (~20x smaller than inspect_slide). Use for content review, narrative analysis, or any read-only text task. Supports slideRange and optional speaker notes.
Inputs: slideRange, includeNotes, presentationId.
read_shape_paragraphsA
Read raw OOXML <a:p> paragraphs from a shape's text body. Returns the paragraph XML as a string — preserves all formatting (bold, colors, bullets, etc.) that textRange.text strips. Use with the /pptx skill's OOXML knowledge to understand and modify the XML.
Inputs: shapeId (required), slideIndex (required), presentationId.
read_slide_xmlA
Read the full raw OOXML of a slide, or filter to a specific shape. Returns the slide's ppt/slides/slide1.xml content. Use with the /pptx skill's OOXML knowledge to understand the XML structure.
Inputs: slideIndex (required), shapeId, presentationId.
read_slide_zipA
Read multiple files from the exported slide zip. Returns slide XML, relationships, chart XMLs, and Content_Types. Use this to inspect chart data, rels, or other zip contents beyond what read_slide_xml provides. When no paths specified, auto-discovers all text/XML files in the zip.
Inputs: slideIndex (required), paths, presentationId.
read_speaker_notesA
Read speaker notes from slides. Uses full-deck export (cached by revision) to parse notes from OOXML — Office.js has no notes API. Returns plain text per slide.
Inputs: slideRange, presentationId.
scan_slideA
Lightweight shape scanner (~40 tokens/shape): lists shape IDs, types, and positions on slides, plus slide dimensions. Supports slideRange for multiple slides. For text content and fills, use inspect_slide instead.
Inputs: slideRange (required), shapeType, namePattern, presentationId.
screenshot_slideA
Slide screenshot (~1000 tokens): captures one slide as PNG image. Use to visually verify layout after changes. Do NOT loop over all slides — use preview_deck instead.
Inputs: slideIndex (required), width, height, presentationId.
search_fluent_iconsA
Search Microsoft Fluent UI icon library. Returns matching icons with SVG URLs for use with insert_image. Prefer mono (_M) variants for professional decks. Retry with synonyms if no good matches (e.g. "innovation" → "lightbulb", "security" → "shield").
Inputs: query (required), top, style.
search_textA
Search for text across all slides (or a slide range) in the presentation — like grep for slides. Searches shape text, table cells, and speaker notes. Returns matching shapes with context at the chosen level. Case-insensitive substring by default; supports regex.
Inputs: query (required), regex, context, slideRange, +3 more.
verify_slidesA
Run programmatic checks on a slide: detect overlapping shapes, out-of-bounds shapes, empty text, tiny shapes, unused placeholders, placeholder drift from layout defaults, and full-bleed background covers. Returns a list of issues found. Uses the same shape data as inspect_slide — no OOXML needed.
Inputs: slideIndex (required), checks, presentationId.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 27 tools
The tool set has many related read/edit/inspect tools, but descriptions clearly differentiate their granularity and use cases (e.g. scan_slide vs inspect_slide, read_slide_xml vs read_slide_zip). The main ambiguity is the broad execute_officejs escape hatch, which overlaps with nearly every specialized edit tool, plus some subtle choices between XML, zip, and paragraph editing.
All tools use snake_case and are generally verb-first (list_presentations, inspect_slide, edit_slide_xml, insert_image). The pattern is predictable across read, inspect, edit, search, and create operations.
At 27 tools, the surface is heavy for a single MCP server even though PowerPoint editing is a broad domain. Most tools are specialized rather than redundant, but the count is above the comfortably scoped range and increases selection burden.
The set covers presentation discovery, deck/slide/layout inspection, slide creation and copying, text/notes/XML editing, charts, images, formatting, and arbitrary Office.js fallback. Explicit slide deletion/reordering and some higher-level shape operations are missing, but execute_officejs provides a workaround.
Maintenance
Related MCP Connectors
Create, edit, export and manage presentations. Requires a paid PPT.AI API merchant account.
Generate AI slide decks and export native PowerPoint (.pptx) and PDF presentations from chat.
Generate, edit, merge, translate and PDF-convert PowerPoint (.pptx) over MCP. 8 tools.
Generate professional PowerPoint presentations from text, YouTube videos, or structured JSON data.…
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables AI assistants to create, edit, and manipulate PowerPoint presentations programmatically with support for text styling, shapes, slide rearrangement, and direct Office XML access.81-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to programmatically create, manipulate, and analyze Microsoft PowerPoint presentations with advanced formatting and template management.5MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to create and manipulate PowerPoint presentations programmatically, including adding slides, exporting to PDF, and reading metadata.16 npm5MIT
- AlicenseNot gradedqualityDmaintenanceEnables PowerPoint automation on Windows, including template-based creation, real-time editing, LaTeX equations, animations, and multimodal slide analysis, all via natural language.156 PyPI130MIT