ltc6539/mcp-ppt 是从 https://github.com/ltc6539/mcp-ppt. 导入的 MCP 服务器候选
概览
ltc6539/mcp-ppt 是从 https://github.com/ltc6539/mcp-ppt. 导入的 MCP 服务器候选
概述(AI 翻译)
🌐 中文版README
该 MCP 服务器支持动态创建、编辑和保存 PowerPoint 演示文稿。基于 MCP 构建,使用 python-pptx 库,提供灵活界面以添加幻灯片、图片、表格及其他元素。用户只需与大型语言模型聊天即可轻松制作、编辑和保存演示文稿,简化整个工作流程
特色
-
创建演示文稿 使用一个生成唯一演示ID的标题初始化一个新的PowerPoint演示文稿。
-
滑动操作
-
标题幻灯片: 添加带有可选副标题的标题幻灯片。
-
内容幻灯片: 创建带有标题和项目符号内容的幻灯片。
-
章节幻灯片: 插入带有大标题和可选背景色的分隔页幻灯片。
-
图片幻灯片: 添加带有标题和描述性替代文本的本地文件或URL图片的幻灯片。
-
表格幻灯片: 插入包含定义头部和行数据的表格的幻灯片。
-
演示管理
-
保存演示文稿: 将简报写入指定的文件路径,必要时处理临时目录。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
PPT maker MCP server
This MCP server enables dynamic creation, editing and saving of PowerPoint presentations. Built upon the MCP and using the python-pptx library, it provides a flexible interface to add slides, images, tables, and other elements. Users could effortlessly make, edit and save presentations by simply chatting with a large language model, streamlining the entire workflow
Features
-
Create Presentations
Initialize a new PowerPoint presentation using a title that generates a unique presentation ID. -
Slide Operations
- Title Slide: Add a title slide with an optional subtitle.
- Content Slide: Create slides with a title and bullet-point content.
- Section Slide: Insert a section divider slide with a large centered title and an optional background color.
- Image Slide: Add slides featuring images from local files or URLs with titles and descriptive alt text.
- Table Slide: Insert slides containing tables with defined headers and row data.
-
Presentation Management
- Save Presentation: Write the presentation to a specified file path, handling temporary directories if needed.
- Download Link: Generate a data URI with base64-encoded presentation content for direct download.
- Presentation Info: Retrieve metadata about the presentation such as the number of slides and available slide layouts.
- Presentation Outline: Obtain a text-based outline of the presentation structure via a dedicated resource endpoint.
- Remove Slide: Delete a slide by its 1-based index.
- Export to Base64: Export the complete presentation as a base64-encoded string for further processing.
Installation
-
Clone the Repository
git clone https://github.com/ltc6539/mcp-ppt.git cd mcp-ppt -
Create a Virtual Environment (Optional but Recommended)
python3 -m venv .venv source .venv/bin/activate # On Windows use: .venv\Scripts\activate -
Then add MCP to your project dependencies
uv add "mcp[cli]" uv run mcp
You can install this server in Claude Desktop and interact with it right away by running:
mcp install server-local.py
Alternatively, you can test it with the MCP Inspector:
mcp dev server-local.py
If the claude desktop has error, You may need to put the full path to the uv executable in the command field. You can get this by running which uv on MacOS/Linux or where uv on Windows.
During startup, the server logs Python and python-pptx version information to stderr. Any errors during execution are also printed to stderr for easy debugging.
Tool List
Each MCP tool function is directly accessible via the MCP server. Below are the primary operations available:
1. Create Presentation
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →