LM

ltc6539/mcp-ppt

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

66 stars 15 forks Качество 38 Тренд 0

ltc6539/mcp-ppt - кандидат на сервер MCP, импортированный из https://github.com/ltc6539/mcp-ppt.

Обзор

ltc6539/mcp-ppt - кандидат на сервер MCP, импортированный из https://github.com/ltc6539/mcp-ppt.

Обзор (машинный перевод)

中 README

Этот MCP-сервер позволяет динамически создавать, редактировать и сохранять презентации PowerPoint. Построенный на MCP и использующий библиотеку python-pptx, он обеспечивает гибкий интерфейс для добавления слайдов, изображений, таблиц и других элементов. Пользователи могут легко создавать, редактировать и сохранять презентации, просто общаясь с большой языковой моделью, оптимизируя весь рабочий процесс.

Особенности

Создать презентации Инициировать новую презентацию PowerPoint, используя заголовок, который генерирует уникальный идентификатор презентации.

** Скользящие операции**

  • ** Слайд заголовка:** Добавить слайд заголовка с дополнительным подзаголовком. ** Слайд контента:** Создавайте слайды с заголовком и содержанием пуль.
  • ** Раздел Слайд:** Вставьте слайд разделителя с большим центром заголовка и дополнительным цветом фона. ** Слайд изображения:** Добавьте слайды с изображениями из местных файлов или URL-адресов с заголовками и описательным альтернативным текстом.
  • Табличный слайд: Включить слайды, содержащие таблицы с определенными заголовками и данными строк.

Управление презентацией Сохранить презентацию Напишите презентацию на указанный путь файла, обрабатывая при необходимости временные каталоги.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

PPT maker MCP server

🌐 中文版README

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

  1. Clone the Repository

    git clone https://github.com/ltc6539/mcp-ppt.git
    cd mcp-ppt
    
  2. Create a Virtual Environment (Optional but Recommended)

    python3 -m venv .venv
    source .venv/bin/activate  # On Windows use: .venv\Scripts\activate
    
  3. 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

Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →