google-slides-mcp
Used for copying entire presentations (preserving masters, layouts, theme) via the Drive files.copy API as part of the template reuse workflow.
Provides low-level tools for reading, creating, editing Google Slides presentations, manipulating slides and elements, rendering slides to PNG, and high-fidelity template reuse.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@google-slides-mcpCopy my template 'Sales Deck' and replace all text with Q3 figures."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
google-slides-mcp
A uvx-runnable MCP server for low-level
interaction with the Google Slides API.
It is built to be more capable than typical Slides MCPs. In addition to reading presentations and slides as structured objects, it can:
Reuse a "model template" / showcase deck with full fidelity. Copy a styled showcase deck, duplicate the example slides you want (e.g. a 3‑column layout), fill them with content, and prune the rest — leaving a result functionally identical to hand‑editing the showcase (masters, layouts, theme and colors are all preserved).
Edit element bounding boxes in points (position/size) without doing affine matrix math, plus raw transform / z‑order / grouping control.
Render slides to PNG and diff two renders so you can verify output is pixel‑perfect.
Issue raw
batchUpdaterequests for anything the convenience tools don't cover.
Every tool makes a bounded number of API calls and returns trimmed output, so an LLM driving it has a predictable, finite cost.
Why the template workflow works this way
The Google Slides API has no native cross‑presentation slide copy.
duplicateObject only works within one presentation, and recreating a slide's
elements by hand in another deck loses fidelity (placeholder inheritance, master
styling and theme colors are dropped).
The high‑fidelity pattern this server implements is:
copy_presentation→ Drivefiles.copyclones the entire showcase deck, preserving masters, layouts, theme and color scheme.catalog_slides→ summarize the example slides so you can pick one per section.duplicate_slide→ copy a chosen example slide within the new deck (full fidelity).replace_all_text/set_element_box→ fill content and adjust layout.delete_objects→ prune the original showcase example slides.render_page/diff_pages→ verify the result.
Related MCP server: PPTX MCP Server
1. Google Cloud Console setup (one time)
Go to the Google Cloud Console and create a project (or select an existing one).
Enable the APIs: APIs & Services → Library → enable both Google Slides API and Google Drive API.
Configure the OAuth consent screen: APIs & Services → OAuth consent screen.
User type: External (or Internal if you're in a Workspace org).
Fill in app name / support email.
Add the scopes
.../auth/presentationsand.../auth/drive.Under Test users, add the Google account you'll authorize with.
⚠️ While the app is in Testing status, refresh tokens expire after 7 days. Re-run the auth command when that happens, or publish the app.
Create credentials: APIs & Services → Credentials → Create credentials → OAuth client ID.
Application type: Desktop app.
Download the JSON — this is your
client_secret.json.
Scope note: this server requests the broad
auth/drivescope so it canfiles.copyany template you own by ID. If you only ever copy decks the app itself created, you can narrow this viaGOOGLE_SLIDES_SCOPES(see below), but the showcase workflow on existing decks needsauth/drive. Google requires the fully‑qualified scope URLs (e.g.https://www.googleapis.com/auth/drive); the short namespresentations/driveare accepted and expanded for you.
2. Install & first‑time login
Auth uses a standard interactive OAuth 2.0 installed‑app flow built to roll out to a team: you distribute one Desktop OAuth client JSON, and each person logs in once in a browser to cache their own personal refresh token. There is no shared, single‑user token.
You can authorize either way:
Option A — let the server do it (zero extra commands). Just configure the MCP server (next section) with your client secret. The first launch opens a browser for consent automatically and caches the token; every launch after that is silent.
Option B — log in explicitly up front (recommended for headless/server hosts, or to authorize before wiring up your MCP client):
GOOGLE_CLIENT_SECRET=/absolute/path/to/client_secret.json \
uvx --from git+https://github.com/justparent/google-slides-mcp google-slides-mcp-authEither way the token is written to ~/.config/google-slides-mcp/token.json
(override with GOOGLE_TOKEN_PATH / TOKEN_PATH). Once published to PyPI you'll be
able to drop --from … and just run uvx google-slides-mcp-auth.
If you're deploying somewhere without a browser, set
GOOGLE_SLIDES_NO_BROWSER_AUTH=1so the server never tries to open one, and use Option B to authorize ahead of time.
3. Configure your MCP client
Add the server to Claude Desktop / Claude Code (mcpServers config):
{
"mcpServers": {
"google-slides": {
"command": "uvx",
"args": [
"--from", "git+https://github.com/justparent/google-slides-mcp",
"google-slides-mcp"
],
"env": {
"GOOGLE_CLIENT_SECRET": "/absolute/path/to/client_secret.json",
"GOOGLE_TOKEN_PATH": "~/.config/google-slides-mcp/token.json"
}
}
}
}After PyPI publication: "args": ["google-slides-mcp"].
Environment variables
Variable | Default | Purpose |
|
| Path to the Desktop OAuth client JSON. |
|
| Where this user's cached token is stored (must be writable). |
|
| Comma‑separated scope override (advanced). Short names or full |
| unset | Set to |
The
GOOGLE_*names and the shorter aliases (CREDENTIALS_PATH/TOKEN_PATH) are interchangeable; if both are set, theGOOGLE_*name wins.
Tools
Core read
Tool | Purpose | API calls |
| Create an empty deck. | 1 |
| Bounded structured overview of a deck. | 1 |
| Bounded summary of one slide. | 1 |
| Minimal index/id/layout list. | 1 |
Raw write
Tool | Purpose | API calls |
| Apply raw Slides | 1 |
Element / transform / bounding box
Tool | Purpose | API calls |
| Place/size a box in points. | ≤2 |
| Apply a raw AffineTransform. | 1 |
| Reorder front/back stacking. | 1 |
| Group/ungroup elements. | 1 |
Text
Tool | Purpose | API calls |
| Fill placeholder tokens. | 1 |
| Insert text into a shape/cell. | 1 |
| Replace all of one element's text. | 1 |
Template / showcase reuse
Tool | Purpose | API calls |
| Clone a deck preserving full styling. | 1 |
| Per‑slide descriptor (incl. | 1 |
| Full‑fidelity in‑deck slide copy. | 1 |
| Delete slides/elements (prune). | 1 |
| Move slides. | 1 |
Iteration / palette
Tool | Purpose | API calls |
| Hide slides (skip) to keep them as a clone source. | 1 |
| Unhide parked slides. | 1 |
| Delete all parked slides — final cleanup. | ≤2 |
Rendering / verification
Tool | Purpose | API calls |
| Render a slide to PNG. | 1 (expensive) |
| Render two slides + pixel diff. | 2 (expensive) |
render_page/diff_pagesuse the thumbnail endpoint, an expensive quota operation (300/min per project, 60/min per user). Rendering is per‑page by design — there is no whole‑deck render.
Example: build a deck from a showcase template
copy_presentation(source_id="<showcase_id>", title="Q3 Review") → new deck id
catalog_slides(presentation_id="<new_id>") → pick example slides
duplicate_slide(presentation_id="<new_id>", page_id="<3col_example>", insertion_index=1)
replace_all_text(presentation_id="<new_id>", mappings={"{{title}}": "Results"})
delete_objects(presentation_id="<new_id>", object_ids=["<original_examples>..."])
render_page(presentation_id="<new_id>", page_id="<new_slide>") → verify visually
diff_pages(presentation_id="<new_id>", page_a="<new_slide>", page_b="<showcase_example>")Iterative / palette workflow
You do not have to assemble the deck in one shot. Every tool is an independent call, so you can keep adding slides across many turns ("great, now add another three‑column slide that says xyz").
The key idea is a palette: because the Slides API can only duplicate slides
within one deck, keep the showcase example slides present in the working deck as
reusable sources, and duplicate from them on demand. park_slides hides them
(skips them in present mode) so they don't clutter the in‑progress deck, and
prune_parked_slides removes them all at the very end.
# Once, at the start of a project:
copy_presentation(source_id="<showcase_id>", title="Q3 Review") → working deck (palette embedded)
park_slides(presentation_id="<new_id>", slide_ids=[<all example ids>]) → hide the palette
# Repeat any number of times, across separate turns:
catalog_slides(presentation_id="<new_id>") → find the 3‑column example id (isSkipped=true)
duplicate_slide(presentation_id="<new_id>", page_id="<3col_example>") → new live slide
set_element_text(presentation_id="<new_id>", element_id="<col1>", text="xyz")
# ...or replace_all_text(..., page_ids=["<new_slide>"]) if the example uses {{tokens}}
render_page(presentation_id="<new_id>", page_id="<new_slide>") → verify
# Once, at the end (the skill's responsibility):
prune_parked_slides(presentation_id="<new_id>") → delete the paletteWhy park instead of delete?
park_slideskeeps every layout available as a clone source for later turns. If youdelete_objectsan example early, a layout you never instantiated is gone from the deck (there is no cross‑deck copy).
Fallback: recreating a layout
If a needed layout was already pruned, you can rebuild a slide from the deck's
layouts (visible via get_presentation(..., include_masters=True)) using
createSlide with a slideLayoutReference, plus createShape/createImage via
batch_update. This reproduces a layout's placeholders faithfully, but
recreating an arbitrary slide's elements this way is not guaranteed
pixel‑perfect — theme colors, master styling and placeholder inheritance can be
lost. Prefer keeping the palette parked.
Development
uv venv && uv pip install -e ".[dev]"
uv run pytest # unit + smoke tests (no network/credentials)
uv build # build sdist + wheelA ready-to-use Claude skill describing the canonical workflow lives at
example_skill/SKILL.md.
The codebase is intentionally small and modular so it can back that skill:
Module | Responsibility |
| OAuth installed‑app flow, token cache, login CLI. |
| Builds Slides/Drive services; bounded 429/5xx backoff. |
| EMU/PT conversion, transform & bounding‑box math. |
| Trims verbose API responses into bounded summaries. |
| Collision‑safe object‑ID generation. |
| Copy / catalog / duplicate / prune helpers. |
| Thumbnail rendering + Pillow image diff. |
| FastMCP server wiring the tools together. |
Troubleshooting
"No cached Google credentials …" — run
google-slides-mcp-authfirst.Token stopped working after ~7 days — your OAuth app is in Testing status; re-run the auth command or publish the consent screen.
insufficient scopes/ can't copy a template — ensure theauth/drivescope is granted (re-run auth after enabling it on the consent screen)."Access blocked: Authorization Error" /
Error 400: invalid_scope(Some requested scopes were invalid) — the scopes sent weren't fully‑qualified URLs. Use the fullhttps://www.googleapis.com/auth/...form (or the short namespresentations/drive, which are now expanded for you) inGOOGLE_SLIDES_SCOPES.
License
MIT — see LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/JustParent/google-slides-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server