Skip to main content
Glama

keynote-mcp

Local macOS MCP server that reads, edits, and exports Apple Keynote presentations via JXA (JavaScript for Automation). Enables Claude to visually analyze slides, apply design changes, and iterate on presentations directly — without any third-party tools.

Requirements

  • macOS with Apple Keynote installed

  • Node.js 20+

  • Keynote must be running with at least one document open

Related MCP server: Keynote-MCP

Installation

git clone https://github.com/tszaks/keynote-mcp
cd keynote-mcp
npm install && npm run build

Add to ~/.mcp.json:

{
  "mcpServers": {
    "keynote-mcp": {
      "type": "stdio",
      "command": "/opt/homebrew/bin/node",
      "args": ["/path/to/keynote-mcp/dist/index.js"]
    }
  }
}

Restart Claude Code. Tools appear as mcp__keynote-mcp__keynote_*.


Tools Reference

All tools accept doc_index (0-based, defaults to 0 = frontmost document). Elements are addressed by slide_index (0-based) + element_type (textItem, imageItem, shapeItem) + element_index (0-based within that collection). Colors are [r, g, b] with values 0–255. Slide coordinates are in points; standard Keynote slide is 1920×1080 pts.

Discovery

keynote_list_presentations

List all open Keynote documents.

Input: {}
Output: [{ index, name, slideCount, modified, filePath }]

keynote_get_presentation_info

Get slide count and available master slide names. Call this first before redesigning — you need master names to call keynote_apply_master.

Input: { doc_index? }
Output: { name, slideCount, masterSlides: string[], filePath, modified }

keynote_get_slide

Get the full element tree for one slide: all text boxes, images, and shapes with position, size, font, font size, and color.

Input: { doc_index?, slide_index }
Output: {
  slideIndex, masterSlide, skipped, elementCount,
  elements: [{
    type: "textItem" | "imageItem" | "shapeItem",
    index,
    text?,         // textItem only
    font?,         // textItem only
    fontSize?,     // textItem only
    color?,        // textItem only — [r,g,b] 0-255
    fillColor?,    // shapeItem only — [r,g,b] 0-255
    fileName?,     // imageItem only
    position: { x, y },
    size: { w, h }
  }]
}

Export (Visual Analysis)

keynote_export_slide_image

Export a single slide as PNG. Returns the file path — use the Read tool on that path to see the slide visually.

Input: { doc_index?, slide_index }
Output: { filePath, slideIndex, exportDir }

keynote_export_all_slides

Export all slides as PNG to ~/Library/Caches/keynote-mcp/<doc>/. Returns array of file paths.

Input: { doc_index? }
Output: { exportDir, slideCount, files: string[] }

keynote_get_design_snapshot

Best starting point for redesign. One call that exports all slides as PNG AND returns the full element tree for every slide.

Input: { doc_index? }
Output: {
  presentationName, slideCount, exportDir,
  slideImages: string[],   // PNG file paths — Read these for visual analysis
  slides: SlideData[]      // full element trees
}

Text & Font

keynote_set_text

Replace the text content of a text element. Preserves existing font styling.

Input: { doc_index?, slide_index, element_type: "textItem", element_index, text }

keynote_set_font

Set font family, size, and/or color on a text element. Omit any field to leave it unchanged.

Input: {
  doc_index?, slide_index,
  element_type: "textItem", element_index,
  font_name?,   // e.g. "SF Pro Display", "Helvetica Neue", "Didot"
  font_size?,   // points
  color?        // [r,g,b] 0-255
}

Layout

keynote_set_element_position

Move an element. x = distance from left edge, y = distance from top edge, both in points.

Input: { doc_index?, slide_index, element_type, element_index, x, y }

keynote_set_element_size

Resize an element.

Input: { doc_index?, slide_index, element_type, element_index, width, height }

Color & Fill

keynote_set_slide_background

Set slide background to a solid color. May fail if the slide's master has a locked background — apply a blank master first with keynote_apply_master.

Input: { doc_index?, slide_index, color: [r,g,b] }

keynote_set_element_fill_color

Set the fill color of a shape element.

Input: { doc_index?, slide_index, element_type: "shapeItem", element_index, color: [r,g,b] }

Add & Delete Elements

keynote_add_text_box

Add a new text box to a slide.

Input: { doc_index?, slide_index, text?, x?, y?, width?, height? }
Output: { added, slideIndex, newElementIndex }

keynote_add_shape

Add a rectangle or oval shape, with optional fill color.

Input: { doc_index?, slide_index, x?, y?, width?, height?, fill_color?: [r,g,b] }
Output: { added, slideIndex, newElementIndex }

keynote_delete_element

Remove an element from a slide. Keynote undo (Cmd+Z) still works in the app.

Input: { doc_index?, slide_index, element_type, element_index }

Slides

keynote_apply_master

Apply a master slide to one slide or all slides. Get valid master names from keynote_get_presentation_info.

Input: { doc_index?, master_name, slide_index? }
// Omit slide_index to apply to all slides

keynote_add_slide

Append a new blank slide at the end.

Input: { doc_index? }
Output: { added, newSlideIndex, slideCount }

keynote_delete_slide

Delete a slide.

Input: { doc_index?, slide_index }

keynote_duplicate_slide

Duplicate a slide. The copy is inserted immediately after the original.

Input: { doc_index?, slide_index }

Workflow Patterns

Visual Design Review

1. keynote_get_design_snapshot          → get all slide images + element trees
2. Read(slideImages[0])                 → see slide 0 visually
3. Read(slideImages[1])                 → see slide 1 visually
   ...
4. Identify issues: inconsistent fonts, low contrast, crowded layouts
5. Apply fixes with set_font / set_element_position / set_slide_background
6. keynote_export_slide_image           → verify the result visually

Enforce Typography Consistency

1. keynote_get_slide for each slide     → collect all font names and sizes
2. Identify the dominant font family
3. keynote_set_font on outliers to match

Redesign a Single Slide

1. keynote_export_slide_image           → see current state
2. keynote_get_slide                    → get element positions and sizes
3. Apply repositions, resizes, font changes
4. keynote_export_slide_image           → verify result

Known Limitations

  • Export requires a saved file — if filePath is empty in list_presentations, save the document first (Cmd+S). Export will fail on unsaved presentations.

  • Element positions return 0,0 for some Keynote layouts — this is a JXA limitation with certain master/layout combinations. Text content and font data are unaffected.

  • Background color changes may be blocked by master slide locks. Use keynote_apply_master with a blank master first.

  • No animation access — JXA does not expose Keynote transition or build animation properties.

  • Image content is not readable — imageItem elements return file name and dimensions only, not pixel data.


Architecture

TypeScript MCP server using the @modelcontextprotocol/sdk. All Keynote interaction goes through JXA (JavaScript for Automation) via osascript -l JavaScript. Operations and payloads are passed as environment variables; results return as a JSON envelope { ok: boolean, result? | error? } on stdout.

Follows the same pattern as reminders-mcp, safari-mcp, and other local macOS MCP servers in the same ecosystem.

Available Tools

19 tools
keynote_add_shapeB

Add a new shape (rectangle or oval) to a slide. Optionally set a fill color.

Inputs: slide_index (required), doc_index, x, y, +3 more.

keynote_add_slideA

Add a new blank slide at the end of the presentation.

Inputs: doc_index.

keynote_add_text_boxB

Add a new text box to a slide at a specified position and size.

Inputs: slide_index (required), doc_index, text, x, +3 more.

keynote_apply_masterA

Apply a master slide to one slide or all slides. Use keynote_get_presentation_info first to see available master names. Applying a blank master before color changes can help unlock the background.

Inputs: master_name (required), doc_index, slide_index.

keynote_delete_elementA

Delete an element from a slide. Use with care — this cannot be undone via the MCP. Keynote undo (Cmd+Z) still works in the app.

Inputs: slide_index (required), element_type (required), element_index (required), doc_index.

keynote_delete_slideB

Delete a slide from the presentation.

Inputs: slide_index (required), doc_index.

keynote_duplicate_slideA

Duplicate a slide. The copy is inserted immediately after the original.

Inputs: slide_index (required), doc_index.

keynote_export_all_slidesA

Export all slides as PNG images to /tmp/keynote-mcp-export/. Returns the list of file paths. Use Read on each path to visually analyze slides.

Inputs: doc_index.

keynote_export_slide_imageA

Export a single slide as a PNG image. Returns the file path. Use the Read tool on that path to visually analyze the slide with vision.

Inputs: slide_index (required), doc_index.

keynote_get_design_snapshotA

One-call setup for redesign: exports all slides as PNG images AND returns the full element tree for every slide. This is the best starting point for a full presentation redesign or polish pass.

Inputs: doc_index.

keynote_get_presentation_infoA

Get metadata for an open presentation: slide count, available master slide names, and file path. Call this first to understand what masters are available before redesigning.

