Office PowerPoint MCP 服务器
关于此服务器
让 AI 智能体创建、读取和编辑 Microsoft PowerPoint 演示文稿的 MCP 服务器。支持生成 .pptx 文件、添加幻灯片、编辑文本和形状、应用主题,实现演示文稿自动化。
安装方式
npx -y office-powerpoint-mcp-server官方 README 安装指南(英文原文)
Installing via Smithery
To install PowerPoint Manipulation Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @GongRzhe/Office-PowerPoint-MCP-Server --client claudePrerequisites
- Python 3.6 or higher (as specified in pyproject.toml)
- pip package manager
- Optional: uvx for package execution without local installation
Installation Options
Option 1: Using the Setup Script (Recommended)
The easiest way to set up the PowerPoint MCP Server is using the provided setup script, which automates the installation process:
python setup_mcp.pyThis script will:
- Check prerequisites
- Offer installation options:
- Install from PyPI (recommended for most users)
- Set up local development environment
- Install required dependencies
- Generate the appropriate MCP configuration file
- Provide instructions for integrating with Claude Desktop
The script offers different paths based on your environment:
- If you have
uvxinstalled, it will configure using UVX (recommended) - If the server is already installed, it provides configuration options
- If the server is not installed, it offers installation methods
Option 2: Manual Installation
1. Clone the repository:
git clone https://github.com/GongRzhe/Office-PowerPoint-MCP-Server.git
cd Office-PowerPoint-MCP-Server2. Install dependencies:
pip install -r requirements.txt3. Make the server executable:
chmod +x ppt_mcp_server.py常见问题
Office PowerPoint MCP 能做什么?
让 AI 智能体直接操作 PowerPoint 演示文稿:创建新演示文稿并添加幻灯片、在幻灯片中添加和编辑文本框/形状/图片、应用主题和配色方案、设置幻灯片切换动画、导出为 PPTX 文件。适用于自动生成报告演示、批量创建幻灯片、内容提取等场景。
Office PowerPoint MCP 需要安装 Microsoft Office 吗?
不需要。MCP 服务器基于 python-pptx 库操作 .pptx 文件格式,不依赖 Microsoft Office。可以在 Windows、macOS、Linux 上运行,无需购买 Office 许可证。
Office PowerPoint MCP 和 Word MCP 是同一作者吗?
是的,两者都由 GongRzhe 开发,API 风格一致,可以组合使用实现 Office 文档的全流程自动化处理——从 Word 文档生成内容到 PPT 自动制作演示文稿。