SuperAPIAI Directory

mcp-google-slides

github.com · AI productivity

Google Slides API: create and edit presentations, slides, shapes, tables and images, speaker notes and exports.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

MCP Google Slides is an MCP (Model Context Protocol) server that connects to the Google Slides API, allowing AI applications to build and edit Google Slides presentations using natural language. It is aimed at MCP-capable clients such as Claude, Cursor, and Codex, is published by A1-x-Tech, and has the npm package name @a1-x-tech/mcp-google-slides.

Purpose The server lets users draft presentations, add and reorder slides, write and style text, place shapes, images, and tables, preserve speaker notes, review comments, and export results as PDF or PPTX. It uses the Google Slides API and the user's own Google account, and all objects in a presentation are addressed by explicit object IDs. The project clearly states the capability limits of the Google Slides API and does not imply that every presentation task can be completed.

Main capabilities The project provides a total of 32 tools that can inspect presentations and pages, edit slides, text, shapes, images, and tables, manage speaker notes and comments, render thumbnails, and export files. Edits are made through the API's batchUpdate and are atomic: one invalid request invalidates the entire batch, so the presentation will not be left in a half-finished state. Tool inputs are in points (pt), the API stores them in EMU (1 pt = 12700 EMU), and the server handles conversion in both directions.

Usage Using it requires Node.js 20+ and a Google account. No credentials are needed during installation; the server completes the connection from within the conversation. The recommended approach is to say "connect Google Slides" in the conversation after connecting, and the assistant will guide the user through creating an OAuth client and approving access, with no need to edit configuration files. The specific flow includes: setup_instructions prints a checklist (create or select a Google Cloud project, enable the Google Slides API, configure the consent screen and create a desktop app OAuth client); download the client JSON and provide its path (set_client stores it with owner-only permissions, and the secret does not pass through the conversation); start_login returns a Google consent link, open it locally and approvethen the code returns to a one-time listener on 127.0.0.1 (PKCE), without passing through chat; finish_login exchanges the code and saves the token to ~/.config/mcp-google-slides/credentials.json (permissions 0600). The token is re-read on every call, so the connection takes effect immediately with no need to restart the AI application. auth_status shows what is connected, and logout revokes and deletes it.

You can also manually add the server in the AI application: open settings → MCP servers, choose to add a server, choose STDIO, enter the command npx -y @a1-x-tech/mcp-google-slides@latest and the environment variables GOOGLE_SLIDES_CLIENT_ID, GOOGLE_SLIDES_CLIENT_SECRET, GOOGLE_SLIDES_REFRESH_TOKEN, then save and restart. The configuration methods for each client (Claude Desktop, Cursor, Codex, VS Code) are described separately in the project documentation. The environment variable method is suitable for CI and unattended installations: you need to create or select a Google Cloud project and enable the Google Slides API; if you need comments, exports, or local image uploads, you also need to enable the Google Drive API; configure the consent screen and create a desktop app OAuth client; authorize a Google account that owns or can edit presentations, and obtain a refresh token via OAuth 2.0 Playground; request scopes https://www.googleapis.com/auth/presentations and https://www.googleapis.com/auth/drive.file。presentations cover all Slides read/write; drive.file covers local image uploads, comments, and exports for presentations created through this app. If you need to comment on or export any presentation, you need to request the broader https://www.googleapis.com/auth/drive。所有变量均为可选,不提供任何变量时服务器从聊天连接。需注意测试模式 OAuth refresh tokens may expire after seven days; for long-term access, publish an OAuth app or use an internal app in a Workspace domain. Client secrets and refresh tokens should be treated as passwords.

Use cases Users can ask the server read-only questions (for example, list the slides and their contents in a quarterly report presentation), and can also ask it to build and rearrange slides (for example, create a presentation, add a Roadmap slide after the agenda, duplicate a template slide, move the summary to the end); write and polish text (for example, place text into a title placeholder, bold and color a deadline red, replace Q2 with Q3 throughout, rewrite the notes on the third slide); review and deliver (for example, list unresolved comment threads and reply to the first one and resolve it, delete draft slides that are no longer needed, export the presentation as PDF or PPTX for people without Google access).

Limitations create_presentation creates a presentation with a title slide; only the title takes effect at creation time. The Slides API cannot delete, rename, or share presentation files; these are Drive file operations outside the server's scope. It cannot import themes (it can only instantiate layouts already present in the presentation), and it cannot anchor new comments to a specific slide. Exports are capped at 10 MB, and thumbnail URLs expire after about 30 minutes. The server does not poll in the background; it runs only when called and does not monitor the presentation between calls; if the AI app supports scheduled tasks, it can check the presentation periodically. Google imposes rate limits, and the server uses backoff when it encounters 429; reads are also retried after network errors and 5xx, while writes are not replayed after an uncertain failure. Thumbnails consume the more expensive read quota. Anonymous telemetry includes installation ID, package version, AI client and platform version, and tool names, and never includes OAuth tokens, presentation contents, tool parameters, or prompts; it can be opted out of with ASKADS_TELEMETRY=0. The server uses the presentations scope, and the Drive scope is needed only for local image uploads, comments, and exports.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools