Skip to main content
Glama

ChatPPT

ChatPPT is a Model Context Protocol (MCP) server for programmatic, AI-assisted PowerPoint creation and editing. Built on Node.js 20+ and @office-kit/pptx, ChatPPT exposes a safe, structured, resource-oriented CRUD API over stdio for connected LLMs in Visual Studio Code and other MCP-compatible clients.


Key Features

  • Stable Opaque IDs: Every presentation deck, slide, slide collection, and slide element is tracked with a stable UUID.

  • Dual Storage Model:

    • Presentation files are stored under presentations/<deckId>.pptx.

    • Server metadata, slide collections, and element mapping are tracked in .chatppt/registry.json.

  • Atomic Operations & Consistency: All file writes use temporary files and atomic renames to prevent partial file corruption.

  • Visual Slide Previews: Render any slide to a PNG image for agent visual feedback using @office-kit/pptx-preview.

  • Vectorized / Batch Operations: Create, update, or delete multiple slides or elements in a single tool call to optimize LLM interactions.

  • Rich Elements: Create and update text boxes, preset shapes (180+ DrawingML geometries), lines, tables, charts (column, bar, line, pie, doughnut, area), and images.

  • Full Typography & Styling: Custom fonts, font sizes, bold, italic, text colors, fills, borders/strokes, alignment, and z-index ordering.


Related MCP server: PPTX MCP Server

Installing & Configuring in VS Code

Option 1: Workspace MCP Configuration (.vscode/mcp.json)

To use ChatPPT in your VS Code workspace, add or update .vscode/mcp.json in the root of your workspace:

{
  "servers": {
    "chatppt": {
      "type": "stdio",
      "command": "node",
      "args": ["${workspaceFolder}/dist/index.js"]
    }
  }
}

Option 2: Published Package or npx Execution

When running via npx or published binary, ChatPPT can be configured to target a specific workspace using the --workspace flag or environment variables:

{
  "servers": {
    "chatppt": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@jparkerdiamond/chatppt", "--workspace", "${workspaceFolder}"]
    }
  }
}

Bundled Agent Skill

The npm package includes the portable create-deck-skeleton Agent Skill at skills/create-deck-skeleton/SKILL.md. MCP clients do not automatically load agent skills when connecting to a server. To use the skill, install or copy that directory into the skill-discovery location supported by your agent host, such as .github/skills/, .agents/skills/, or .claude/skills/. The skill uses ChatPPT's MCP tools and does not depend on a particular operating system or editor.


Workspace Behavior & Security Boundaries

ChatPPT operates on a deterministic workspace root resolved in the following priority order:

  1. Command line argument: --workspace <path> or -w <path>

  2. Environment variable: CHATPPT_WORKSPACE_ROOT or WORKSPACE_ROOT

  3. Fallback: process.cwd() (current working directory)

Files & Directories Managed

  • Presentations: <workspace>/presentations/<deckId>.pptx

  • Registry & Metadata: <workspace>/.chatppt/registry.json

Security & Trust Boundaries

  • Path Isolation: All deck paths, temporary write buffers, and image element paths are strictly checked to ensure they reside within the configured workspace.

  • Path Traversal Protection: Deck IDs must match ^[a-zA-Z0-9_-]+$. Absolute paths or relative paths attempting directory traversal (..) outside the workspace root are caught and rejected with ValidationError.


Known Limitations

  • Encrypted Presentations: Encrypted or password-protected .pptx presentations are detected and rejected.

  • Master / Theme Layout Authoring: Slide creation uses layouts built into the deck template; creating custom slide master themes from scratch is deferred to post-1.0.


Available MCP Tools

Deck Management (deck_*)

  • deck_create: Create a new blank presentation deck.

  • deck_import: Import an existing PowerPoint file into the managed workspace and register its slides.

  • deck_list: List all managed decks in the workspace.

  • deck_read: Read metadata and slide/collection list for a deck.

  • deck_update: Update deck metadata (title) with optional optimistic revision check (expectedRevision).

  • deck_delete: Permanently delete a deck and its .pptx file.

  • deck_validate: Run diagnostic invariant checks across PPTX content and registry metadata.

