Create and edit PowerPoint presentations programmatically with slide, shape, image, and PNG rendering features
PPTX MCP Server is a specialized FastMCP-powered software designed to programmatically create, edit, and render PowerPoint (PPTX) presentations. It serves as an essential tool for developers building AI applications that require automatic report generation, content creation, or dynamic presentation handling. By leveraging Model Context Protocol (MCP), this server enables seamless integration with a variety of advanced AI applications such as Claude Desktop, Continue, Cursor, and more.
The PPTX MCP Server supports an extensive range of operations through its MCP protocol implementation, allowing AI applications to interact with PowerPoint presentations programmatically. Key features include:
The PPTX MCP Server exposes a rich set of API endpoints designed to interact seamlessly with various AI applications. Developers can utilize these APIs for tasks such as:
create_or_clear_presentation(filename)
: Initiates a new document or clears an existing one.add_slide(filename, layout_index)
: Inserts a slide based on a predefined layout template.add_title_and_content(filename, slide_index, title, content)
: Adds titles and text content to a specific slide.add_textbox(filename, slide_index, text, left_inches, top_inches, width_inches, height_inches, font_size_pt, bold)
: Places custom textboxes on the slides for detailed annotations or instructions.add_shape(filename, slide_index, shape_type_name, left_inches, top_inches, width_inches, height_inches, text)
: Embeds shapes like circles, rectangles, and flowchart elements with customizable properties.add_picture(filename, slide_index, image, left_inches, top_inches, width_inches, height_inches)
: Inserts images into slides for visual aids or presentation of data.The server architecture is designed to facilitate seamless integration with Model Context Protocol (MCP) clients. It leverages FastMCP for protocol handling and Python libraries such as python-pptx
and Pillow
for manipulating and rendering slides. The core components include:
python-pptx
is used for creating and modifying PPTX documents programmatically, while Pillow
handles image processing tasks.graph TD
A[AI Application] -->|MCP Client| B[MCP Server]
B --> C[PPTX Modification/Rendering]
style A fill:#e1f5fe
style C fill:#f3e5f5
The PPTX MCP Server offers broad compatibility with various MCP clients, ensuring interoperability with leading AI applications. The following matrix outlines current support status:
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
To get started, you'll need to install the necessary dependencies and run the server. Follow these steps:
Install Python Dependencies:
pip install -r requirements.txt
Install LibreOffice: Ensure LibreOffice is installed for rendering slide images as PNG files.
Linux:
sudo pacman -S libreoffice-fresh # Arch Linux or Manjaro
sudo apt install libreoffice # Debian-based systems
macOS:
brew install --cask libreoffice # macOS via Homebrew
Windows: Download from LibreOffice.org
python server.py
For development purposes, you can run the FastMCP development server directly:
fastmcp dev server.py
AI applications like Claude Desktop or Continue can use PPTX MCP Server to automatically generate detailed reports based on structured data. This capability is particularly useful for business intelligence, financial analysis, and technical documentation.
graph TD
A[AI Application] -->|MCP Call| B[PPTX Creation/Modification]
B --> C[Slide Content Generation]
C --> D[Report Rendering]
Cursor, another MCP client, can leverage PPTX MCP Server to dynamically assemble presentations based on live data feeds. This allows for real-time updates and customizations during meetings or briefings.
graph TD
A[MCP Client (Cursor)] --> B[Presentation Framework]
B --> C[Data Aggregation]
C --> D[Dynamic Slide Assembly]
D --> E[Slide Rendering for Display]
PPTX MCP Server provides a standardized API and data exchange protocol, making it compatible with multiple MCP clients. This ensures that developers can easily integrate this server into their existing AI workflows without needing to rewrite custom connectors.
To configure PPTX MCP Server as part of an AI application's infrastructure, include the following setup:
{
"mcpServers": {
"PPTX-MCP-Server": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-pptx"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
The PPTX MCP Server is optimized for smooth performance and compatibility across diverse environments. It supports a wide range of Python libraries and operates efficiently even with large presentations.
Platform | Python Version | LibreOffice Installation |
---|---|---|
Windows | 3.12+ | Yes |
macOS | 3.12+ | Yes |
Linux | 3.12+ | Yes |
For advanced use cases, developers can modify the server's configuration using environment variables and command-line arguments.
HOST
(Default: 127.0.0.1
)PORT
(Default: 8000
)Example:
HOST=0.0.0.0 PORT=9000 python server.py
Yes, PPTX MCP Server supports multiple MCP clients including Continue and Cursor.
The server utilizes LibreOffice to render images embedded in slides as PNG files.
Performance is optimized; however, very large presentations may experience slower response times due to increased processing load.
Yes, a variety of shapes and flowchart elements can be inserted into slides using defined parameters.
Integration is straightforward since PPTX MCP Server adheres to standard MCP protocols and can interface with various Python-based tools.
Contributions are welcome! Developers interested in contributing to the project should follow these guidelines:
For more information on Model Context Protocol, visit the official website: ModelContextProtocol.org
Join our community for ongoing support and development discussions: MCP GitHub Discussions
By embracing PPTX MCP Server, developers can significantly enhance their AI applications with seamless presentation manipulation capabilities. Whether automating report generation or assembling dynamic presentations, this solution integrates smoothly into an array of workflows.
Discover seamless cross-platform e-commerce link conversion and product promotion with Taobao MCP Service supporting Taobao JD and Pinduoduo integrations
Implement a customizable Python-based MCP server for Windsurf IDE with plugins and flexible configuration
Explore Security MCP’s tools for threat hunting malware analysis and enhancing cybersecurity practices
Browser automation with Puppeteer for web navigation screenshots and DOM analysis
Analyze search intent with MCP API for SEO insights and keyword categorization
Configure NOAA tides currents API tools via FastMCP server for real-time and historical marine data