Logo vun PowerPoint 自动化 MCP 服务器

PowerPoint 自动化 MCP 服务器

Communautéit
buckylee2019

MCP server for PowerPoint

Editeurbuckylee2019
Repositorypowerpoint-automation-mcp
SproochPython
Forks
4
Stären
17
Disponibel Tools
0
Transporttypstdio
Kategorien
Linken
  • Tools mat KI-Workflows verbannen

    PowerPoint 自动化 MCP 服务器 stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    17 Stären an 4 Forks aus dem verlinkte Repository.

PowerPoint Automation MCP Server

A Model Context Protocol (MCP) server that provides comprehensive PowerPoint automation capabilities using python-pptx. This server enables AI assistants to create, modify, and manage PowerPoint presentations programmatically.

Demo

https://github.com/user-attachments/assets/3daf3bef-4d75-4639-a891-0e64b80b4807

Features

  • Presentation Management: Create, open, save, and close presentations
  • Slide Operations: Add, delete, and manage slides with various layouts
  • Content Creation: Add text boxes, images, tables, and charts
  • Text Formatting: Update text with font styling (name, size, bold, italic)
  • Shape Manipulation: Move, resize, and modify shape properties
  • Table Operations: Create tables and update cell content
  • Chart Creation: Add various chart types (column, line, pie, bar) with data
  • Group Management: Ungroup shapes for easier manipulation
  • Layout Support: Work with different slide layouts and placeholders

Recommended Prompts

Translation Scenario

For translating presentations, process in batches to avoid context overflow and ensure data safety:

Translate this presentation [absolute path of ppt], processing 10 slides at a time and saving after each batch of 10 slides.

This approach:

  • Prevents token limit issues on large presentations
  • Saves progress incrementally to avoid data loss
  • Allows for review between batches

Installation

bash
git clone https://github.com/buckylee2019/powerpoint-automation-mcp.git
cd powerpoint-automation-mcp
uv sync

Running the Server

bash
uv run --directory /path/to/powerpoint-automation-mcp mcp-ppt-server

API Reference

The server provides 25+ tools for comprehensive PowerPoint automation. All operations work with a single active presentation to simplify the API.

Presentation Management

initialize_powerpoint() -> bool

Initialize the PowerPoint automation system.

create_presentation(template: str = None) -> Dict

Create a new presentation, optionally from a template.

  • template: Optional path to template file

open_presentation(file_path: str) -> Dict

Open an existing PowerPoint file.

  • file_path: Full path to .pptx file

get_presentation() -> Dict

Get information about the currently active presentation.

save_presentation(path: str = None) -> Dict

Save the active presentation.

  • path: Optional save path (uses current path if omitted)

close_presentation() -> Dict

Close the active presentation.

Slide Management

get_slides() -> List[Dict]

Get list of all slides with metadata.

add_slide(layout_index: int = 1) -> Dict

Add a new slide with specified layout.

  • layout_index: Layout type (0=Title, 1=Title+Content, etc.)

delete_slide(slide_index: int) -> Dict

Delete a slide from the presentation.

  • slide_index: 0-based slide index

get_slide_layouts() -> Dict

Get all available slide layouts with their properties.

set_slide_title(slide_index: int, title: str) -> Dict

Set the title of a slide.

Content Inspection

get_slide_shapes(slide_index: int) -> Dict

ALWAYS RUN FIRST! Get all shapes in a slide with properties and IDs.

  • Returns shape types, positions, sizes, and text content
  • Identifies grouped shapes that may need ungrouping

get_slide_text(slide_index: int) -> Dict

Get all text content in a slide organized by shape.

  • Detects grouped shapes that may need ungrouping first

Text and Shape Manipulation

update_text(slide_index: int, shape_index: int, text: str, font_name: str = None, font_size: int = None, bold: bool = None, italic: bool = None, preserve_existing: bool = True) -> Dict

Update text content with optional formatting.

  • Supports font styling while preserving existing formatting
  • preserve_existing: Keep original formatting for unspecified properties

update_shape_by_id(slide_index: int, shape_id: str, text: str = None, left: float = None, top: float = None, width: float = None, height: float = None) -> Dict