Inputs: doc_index.

keynote_get_slideA

Get the full element tree for a single slide: all text boxes, images, and shapes with their position, size, font, and color. Use this to understand the structure of a slide before editing it.

Inputs: slide_index (required), doc_index.

keynote_list_presentationsA

List all currently open Keynote presentations. Returns index, name, slide count, and file path for each.

Inputs: no named parameters.

keynote_set_element_fill_colorC

Change the fill color of a shape element.

Inputs: slide_index (required), element_type (required), element_index (required), color (required), +1 more.

keynote_set_element_positionB

Move an element to a new position on the slide. Coordinates are in points from the top-left corner. Keynote standard slide is 1920×1080 pts.

Inputs: slide_index (required), element_type (required), element_index (required), x (required), +2 more.

keynote_set_element_sizeB

Resize an element on the slide. Dimensions are in points.

Inputs: slide_index (required), element_type (required), element_index (required), width (required), +2 more.

keynote_set_fontA

Set font family, size, and/or color on a text element. Any omitted fields are left unchanged. Use this to enforce typographic consistency across slides.

Inputs: slide_index (required), element_type (required), element_index (required), doc_index, +3 more.

keynote_set_slide_backgroundB

Change the background color of a slide to a solid color. Use this to establish a consistent color palette across all slides.

Inputs: slide_index (required), color (required), doc_index.

keynote_set_textB

Replace the text content of a text element on a slide. Preserves existing font styling.

Inputs: slide_index (required), element_type (required), element_index (required), text (required), +1 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 19 tools

    Disambiguation5/5

    Each tool targets a distinct action on specific elements (slides, shapes, text boxes, masters, exports, queries). No two tools have overlapping purposes, ensuring clear differentiation for an agent.

    Naming Consistency5/5

    All tools follow a consistent 'keynote_verb_noun' pattern in snake_case, making the tool set predictable and easy to navigate for both agents and humans.

    Tool Count4/5

    19 tools is on the higher side but appropriate for Keynote's complexity. Each tool serves a specific need, covering slides, elements, masters, exports, and queries without redundancy.

    Completeness4/5

    The set covers core slide and element manipulation (CRUD, styling, positioning, export). Minor gaps exist (e.g., no grouping or image insertion), but the surface is sufficient for common redesign and editing tasks.

    Maintenance

    ActivityNo data
    ResponsivenessSyncing

    Related MCP Connectors

    • Beautiful.ai MCP server for ChatGPT, Claude and any AI agent: list presentations, create presentation, update slide text, duplicate presentation and export to PDF in your own Beautiful.ai account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Beautiful.ai yourself; Cotlet does not store your password and you need no Beautiful.ai API key. About the official Beautiful.ai API: Beautiful.ai has an API that creates presentations from a structured outline and an official MCP connector that creates draft decks, lists presentations and exports PDF or PowerPoint (checked 11 Oct 2026). Neither edits existing slides, reads slide text, manages sharing or returns analytics. Setup and FAQ: https://cotlet.dev/integrations/beautiful-ai-api-mcp-server

    • MCP server for Clipkit — gives AI agents a video toolbox via the Clipkit schema.

      https://www.clipkit.dev/mcp
    • Search, read, and write your Apple Notes from ChatGPT/Claude via a local Mac agent + MCP relay.

    • Build it. Rehearse it. Own the room. The hosted MCP server for Kadal Deck (deck.kadal.cc), which has your back for the whole talk, from the first idea to the last applause. Connect once with OAuth and your AI agent can list and inspect your decks, read a talk in progress (current slide, who is watching, polls and questions by votes), check analytics, change titles, visibility and passcodes, roll back versions, create share links, and quick-edit and publish decks through the web builder, with conflict-safe publishing that never overwrites newer work. Pair it with the local server (npx @kadal/deck mcp) to write, check and build decks on your machine. Open source.

      https://deck.kadal.cc/mcp

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that enables AI assistants to control Apple Keynote presentations through AppleScript automation, supporting comprehensive slide creation, management, and content operations.
      82
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that enables AI assistants to control Keynote presentations through AppleScript automation, supporting slide operations, theme-aware content management, and export functions.
      11
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      An MCP server that provides 113 tools for automating Apple iWork apps (Numbers, Pages, Keynote) via JavaScript for Automation, enabling AI assistants to create, edit, and export documents, spreadsheets, and presentations.
      1
      49
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides an MCP server for programmatic reading, authoring, editing, designing, and optimization of Apple Keynote presentations.
      MIT