Skip to main content
Glama
gamma-app-mcp
by cphoskins

gamma-app-mcp

MCP server for Gamma.app — generate presentations, documents, webpages, and social posts via the Gamma Public API v1.0. Full parameter surface including templates, folders, headers/footers, and email sharing.

Features

  • Generate from text — presentations, documents, webpages, and social posts with the full v1.0 parameter surface

  • Generate from template — swap content into an existing Gamma template, preserving layout (ideal for batch variants)

  • Poll generation status — async job tracking with share URL, export URL, and credit usage

  • List workspace themes — discover real theme IDs (no more hardcoded fallbacks)

  • List workspace folders — paginated folder discovery for output organization

  • Describe options — local enum introspection so LLMs can look up valid values without trial and error

  • Structured error surfacing — Gamma API error codes and payloads flow through instead of being swallowed

  • Input validation — char limits, enum checks, and format/dimension compatibility verified before network calls

Related MCP server: Gamma MCP Server

Installation

pip install gamma-app-mcp

Or install from source:

git clone https://github.com/cphoskins/gamma-app-mcp.git
cd gamma-app-mcp
pip install -e .

Configuration

Get your API key

  1. Log in to Gamma.app

  2. Go to Account Settings > API Keys (https://gamma.app/settings/api-keys)

  3. Generate a key

API key access requires a Pro, Ultra, Teams, or Business plan.

Claude Code

claude mcp add gamma -s user \
  -e GAMMA_API_KEY=sk-gamma-your-key-here \
  -- gamma-app-mcp

Claude Desktop / other stdio hosts

Add to your client config:

{
  "mcpServers": {
    "gamma": {
      "command": "gamma-app-mcp",
      "env": {
        "GAMMA_API_KEY": "sk-gamma-your-key-here"
      }
    }
  }
}

Environment variables

Variable

Required

Description

GAMMA_API_KEY

Yes

Your Gamma API key (Account Settings > API Keys)

GAMMA_BASE_URL

No

Override the public API base URL (default: https://public-api.gamma.app)

Tools

Tool

Purpose

gamma_generate

Create a presentation, document, webpage, or social post from text. Full control over format, themes, images, headers/footers, folders, sharing, and export.

gamma_generate_from_template

Create a variant from an existing Gamma template (gammaId), swapping content while preserving layout.

gamma_get_status

Poll a generation job by generationId until status is completed or failed. Returns gammaUrl, exportUrl, and credit usage.

gamma_list_themes

List themes in the authenticated workspace (standard + custom, 50+ themes). Cursor-paginated with query/limit/after — matching gamma_list_folders. Surfaces errors instead of falling back to hardcoded defaults.

gamma_list_folders

List workspace folders the authenticated user is a member of, with query filter and cursor pagination.

gamma_describe_options

Local lookup of accepted enum values for API parameters — no network call.

Example workflow

1. Simple presentation

# Via MCP:
gamma_generate(
    input_text="Q3 2026 board update — ARR, burn, hiring plan, risks.",
    format="presentation",
    num_cards=12,
    text_options={"amount": "detailed", "tone": "professional", "audience": "board members"},
    image_options={"source": "aiGenerated", "style": "clean editorial"},
    card_options={"dimensions": "16x9"},
    export_as="pdf",
)
# -> {"generationId": "abc123...", "status": "submitted"}

gamma_get_status("abc123...")
# -> {"status": "completed", "gammaUrl": "https://gamma.app/docs/...", "exportUrl": "...", "credits": {...}}

2. Template-based batch variant

# Discover theme and folder IDs
gamma_list_themes()
gamma_list_folders(query="Investor")

# Generate from an existing 1-page template
gamma_generate_from_template(
    prompt="Personalized intro deck for Acme Corp, a manufacturing client in Dallas.",
    gamma_id="gamma_tpl_abc123",
    theme_id="theme_xyz",
    folder_ids=["fld_investor_decks"],
    export_as="pptx",
)

3. Branded deck with header/footer

gamma_generate(
    input_text="...",
    format="presentation",
    card_options={
        "dimensions": "16x9",
        "headerFooter": {
            "topLeft": {"type": "image", "source": "themeLogo", "size": "sm"},
            "bottomRight": {"type": "cardNumber"},
            "bottomCenter": {"type": "text", "value": "Confidential"},
            "hideFromFirstCard": True,
        },
    },
    sharing_options={
        "workspaceAccess": "edit",
        "externalAccess": "view",
        "emailOptions": {
            "recipients": ["team@example.com"],
            "access": "comment",
        },
    },
)

Development

git clone https://github.com/cphoskins/gamma-app-mcp.git
cd gamma-app-mcp
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pytest

Release

./release.sh 0.3.0
git add -A && git commit -m "Release v0.3.0"
git tag v0.3.0
git push origin main --tags

The push --tags triggers .github/workflows/publish.yml, which builds the sdist/wheel, publishes to PyPI via trusted publishing (OIDC, no stored tokens), and creates a GitHub release. See PUBLISHING.md for the one-time PyPI trusted publisher setup.

API reference

See GAMMA_API_REFERENCE.md for the full v1.0 endpoint and parameter inventory sourced from developers.gamma.app.

License

MIT — see LICENSE. Inspired by CryptoJym/gamma-mcp-server; ground-up Python rewrite with expanded coverage and corrected v1.0 endpoint paths.

Available Tools

6 tools
gamma_describe_optionsA

Describe accepted enum values for Gamma API parameters.

Local lookup — no network call. Helps you discover valid values without trial and error.

Args: category: Specific category to describe. One of: textModes, formats, cardSplits, textAmounts, imageSources, cardDimensions, cardDimensionsByFormat, exportTypes, workspaceAccessLevels, externalAccessLevels, emailAccessLevels, headerFooterElementTypes, headerFooterImageSources, headerFooterImageSizes, headerFooterPositions. Empty to list all categories. format: When category is cardDimensions or cardDimensionsByFormat, filter to allowed dimensions for a specific format (presentation, document, social, webpage).

Inputs: category, format. Returns: result

gamma_generateA

Generate a Gamma presentation, document, webpage, or social post from text.

Generation is asynchronous. Returns a generationId; poll gamma_get_status until status is 'completed' or 'failed' to retrieve the share URL.

Args: input_text: Topic, outline, or full content (1-400000 chars). text_mode: How to interpret input — 'generate' (expand), 'condense', or 'preserve' (keep as-is). Default 'generate'. format: Output type — 'presentation', 'document', 'social', or 'webpage'. Omit to use Gamma's default. theme_id: Theme ID from gamma_list_themes. Omit for default theme. num_cards: Target card count (minimum 1, plan-dependent maximum). 0 = let Gamma decide. card_split: 'auto' or 'inputTextBreaks' (splits on blank lines in input). additional_instructions: Extra style/content guidance (max 5000 chars). export_as: Auto-export format — 'pdf', 'pptx', or 'png'. Empty for no export. folder_ids: Workspace folder IDs to place the output in (max 10). Use gamma_list_folders to discover IDs. text_options: Nested object with 'amount' (brief|medium|detailed|extensive), 'tone' (string, max 500 chars), 'audience' (string, max 500 chars), 'language' (ISO code, e.g. 'en', 'es', 'fr'). image_options: Nested object with 'source' (aiGenerated, pictographic, unsplash, webAllImages, webFreeToUse, webFreeToUseCommercially, giphy, pexels, placeholder, noImages, themeAccent), 'model' (e.g. 'dall-e-3', 'imagen-4-ultra', 'flux-2-pro'), 'style' (string, max 500 chars). card_options: Nested object with 'dimensions' (fluid, 16x9, 4x3, pageless, letter, a4, 1x1, 4x5, 9x16 — must match format) and 'headerFooter' (6-position layout with logos, card numbers, or text). sharing_options: Nested object with 'workspaceAccess' (noAccess, view, comment, edit, fullAccess), 'externalAccess' (noAccess, view, comment, edit), and 'emailOptions' ({recipients: [...], access: ...}).

Call gamma_describe_options to inspect accepted enum values.

Inputs: input_text (required), text_mode, format, theme_id, +9 more. Returns: result

gamma_generate_from_templateA

Generate a variant from an existing Gamma template with swapped content.

Uses POST /generations/from-template. The template Gamma must have exactly one Page. Layout is preserved; new content is generated from the prompt. Ideal for batch content with consistent branding — per-segment investor decks, per-lead LinkedIn cards, rebranded decks per channel partner.

Args: prompt: Content description for the new variant (1-400000 chars). gamma_id: The Gamma ID of the template file (required). theme_id: Optional theme ID to override the template's theme. image_options: Same shape as gamma_generate's image_options. sharing_options: Same shape as gamma_generate's sharing_options. folder_ids: Workspace folder IDs to place the output in (max 10). export_as: Auto-export format — 'pdf', 'pptx', or 'png'.

Inputs: prompt (required), gamma_id (required), theme_id, image_options, +3 more. Returns: result

gamma_get_statusA

Poll a generation job to retrieve status and results.

Call after gamma_generate or gamma_generate_from_template with the returned generationId. Poll every few seconds until status is 'completed' or 'failed'. On completion, the response includes gammaUrl (shareable link), exportUrl (if exportAs was requested), and credits (deducted/remaining).

Args: generation_id: The generationId returned from a generate call.

Inputs: generation_id (required). Returns: result

gamma_list_foldersA

List workspace folders the authenticated user is a member of.

Cursor-paginated. Use the returned folder IDs as the folder_ids parameter when calling gamma_generate or gamma_generate_from_template to place output into specific folders.

Args: query: Filter folders by name substring. Empty for no filter. limit: Results per page (1-50). 0 = let Gamma decide. after: Cursor from a previous response's nextCursor for pagination.

Inputs: query, limit, after. Returns: result

gamma_list_themesA

List themes available in the authenticated workspace.

Returns both standard and custom themes with their IDs plus colorKeywords and toneKeywords metadata (50+ themes at last count). Cursor-paginated. Use the returned theme ID as the theme_id parameter when calling gamma_generate or gamma_generate_from_template.

Args: query: Filter themes by name substring (e.g. 'dark'). Empty for no filter. limit: Results per page (1-50). 0 = let Gamma decide (default). after: Cursor from a previous response's nextCursor for pagination.

Inputs: query, limit, after. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: parameter discovery, generation from text, generation from template, status polling, folder listing, and theme listing. No two tools overlap in functionality.

    Naming Consistency4/5

    All tools use snake_case with a 'gamma_' prefix. Most follow a verb_noun pattern, but 'gamma_generate' is just a verb (no noun object), and 'gamma_generate_from_template' uses a preposition. Minor inconsistency does not hinder understanding.

    Tool Count5/5

    6 tools is well within the typical 3-15 range. Each tool serves a necessary role in the Gamma generation workflow without redundancy or bloat.

    Completeness4/5

    Covers the core generation lifecycle: parameter exploration, creation (two variants), status polling, and resource listing. Missing listing of existing Gammas or deletion, but these are not essential for the stated generation purpose.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers