PowerPoint MCP Server
Allows rendering PowerPoint slides to high-resolution PNG images via LibreOffice CLI, providing an alternative to PowerPoint COM automation for visual verification and diffing.
Click on "Install 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 ServerEdit slide 4 of my presentation to change the heading to 'Q4 Summary' and add a bullet point."
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 Server for Antigravity
A production-quality local Model Context Protocol (MCP) server in Python enabling conversational, deterministic PowerPoint (.pptx) inspection, surgical editing, high-resolution rendering, visual diffing, and rule-based validation for Google Antigravity.
1. Overview & Philosophy
Modern AI slide editing often destroys fine-grained formatting, breaks font hierarchies, and resets complex layouts because LLMs attempt to regenerate whole presentations from scratch.
The PowerPoint MCP Server implements a deterministic, minimal-diff editing philosophy:
Inspect Before Mutating: Semantic roles (
title,subtitle,body,diagram,image,footer) and exact EMU/inch bounding boxes are extracted directly from OpenXML trees.Run-Level Style Preservation: Text edits preserve font faces, point sizes, colors, margins, and multi-run rich text formatting.
Non-Destructive Working Copies: Modifications occur in isolated session workspaces under
.ppt-agent/sessions/<session_id>/working.pptxwith automatic timestamped backups (presentation.backup-YYYYMMDD-HHMMSS.pptx).Visual Verification Loops: Integrated Windows PowerPoint COM automation and headless LibreOffice rendering generate PNG slide images and pixel difference heatmaps to visually verify layout changes.
Related MCP server: PPTX MCP Server
2. Architecture
┌─────────────────────────────────────────────────────────────────┐
│ Antigravity CLI Agent │
│ (Skill: .agents/skills/powerpoint-editor/SKILL.md) │
└───────────────────────────────┬─────────────────────────────────┘
│ JSON-RPC 2.0 via Stdio
┌───────────────────────────────▼─────────────────────────────────┐
│ PowerPoint MCP Server (server.py) │
│ 19 FastMCP / MCPServer Tools & 3 MCP Resources │
└───────┬───────────────────────┼─────────────────────────┬───────┘
│ │ │
┌───────▼──────────────┐ ┌──────▼───────────────┐ ┌──────▼───────────────┐
│ Inspection & Models │ │ Editing & Geometry │ │ Rendering & Diffing │
│ - Shape Hierarchies │ │ - Move / Resize │ │ - Windows PPT COM │
│ - Semantic Inference │ │ - Align / Distribute │ │ - LibreOffice CLI │
│ - Multi-Factor Match │ │ - Text Run Styling │ │ - Pixel Diff Heatmaps│
│ - Rule Validation │ │ - Safe OOXML Helpers │ │ - Bounding Clusters │
└──────────────────────┘ └──────────────────────┘ └──────────────────────┘
│
┌───────────────────────────────▼─────────────────────────────────┐
│ Session & Safety Layer │
│ .ppt-agent/sessions/<session_id>/working.pptx + backups/ │
└─────────────────────────────────────────────────────────────────┘3. Prerequisites & Requirements
Operating System: Windows 10/11 (for native PowerPoint COM automation), macOS, or Linux.
Python: Python 3.10, 3.11, 3.12, or 3.13+.
Package Manager:
uv(recommended) orpip.Presentation Software (Optional but recommended for rendering):
Microsoft PowerPoint 2016 / 2019 / 2021 / Office 365 (Windows).
LibreOffice (
sofficeCLI in system PATH).
4. Installation & Setup
Clone the repository and install dependencies using uv:
# Clone the repository
git clone https://github.com/example/powerpoint-mcp.git
cd powerpoint-mcp
# Create and sync virtual environment with uv
uv syncAlternatively, with standard pip:
python -m venv .venv
# On Windows PowerShell:
.venv\Scripts\Activate.ps1
# On macOS/Linux:
source .venv/bin/activate
pip install -e .5. Running the MCP Server
To run the MCP server over standard input/output (stdio):
uv run python -m powerpoint_mcp.serverOr via direct script entrypoint:
uv run powerpoint-mcp6. Antigravity Workspace Configuration
Configure your workspace .agents/mcp_config.json to register the server:
{
"mcpServers": {
"powerpoint-mcp": {
"command": "uv",
"args": [
"run",
"python",
"-m",
"powerpoint_mcp.server"
],
"env": {
"PPT_RENDERER": "auto",
"PPT_WORKSPACE_DIR": ".ppt-agent",
"PPT_BACKUP_ENABLED": "true",
"PPT_DEFAULT_OUTPUT_DIR": "./output"
}
}
}
}7. Antigravity Skill Installation
The skill definition is located at .agents/skills/powerpoint-editor/SKILL.md. Antigravity automatically discovers skills inside .agents/skills/.
The skill encodes:
The 15 Immutable PowerPoint Editing Rules.
Structured decision trees for text edits, geometry adjustments, and reference slide matching.
Tool call optimization and batching rules.
8. Supported MCP Tools Reference (19 Core Tools)
Tool Name | Parameters | Description |
|
| Open presentation and initialize isolated session workspace with working copy. |
|
| Inspect presentation metadata, slide count, dimensions, layouts, and titles. |
|
| Inspect slide shapes, EMU/inch coords, semantic roles, text, and styles. |
|
| Deep inspection of single shape: runs, fonts, colors, margins, line, fill, XML. |
|
| Modify coordinates, dimensions, rotation, z-order, or multi-shape alignment/distribution. |
|
| Modify text and styling with run-level style preservation. |
|
| Clone shape with formatting and relationships onto same or target slide. |
|
| Move shape by absolute coordinates or relative offsets in inches. |
|
| Resize shape with absolute dimensions or scaling multipliers. |
|
| Remove shape cleanly from slide shape tree. |
|
| Safe low-level DrawingML manipulation for transparency, gradients, and shadows. |
|
| Rule-based validation for overlaps (VAL-01), clipping (VAL-02), tiny fonts (VAL-05), overflow (VAL-04). |
|
| Render single slide to high-res PNG via PowerPoint COM or LibreOffice. |
|
| Render all slides in presentation to PNG images. |
|
| Compare geometry, layout, typography, and semantic matches between two slides. |
|
| Pixel-level difference overlay, changed bounding boxes, and similarity percentage. |
|
| Save working copy back to original path with automatic timestamped backup. |
|
| Save working copy to new destination path. |
|
| Revert working copy to original presentation or specified backup timestamp. |
9. Supported MCP Resources
URI Resource | MIME Type | Description |
|
| JSON summary of presentation metadata, dimensions, layouts, and slide titles. |
|
| JSON structured shape tree with roles, coordinates, and typography for slide |
|
| High-resolution PNG binary render of slide |
10. Standalone CLI Debugging Tools
Inspect Presentation or Slide
# Inspect entire presentation metadata
python scripts/inspect_pptx.py presentation.pptx
# Inspect specific slide as ASCII tree
python scripts/inspect_pptx.py presentation.pptx --slide 1
# Inspect single shape in JSON format
python scripts/inspect_pptx.py presentation.pptx --slide 1 --shape 2 --jsonRender Slide to PNG
# Render all slides to ./renders/
python scripts/render_pptx.py presentation.pptx --output ./renders
# Render single slide at 300 DPI using PowerPoint COM
python scripts/render_pptx.py presentation.pptx --slide 1 --dpi 300 --renderer powerpoint11. Example Conversational Commands
Here are typical natural-language prompts handled by Antigravity using the PowerPoint MCP Server:
"Open pitch_deck.pptx and inspect slide 2."
"Move the title on slide 1 to the left by 0.2 inches."
"Distribute the three feature boxes on slide 1 horizontally with equal gaps."
"Align the three cards on slide 2 along their top edges."
"Change the body text in shape 4 to 'Enterprise Cloud Solutions' and make it bold while keeping the 14pt Calibri font."
"Duplicate the diagram card on slide 2 and shift it 0.5 inches down."
"Make slide 2 match the layout and font hierarchy of slide 1, but keep slide 2's content intact."
"Validate slide 3 for overlaps or off-slide elements and fix any issues found."
"Render slide 1 and show me a visual diff against the previous version."
"Save the modified deck as final_presentation.pptx."
12. Troubleshooting & FAQ
PowerPoint COM Errors on Windows
Symptom:
pywintypes.com_error: (-2147417848, 'The object invoked has disconnected from its clients.')Solution: Ensure no hung
POWERPNT.EXEinstances exist in Windows Task Manager. Close existing background PowerPoint processes or reboot. The server automatically uses thread-safe COM dispatch withCoInitialize/CoUninitialize.
Headless Environments & LibreOffice Fallback
In headless CI/CD environments or Linux servers without Microsoft Office, install LibreOffice:
sudo apt-get install libreofficeSet
PPT_RENDERER=libreofficeorPPT_RENDERER=autoin your environment.
Fonts and Typography Drift
If rendered slides exhibit missing custom fonts, install the TrueType/OpenType font files on the host machine. If proprietary fonts are missing, LibreOffice and PowerPoint will substitute standard system fonts (Calibri, Arial).
License
MIT License.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceCreates and manipulates PowerPoint presentations with capabilities for adding various slide types, generating images, and incorporating tables and charts through natural language commands.11144MIT
- 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 gradedqualityCmaintenanceEnables PowerPoint automation on Windows, including template-based creation, real-time editing, LaTeX equations, animations, and multimodal slide analysis, all via natural language.110MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with PowerPoint presentations through natural language commands, supporting reading, editing, slide management, and automated speaker notes processing.MIT
Related MCP Connectors
Deterministic, fully editable PowerPoint from typed slide intents. 200+ layouts, brand templates.
Generate, edit, and export AI presentations to PDF, PPTX, or a shareable link.
Presentations.AI MCP server — create designed slide decks from a topic, text, or document.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/atharva-bedekar/PowerPointMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server