Update shape properties by ID.

  • Positions and sizes in inches

Content Creation

add_textbox(slide_index: int, text: str, left: float = 1, top: float = 1, width: float = 4, height: float = 2) -> Dict

Add a text box to a slide.

add_image(slide_index: int, image_path: str, left: float = 1, top: float = 1, width: float = None, height: float = None) -> Dict

Add an image to a slide.

  • Maintains aspect ratio if only width or height specified

add_table(slide_index: int, rows: int, cols: int, left: float = 1, top: float = 1, width: float = 8, height: float = 4) -> Dict

Add a table to a slide.

add_chart(slide_index: int, chart_type: str, categories: List[str], series_names: List[str], series_values: List[List[float]], left: float = 1, top: float = 1, width: float = 8, height: float = 4, has_legend: bool = True) -> Dict

Add a chart with multiple data series.

  • chart_type: 'COLUMN', 'LINE', 'PIE', 'BAR'
  • categories: X-axis labels
  • series_names: Legend labels
  • series_values: Data values for each series

Table Operations

update_table_cell(slide_index: int, shape_index: int, row: int, col: int, text: str) -> Dict

Update text in a specific table cell.

get_table_content(slide_index: int, shape_index: int) -> Dict

Retrieve all content from a table.

Advanced Operations

ungroup_shapes(slide_index: int) -> Dict

Ungroup all text-containing groups in a slide.

  • Only processes simple groups (no nested groups)
  • Preserves shape positions and properties
  • Skips groups without text content

Usage Workflow

  1. Initialize: Call initialize_powerpoint()
  2. Open/Create: Use open_presentation() or create_presentation()
  3. Inspect: Always run get_slide_shapes() first to understand slide structure
  4. Ungroup if needed: Use ungroup_shapes() if grouped shapes are detected
  5. Modify: Use appropriate tools to add/modify content
  6. Save: Call save_presentation() to persist changes

Error Handling

All functions return dictionaries with either success data or error information:

json
// Success response
{
  "success": true,
  "message": "Operation completed",
  "data": {...}
}

// Error response
{
  "error": "Description of what went wrong"
}

MCP Configuration

Add to your MCP settings:

json
{
  "mcpServers": {
    "powerpoint-automation": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/powerpoint-automation-mcp",
        "mcp-ppt-server"
      ]
    }
  }
}

Dependencies

  • python-pptx: PowerPoint file manipulation
  • mcp: Model Context Protocol framework
  • fastmcp: Simplified MCP server creation

License

MIT License - see LICENSE file for details.

Installatioun

TypingMind
{
  "mcpServers": {
    "powerpoint-automation-mcp": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/powerpoint-automation-mcp",
        "mcp-ppt-server"
      ]
    }
  }
}

PowerPoint 自动化 MCP 服务器 MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal PowerPoint 自动化 MCP 服务器 verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

PowerPoint 自动化 MCP 服务器 als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu PowerPoint 自动化 MCP 服务器 an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "powerpoint-automation-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu PowerPoint 自动化 MCP 服务器. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu PowerPoint 自动化 MCP 服务器.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat PowerPoint 自动化 MCP 服务器?
PowerPoint 自动化 MCP 服务器
Jo. Ech hunn et gelies.
Dat hunn ech mat PowerPoint 自动化 MCP 服务器 fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server PowerPoint 自动化 MCP 服务器 benotzt?

PowerPoint 自动化 MCP 服务器 ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech PowerPoint 自动化 MCP 服务器 MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir PowerPoint 自动化 MCP 服务器 mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat PowerPoint 自动化 MCP 服务器 MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann PowerPoint 自动化 MCP 服务器 verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech PowerPoint 自动化 MCP 服务器 MCP mat TypingMind?

PowerPoint 自动化 MCP 服务器 leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt PowerPoint 自动化 MCP 服务器 MCP an TypingMind zur Verfügung?

PowerPoint 自动化 MCP 服务器 stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir PowerPoint 自动化 MCP 服务器 MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann PowerPoint 自动化 MCP 服务器 eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