跳过安装。2 分钟内即可运行。
在 cloud.anythingmcp.com 开始免费试用,一键添加 Google Slides,然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。
摘要
让你的 AI 使用 Google Slides:逐页以文本形式读取演示文稿及演讲者备注,以图片形式查看幻灯片,创建演示文稿,添加、复制和重新排列幻灯片,填写模板,插入文本、文本框和图片。支持个人 Google 账户和 Google Workspace。
试试这样问
Google Slides 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Google Slides、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无
git clone、无本地服务器。
Google Slides + Cursor
让你的 AI 使用 Google Slides:逐页以文本形式读取演示文稿及演讲者备注,以图片形式查看幻灯片,创建演示文稿,添加、复制和重新排列幻灯片,填写模板,插入文本、文本框和图片。支持个人 Google 账户和 Google Workspace。
前提条件
完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:
GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET
步骤 1 — 获取凭证
- 打开 console.cloud.google.com,选择或创建一个项目,然后进入 APIs & Services → Library 启用 Google Slides API。
- 打开 APIs & Services → OAuth consent screen。如果你使用 Google Workspace,选择 Internal(最简单),否则选择 External。选择 External 时,请把发布状态设为 In production:应用处于 Testing 状态时,Google 会在 7 天后撤销它的刷新令牌,连接器每周都会停止工作。如果只供你自己的账户使用,可以直接跳过“unverified app”警告继续。
- 打开 APIs & Services → Credentials → Create credentials → OAuth client ID,应用类型选择 Web application,并添加已授权的重定向 URI
https://cloud.anythingmcp.com/api/mcp-oauth/callback。如果你自行托管 AnythingMCP,请改填https://your-anythingmcp-host/api/mcp-oauth/callback。 - 把客户端 ID 填入
GOOGLE_CLIENT_ID,把客户端密钥填入GOOGLE_CLIENT_SECRET,然后安装连接器。 - 在连接器页面点击 Authorize with Provider,用 AI 要使用其演示文稿的 Google 账户登录。刷新令牌会加密存储,访问令牌会自动续期。
一个 Google 客户端服务所有 Google 连接器:同一个 Cloud 项目和 OAuth 客户端可以服务所有 Google 连接器:Gmail、Google Calendar、Google Drive、Google Sheets、Google Docs、Google Slides、Google Forms、Google Contacts、Google Meet、Google Tasks、Search Console、Analytics 和 Ads。在该项目中启用每个 API,复用同一个客户端 ID 和密钥,并为每个连接器各授权一次。每个连接器只请求它自己需要的权限。
查找演示文稿:把演示文稿的链接粘贴到聊天中;它的 ID 是 https://docs.google.com/presentation/d/<id>/edit 中那串长字符。要按名称查找演示文稿,请同时添加 Google Drive 连接器。AI 会逐页以文本形式读取演示文稿及演讲者备注,也可以把某一页渲染成图片来检查版式。这个图片链接在约 30 分钟内无需登录即可打开,因此拿到链接的任何人都能查看。
模板和新演示文稿:要填写带有 [客户名称] 这类占位符的模板,全文替换是最可靠的方法,而且会保留格式。要为每个客户或产品各做一页,AI 会复制一页模板幻灯片,只填写这份副本。新演示文稿创建在“我的云端硬盘”的根目录,开始时只有一页标题幻灯片。文本框和图片以磅为单位、从左上角开始定位(16:9 幻灯片为 720 x 405 pt);图片必须来自公开 URL,格式为 PNG、JPEG 或 GIF。
权限:连接器请求 https://www.googleapis.com/auth/presentations:读取和编辑你的账户能打开的每个演示文稿。它不包含 Google Drive,因此连接器不能列出、搜索、共享或删除演示文稿文件。
只读设置:在连接器的 OAuth 设置中把 scope 改为 https://www.googleapis.com/auth/presentations.readonly,重新授权,并停用 google_slides_create_presentation、google_slides_add_slide、google_slides_duplicate_object、google_slides_move_slides、google_slides_insert_text、google_slides_add_text_box、google_slides_replace_all_text 和 google_slides_create_image。
安装时默认关闭:google_slides_delete_object 和 google_slides_batch_update,它们可以删除幻灯片和内容。只有在 AI 需要时才逐个打开。
修改需你确认:每次修改前,AI 都会告诉你将在哪个演示文稿中创建、修改或删除什么,并等待你确认。修改会立即保存,所有打开该文件的人都会看到。
限额:Google 允许每个用户每分钟进行 60 次修改、生成 60 张幻灯片图片。超出后会返回 429:请等一分钟再试。
常见错误:401 表示授权已过期或被撤销(同意屏幕处于 Testing 状态时,7 天后必然发生):请再次点击 Authorize with Provider。403 PERMISSION_DENIED 表示该账户无法打开或编辑这个演示文稿,或者 scope 是只读的;403“Slides API has not been used in project”表示 Cloud 项目中没有启用 Google Slides API。404 表示 ID 错误,或者它属于其他类型的文件:上传到 Drive 的 PowerPoint 文件在转换之前不是 Slides 演示文稿。插入图片时出现 400,表示 URL 不是公开的,或者文件不是 PNG、JPEG 或 GIF。
连接器不处理评论,不共享、移动或删除演示文稿,也不把它导出为 PDF 或 PowerPoint(这由 Google Drive 连接器负责),也不编辑存放在 Drive 中的 PowerPoint 文件。
步骤 2 — 安装 adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
步骤 3 — 在 Cursor 中添加连接器
你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(
https://cloud.anythingmcp.com/mcp/…)。本指南中出现YOUR_SERVER_ID的地方都用它替换。
Cursor 从 ~/.cursor/mcp.json 读取 MCP 服务器。添加以下条目:
{
"mcpServers": {
"anythingmcp": {
"url": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
"headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
}
}
}
- 在 AnythingMCP 的 MCP Servers → 你的服务器 → API keys 中创建 MCP API 密钥,并用它替换
YOUR_MCP_API_KEY。 - 保存文件并重启 Cursor。
- 打开 Cursor → Settings → MCP,确认
anythingmcp已列出并处于已连接状态。 - 开始对话,智能体现在可以调用
Google Slides的工具。
可用工具
| Tool | What it does |
|---|---|
google_slides_get_presentation | Read a Google Slides presentation as text, slide by slide: for each slide its objectId, layout, every element with objectId, type (TITLE… |
google_slides_get_page | Read one slide (or a layout or master page) in detail: each element's objectId, type, placeholder index, text, size and transform… |
google_slides_get_page_thumbnail | Render a slide as a PNG and get a link to it: width, height and contentUrl |
google_slides_create_presentation | Create a new presentation with a title, in the root of the user's My Drive |
google_slides_add_slide | Add a slide with a predefined layout of the deck's theme (TITLE_AND_BODY by default), at a position or at the end |
google_slides_duplicate_object | Duplicate a slide (the copy goes right after it) or an element (the copy lands on the same slide, in the same position) |
google_slides_move_slides | Move one or more slides to a new position, keeping their order. insertion_index is the 0-based position in the deck as it is before the move |
google_slides_insert_text | Insert text into a shape: a placeholder (title, body), a text box, or the speaker notes (use the slide's notesObjectId) |
google_slides_add_text_box | Add a text box with text to a slide, at a position and size in points (a 16:9 slide is 720 x 405 pt, a 4:3 one 720 x 540 pt) |
google_slides_replace_all_text | Replace every occurrence of a text in the presentation (or only on the given slides) with another text, keeping the formatting; an empty… |
google_slides_create_image | Place an image from a public URL on a slide |
google_slides_delete_object | Delete a slide or an element (shape, image, table, group) by its objectId |
google_slides_batch_update | Run Slides API batchUpdate requests for edits the other tools do not cover: styling text (updateTextStyle, updateParagraphStyle), deleting… |
示例提示
- “读一下这个链接里的销售演示文稿,把每页幻灯片连同演讲者备注一起总结。”
- “填写方案模板:把 [客户名称] 替换为 Acme GmbH,把 [日期] 替换为 2026 年 11 月 1 日。”
- “把案例研究那页幻灯片复制三份,每份填入其中一位客户的信息。”
- “新建一个名为“Q4 回顾”的演示文稿,包含一页标题幻灯片,以及营收、销售管线和招聘各一页。”
- “把第 4 页幻灯片显示成图片,我要检查一下版式。”
FAQ
Cursor 免费套餐支持自定义 MCP 服务器吗? 支持,Hobby、Pro 和 Business 套餐均可使用 MCP。
下一步
这份指南对你有帮助吗?