Slide Management (slide_*)

  • slide_create: Add one or multiple slides in batch (supports title and notes).

  • slide_list: List slides in presentation order with 0-based position indexes.

  • slide_read: Read slide metadata and its element listing.

  • slide_render: Render a slide to a PNG image preview for visual feedback. Accepts an optional width in pixels, defaulting to 1280, and returns an MCP image content item.

  • slide_update: Update slide title and speaker notes in batch.

  • slide_delete: Permanently delete slides and clean up collection references.

  • slide_move: Move a slide or reorder slides by providing a slideOrder array.

  • slide_duplicate: Duplicate a slide with new stable IDs for the slide and all elements.

Slide Collection Management (slide_collection_*)

  • slide_collection_create: Create a named ordered group of existing slides.

  • slide_collection_list: List collections in a presentation.

  • slide_collection_read: Read collection details and slide membership.

  • slide_collection_update: Rename a collection or replace slide membership.

  • slide_collection_delete: Delete a collection without deleting the slides.

Slide Element Management (element_*)

  • element_create: Create text boxes, preset shapes, lines, tables, charts, or images in batch (supports optional clientId correlation).

  • element_list: List all elements on a slide in z-index order.

  • element_read: Read element metadata and styling properties.

  • element_update: Update position, size, text, fill, font, size, bold, italic, text color, stroke, and alignment in batch.

  • element_delete: Delete elements from a slide in batch.

  • element_reorder: Adjust element z-index (bringToFront, sendToBack, bringForward, sendBackward).

Rendering a Slide Preview

Call slide_render with the deck and slide UUIDs. The response includes a base64-encoded image/png content item that MCP clients can display directly:

{
  "deckId": "<deck UUID>",
  "slideId": "<slide UUID>",
  "width": 1280
}

The renderer is a deterministic approximation of PowerPoint output and runs in Node.js without a headless browser.


Development & Testing

Prerequisites

  • Node.js >= 20

  • npm >= 10

Setup & Build

npm install
npm run build

Running Tests

npm test

Development Mode

npm run dev

npm Trusted Publishing

The publish.yml GitHub Actions workflow stages a package when a matching v* tag is pushed. The package must already exist on npm. The workflow uses GitHub OIDC through npm trusted publishing and does not require an npm token. A staged package is not public until a maintainer reviews and approves it with 2FA on npm.

Configure the npm package's trusted publisher with GitHub Actions, repository ParkerDiamond/ChatPPT, workflow filename publish.yml, and the npm stage publish action enabled. The staging job uses Node.js 24 and npm 11.15.0 or later.

MCP Registry Publishing

The same publish.yml workflow publishes server.json to the MCP Registry when a v* version tag is pushed. It authenticates with GitHub OIDC and does not require a registry secret. The registry job waits for npm staging, but MCP Registry validation requires the referenced npm version to be publicly available. If npm approval is still pending when the workflow runs, approve the staged npm release and rerun the failed registry job.


License

MIT

Available Tools

26 tools
deck_createA

Create a new blank PowerPoint presentation deck and initialize its metadata in the managed workspace.

Inputs: title.

deck_deleteA
Destructive

Permanently delete a presentation deck and its underlying PowerPoint file.

Inputs: deckId (required).

deck_importC

Import an existing PowerPoint deck into the managed workspace and initialize its registry metadata.

Inputs: filePath (required).

deck_listA
Read-only

List all managed PowerPoint decks in the workspace.

Inputs: no named parameters.

deck_readB
Read-only

Read metadata, slide list, and slide collections for a specific deck.

Inputs: deckId (required).

deck_updateC

Update metadata or title of an existing presentation deck.

Inputs: title (required), deckId (required), expectedRevision.

deck_validateA
Read-only

