google-slides-mcp

google-slides-mcp

An MCP server that enables AI assistants to create, read, and edit Google Slides presentations directly from chat, with 39 tools for presentations, slides, elements, and export.

Category
访问服务器

README

Google Slides MCP Server

An MCP (Model Context Protocol) server for Google Slides. Enables AI assistants (Claude Code, Cursor, Windsurf, etc.) to create, read, and edit Google Slides presentations directly from chat.

Features

39 tools organized into 4 categories:

Presentations (4)

Tool Description
createPresentation Create a new presentation
getPresentation Get metadata and slide summaries
listPresentations Search presentations on Drive
duplicatePresentation Copy an entire presentation (template workflow)

Slides (10)

Tool Description
addSlide Add a slide with layout (BLANK, TITLE, TITLE_AND_BODY, ...)
deleteSlide Delete slide(s)
duplicateSlide Duplicate a slide
reorderSlides Reorder slides
getSlide Get detailed element info for a slide
updateSlideBackground Set background color or image
setSpeakerNotes / getSpeakerNotes Manage speaker notes
copySlideFromPresentation Import a slide from another presentation
setSkipSlide Show/hide slide in slideshow

Elements (25)

Group Tools
Insert insertTextBox, insertImage, insertShape, insertTable, insertVideo, insertLine
Table insertTableRow, insertTableColumn, deleteTableRow, deleteTableColumn, updateTableCell, formatTableCell, mergeTableCells, unmergeTableCells
Edit updateText, updateTextStyle, updateShapeStyle, setParagraphStyle, moveResizeElement
Other deleteElement, groupElements, ungroupElements, replaceAllText, replaceImage, batchUpdate

Export (2)

Tool Description
exportPresentation Export to PDF, PPTX, or ODP
getThumbnail Get thumbnail image of a slide

Setup Guide

Step 1: Create a Google Cloud Project

  1. Go to Google Cloud Console
  2. Click Select a project > New Project
  3. Name your project (e.g., google-slides-mcp) > Create

Step 2: Enable APIs

  1. Navigate to APIs & Services > Library
  2. Search and Enable these 2 APIs:
    • Google Slides API
    • Google Drive API

Step 3: Create OAuth Credentials

  1. Go to APIs & Services > Credentials
  2. Click + CREATE CREDENTIALS > OAuth client ID
  3. If you haven't configured the consent screen yet:
    • Click Configure Consent Screen
    • Select External > Create
    • Fill in App name (e.g., Slides MCP)
    • Add User support email and Developer contact email
    • Click Save and Continue through all steps > Back to Dashboard
  4. Go back to Credentials > + CREATE CREDENTIALS > OAuth client ID
  5. Application type: Desktop app
  6. Name it (e.g., Slides MCP Desktop)
  7. Click Create
  8. Click Download JSON > save as credentials.json

Step 4: Install

git clone https://github.com/ryanvo162/google-slides-mcp.git
cd google-slides-mcp
npm install
npm run build

Step 5: Authorize

Copy your credentials.json (downloaded in Step 3) into the project folder:

cp /path/to/credentials.json .

Run the auth flow:

node dist/index.js auth

A URL will appear in the terminal. Open it in your browser, sign in with your Google account, and grant access. Your token will be saved at ~/.config/google-slides-mcp/token.json.

Note: If you see "This app isn't verified", click Advanced > Go to Slides MCP (unsafe). This is normal for unverified apps.

Step 6: Configure with Claude Code

Open ~/.claude.json and add to the mcpServers section:

{
  "mcpServers": {
    "google-slides": {
      "command": "node",
      "args": ["/full/path/to/google-slides-mcp/dist/index.js"]
    }
  }
}

Replace /full/path/to/ with the actual path on your machine.

macOS example:

"args": ["/Users/username/google-slides-mcp/dist/index.js"]

Windows example:

"args": ["C:\\Users\\username\\google-slides-mcp\\dist\\index.js"]

Then restart Claude Code to load the MCP server.

Step 7: Test

Open Claude Code and try:

Create a new presentation called "Hello World"

If Claude creates the presentation and returns a Google Slides link, you're all set!


Other MCP Clients

Cursor / Windsurf

Add to .cursor/mcp.json or .windsurf/mcp.json:

{
  "mcpServers": {
    "google-slides": {
      "command": "node",
      "args": ["/path/to/google-slides-mcp/dist/index.js"]
    }
  }
}

Claude Desktop

Add to claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "google-slides": {
      "command": "node",
      "args": ["/path/to/google-slides-mcp/dist/index.js"]
    }
  }
}

Environment Variables (optional)

Variable Description
GOOGLE_CLIENT_ID OAuth client ID (alternative to credentials.json)
GOOGLE_CLIENT_SECRET OAuth client secret
SERVICE_ACCOUNT_PATH Path to service account key file
GOOGLE_IMPERSONATE_USER Email to impersonate (service account only)
GOOGLE_MCP_PROFILE Profile name (supports multiple Google accounts)
LOG_LEVEL debug, info, warn, error, silent (default: info)

Security

  • OAuth state parameter for CSRF protection
  • Token file stored with permission 0600 (owner-only read)
  • Client secret not persisted in token file
  • Profile name sanitization (prevents path traversal)
  • Minimal OAuth scopes: presentations + drive.file

Tech Stack

  • TypeScript + Node.js (ES2022)
  • FastMCP — MCP server framework
  • googleapis — Google APIs client
  • zod — Schema validation

Troubleshooting

"No OAuth credentials found"

Copy credentials.json into the project root. See Step 3 and 5.

"Token might expire"

Run node dist/index.js auth again to re-authorize.

"Google Slides client is not initialized"

Check that credentials.json is valid and Google Slides API is enabled (Step 2).

Claude Code doesn't show the tools

Verify the path in ~/.claude.json is correct. Restart Claude Code after updating the config.

License

ISC

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选