
hzy5000/ppt_mcp_server
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
This project provides a PowerPoint automation server that works with Claude Desktop via the Model Control Protocol (MCP).
Обзор
This project provides a PowerPoint automation server that works with Claude Desktop via the Model Control Protocol (MCP). It allows Claude to interact with Microsoft PowerPoint, enabling tasks like creating presentations, adding slides, modifying content, and more. - Create, open, save, and close PowerPoint presentations - List all open presentations - Get slide information and content - Add new slides with different layouts - Add text boxes to slides - Update text content in shapes - Set slide titles - And more! 3. Configure Claude Desktop: - Open Claude Desktop - Navigate to settings - Configure the MCP server as explained below To configure Claude Desktop to use this MCP server, add the following to your Claude Desktop configuration file, located at %APPDATA%\Claude\claude_desktop_config.json: If you're using a virtual environment or alternative Python executable (like uv): Once configured, you can use Claude Desktop to control PowerPoint.
README
Показан фрагмент оригинального README. Открыть оригинал.
PowerPoint Automation MCP Server for Claude Desktop
This project provides a PowerPoint automation server that works with Claude Desktop via the Model Control Protocol (MCP). It allows Claude to interact with Microsoft PowerPoint, enabling tasks like creating presentations, adding slides, modifying content, and more.
Features
- Create, open, save, and close PowerPoint presentations
- List all open presentations
- Get slide information and content
- Add new slides with different layouts
- Add text boxes to slides
- Update text content in shapes
- Set slide titles
- And more!
Installation
-
Clone this repository:
-
Install dependencies:
uv add fastmcp pywin32 -
Configure Claude Desktop:
- Open Claude Desktop
- Navigate to settings
- Configure the MCP server as explained below
Configuration
To configure Claude Desktop to use this MCP server, add the following to your Claude Desktop configuration file, located at %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"ppts": {
"command": "uv",
"args": ["run", "path/to/main.py"]
}
}
}
If you’re using a virtual environment or alternative Python executable (like uv):
{
"mcpServers": {
"ppts": {
"command": "C:\\Path\\To\\Python\\Scripts\\uv.exe",
"args": ["run", "C:\\Path\\To\\Project\\main.py"]
}
}
}
Usage
Once configured, you can use Claude Desktop to control PowerPoint. Example interactions:
-
Initialize PowerPoint:
Could you open PowerPoint for me? -
Create a new presentation:
Please create a new PowerPoint presentation. -
Add a slide:
Add a new slide to the presentation. -
Add content:
Add a text box to slide 1 with the text "Hello World". -
Save the presentation:
Save the presentation to C:\Users\username\Documents\presentation.pptx
Available Functions
The server provides the following PowerPoint automation functions:
initialize_powerpoint(): Connect to PowerPoint and make it visibleget_presentations(): List all open presentationsopen_presentation(path): Open a presentation from a fileget_slides(presentation_id): Get all slides in a presentationget_slide_text(presentation_id, slide_id): Get text content of a slideupdate_text(presentation_id, slide_id, shape_id, text): Update text in a shapesave_presentation(presentation_id, path): Save a presentationclose_presentation(presentation_id, save): Close a presentationcreate_presentation(): Create a new presentationadd_slide(presentation_id, layout_type): Add a new slideadd_text_box(presentation_id, slide_id, text, left, top, width, height): Add a text boxset_slide_title(presentation_id, slide_id, title): Set the title of a slide
Requirements
- Windows with Microsoft PowerPoint installed
- Python 3.7+
- Claude Desktop client
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →Конфигурация
{
"mcpServers": {
"ppts": {
"command": "uv",
"args": ["run", "path/to/main.py"]
}
}
}