Validate presentation deck integrity, checking PPTX file synchronization, collection slide references, and element geometry.

Inputs: deckId (required).

element_createB

Create one or multiple elements (text boxes, shapes, lines, tables, charts, or images) on a slide in a single batch operation.

Inputs: deckId (required), slideId (required), elements (required).

element_deleteB
Destructive

Permanently delete one or more elements from a slide in batch.

Inputs: deckId (required), slideId (required), elementIds (required).

element_listA
Read-only

List all visual elements on a slide in z-index order.

Inputs: deckId (required), slideId (required).

element_readA
Read-only

Read details and formatting properties of a single element on a slide.

Inputs: deckId (required), slideId (required), elementId (required).

element_reorderB

Reorder an element's z-index on a slide (bringToFront, sendToBack, bringForward, sendBackward).

Inputs: action (required), deckId (required), slideId (required), elementId (required).

element_updateB

Update positioning, sizing, text, fill, typography, stroke, or alignment for one or multiple elements on a slide in batch.

Inputs: deckId (required), slideId (required), updates (required).

slide_collection_createC

Create a named ordered collection/group of existing slides within a presentation deck.

Inputs: name (required), deckId (required), slideIds, description.

slide_collection_deleteA
Destructive

Delete a slide collection without deleting its referenced slides.

Inputs: deckId (required), slideCollectionId (required).

slide_collection_listC
Read-only

List all slide collections in a presentation deck.

Inputs: deckId (required).

slide_collection_readB
Read-only

Read details and slide ID membership of a specific slide collection.

Inputs: deckId (required), slideCollectionId (required).

slide_collection_updateA

Rename a slide collection, update its description, or replace its ordered slide membership.

Inputs: deckId (required), slideCollectionId (required), name, slideIds, +1 more.

slide_createB

Create one or multiple new slides in a presentation deck. Pass an array of slide definitions for vectorized batch creation.

Inputs: deckId (required), slides (required).

slide_deleteA
Destructive

Permanently delete one or more slides from the presentation and registry, and clean up collection references.

Inputs: deckId (required), slideIds (required).

slide_duplicateB

Duplicate an existing slide in a presentation deck, generating new stable IDs for the slide and all duplicated elements.

Inputs: deckId (required), slideId (required), targetPosition.

slide_listB
Read-only

List all slides in a presentation deck in presentation order.

Inputs: deckId (required).

slide_moveA

Reorder slides in a presentation deck, either by providing a complete slideOrder array or moving a single slideId to a target position.

Inputs: deckId (required), slideId, slideOrder, toPosition.

slide_readA
Read-only

Read metadata, elements, and speaker notes for a specific slide.

Inputs: deckId (required), slideId (required).

slide_renderA
Read-only

Render a slide to a PNG image preview for visual feedback.

Inputs: deckId (required), slideId (required), width, filePath, +1 more.

slide_updateC

Update metadata, title, or speaker notes of one or more slides in batch.

Inputs: deckId (required), updates (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 26 tools

    Disambiguation4/5

    Tools are clearly grouped by resource (deck, slide, slide_collection, element) with distinct CRUD/list verbs, so most selections are straightforward. Minor overlap exists because deck_read returns slide lists and collections, and slide_collection_list is close to slide_list, but descriptions resolve this.

    Naming Consistency5/5

    All tools follow a consistent snake_case resource/action pattern (e.g., deck_create, slide_update, element_reorder). Multi-word resources like slide_collection are handled uniformly across create/read/update/delete/list.

    Tool Count3/5

    At 26 tools the surface is heavy, though the multi-resource domain of decks, slides, collections, and elements justifies many operations. Batch operations help, but there is still some consolidation opportunity, placing it at the borderline.

    Completeness4/5

    Deck, slide, collection, and element lifecycles are well covered, including import, validation, duplication, reordering, rendering, and batch updates. Minor gaps include no deck export/download and no obvious cross-deck copy or slide search.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers