Skip to main content
Glama

PowerPoint MCP

License: MIT Node.js

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 build

The 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.

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-mcp

Then 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 installer

The 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 presentation

Two MCP transports are supported:

  • STDIO (default) — used by plugin installs and --stdio flag; the MCP client spawns the server process directly

  • HTTP — 127.0.0.1:3001/mcp; enabled by the --http flag (e.g. node server/index.ts --http --bridge for development with .mcp.json)

Three components in one repo:

  • addin/ — Office.js taskpane add-in that loads inside PowerPoint and connects as a WebSocket client

  • server/ — Node.js bridge server: HTTP + WS + MCP transport (HTTPS/WSS opt-in via BRIDGE_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 node

Available Tools

Tool

Description

list_presentations

Lists all connected presentations with their IDs and status

inspect_deck

Deck overview: slide dimensions, theme (colors + fonts), and all slides with layout and shape count

inspect_layouts

Slide layouts with names, types, placeholders, and positions. Supports field selection

inspect_slide

Returns detailed shape info for a slide (text, positions, sizes, fills)

scan_slide

Lightweight shape scanner: IDs, types, and positions

screenshot_slide

Captures a visual screenshot of a slide as PNG (requires PowerPoint 16.96+)

preview_deck

Returns thumbnails + text for all/selected slides in one call (efficient full-deck review)

copy_slides

Copies slides between two open presentations (data stays server-side, never in Claude context)

insert_image

Inserts an image from a file path, URL, or base64 data onto a slide

get_local_copy

Returns a local file path for the presentation (passthrough for local, exports cloud files to temp .pptx)

search_fluent_icons

Search Microsoft Fluent UI icons by keyword and insert as SVG

execute_officejs

Runs arbitrary Office.js code inside the live presentation

add_slide

Add a new slide from a named layout at a specific position, with placeholder text pre-filled

duplicate_slide

Duplicate a slide within the same presentation; data stays server-side

read_deck_text

Lightweight text extractor: slide titles and body text as plain strings (~20x smaller than inspect_slide)

read_shape_paragraphs

Read raw OOXML <a:p> paragraphs from a shape's text body, preserving all formatting

edit_shape_paragraphs

Replace paragraph content of a shape with raw OOXML <a:p> XML

read_slide_xml

Read the full raw OOXML of a slide, or filter to a specific shape

edit_slide_xml

Edit slide XML and reimport (xml mode or JS code mode for DOM manipulation)

read_slide_zip

Read multiple files from the exported slide zip (slide XML, rels, chart XMLs, Content_Types)

edit_slide_zip

Update multiple files in the slide zip and reimport in a single operation

edit_slide_chart

Create a chart on a slide from structured data (column, bar, line, pie, doughnut, area) via OOXML

read_speaker_notes

Read speaker notes from slides as plain text

edit_speaker_notes

Set speaker notes on one or more slides; accepts markdown text

format_shapes

Apply fill color and font formatting to multiple shapes on a slide in one call

search_text

Search for text across all slides — like grep for slides; supports regex

verify_slides

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_image tool), not shape API; positioning works but no shape-level manipulation after insertion

  • Charts via OOXML — Charts created by injecting OOXML (edit_slide_chart), not via Office.js chart API

  • No 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 (or 127.0.0.1:8443 with BRIDGE_TLS=1)

  • The MCP HTTP transport binds to 127.0.0.1:3001; the default STDIO transport opens no network port

  • The MCP HTTP transport enables DNS-rebinding protection (rejects requests whose Host header is not 127.0.0.1:3001 / localhost:3001)

  • The MCP HTTP transport bounds /mcp request 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 via insert_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 a 413 response (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/latest to check for a newer version. Nothing is sent beyond the request itself; no presentation data, telemetry, or identifiers. Disable it with BRIDGE_NO_UPDATE_CHECK=1 or the --no-update-check flag.

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

  1. Run npm run sideload and restart PowerPoint

  2. Check 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:

  1. brew install mkcert && mkcert -install (one-time, trusts the CA in browsers)

  2. npm run setup-certs to generate localhost certificates

  3. For desktop: npm run sideload:https and restart PowerPoint

  4. For PowerPoint Web: open a presentation at office.com, go to Home → Add-ins → Upload My Add-in, and upload addin/manifest-https.xml

  5. Start 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 lifetime="long").

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:

  1. ppt/webextensions/webextension1.xml — add-in reference with Office.AutoShowTaskpaneWithDocument property

  2. ppt/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

MIT

Available Tools

27 tools
add_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

    A3.9/5.0

    Scored across 27 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count3/5

    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.

    Completeness4/5

    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

    ActivityStale
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers