google-slides-mcp

google-slides-mcp

Converts linear Markdown documents into styled Google Slides presentations with customizable themes and layouts.

Category
访问服务器

README

Google Slides Model Context Protocol (MCP) Server

A Model Context Protocol (MCP) server that converts linear Markdown documents into styled Google Slides presentations.

The design is in favor of structured content containers, elegant color palettes, and color-matched vector icons.


Themes & Design Aesthetics

The generator supports 5 custom themes designed to fit different corporate, professional, and creative presentation requirements. You can dynamically switch styles for the exact same markdown file simply by passing a different theme_name argument:

Theme Name Style Personality Header Font Body Font Palette Ideal For
mckinsey Consulting / Structured Poppins Lato Cool Navy, Slate Blue, White Cards Executive updates, strategy decks, corporate pitch slides
academic Scholarly / Elegant Georgia Garamond Rich Charcoal, Off-White, Thin Borders Research papers, formal thesis overviews, lecture outlines
editorial Print / Contemporary Montserrat Open Sans Warm Terracotta, Warm Cream, Clean Minimal Creative agency briefs, brand stories, product showcases
tech High-Contrast / Modern Orbitron Inter Geometric Slate, Deep Indigo, Neon Cyan Accent Software architecture, developer docs, product roadmaps
zen Storytelling / Minimalist Outfit Source Sans Pro Charcoal Grey, Matte Black, Pure Bare-canvas High-level keynotes, high-impact storytelling, simple decks

General Workflow

Creating Google Slides via this MCP server is a seamless three-step process:

graph LR
    A["Draft Markdown"] --> B["Prompt AI agent"]
    B --> C["Live Slide Deck Link"]
  1. Draft your Slide Content: Author a linear Markdown file containing slide titles, content paragraphs, and layout annotations using standard HTML comments (e.g., <!-- layout: twin-cards -->).
  2. Interact with the Assistant: Prompt your AI session to generate slides, specifying your markdown filepath and your desired design aesthetic (e.g., mckinsey or tech).
  3. Open and Present: The assistant processes your file, generates coordinate-based layouts, downloads high-res monochrome icons from the Icons8 CDN, recolors them to match your theme's palette, compiles them via Google Slides batch-update requests, and replies with your live edit URL!

Setup and Configuration

1. Place Google Cloud Credentials

To write to your Google Drive, the server requires OAuth 2.0 client secrets from Google Cloud Console.

  1. Go to the Google Cloud Console.
  2. Create or select a project and enable both the Google Slides API and Google Drive API.
  3. Create an OAuth consent screen (External/Testing status), and add your Google email address as a Test User.
  4. Create an OAuth 2.0 Client ID (Desktop Application) and download its client secrets JSON.
  5. Save this downloaded JSON inside your home directory under the .gemini folder, named exactly credentials.json:
    • Path: ~/.gemini/credentials.json

2. Run One-Time Authentication

MCP servers run headlessly in the background, which prevents interactive web authorization. You must run the initial token cache generation once manually in your terminal:

# Activate your python virtual environment
source .venv/bin/env/activate  # or use .venv/bin/python directly

# Launch the one-time authentication flow
.venv/bin/python server.py --auth

This will output an OAuth authorization link and attempt to open your default browser. Authorize the application with your test Google account. Once consent is completed, the authenticated token will be securely cached in:

  • Path: ~/.gemini/google-slides-token.json

From this point forward, all slide generation runs completely headlessly without ever prompting you for authentication again!


Command Line Reference

You can test slide generation directly from your command line before exposing the server to your workspace.

Run First-Time Local Compilation

.venv/bin/python -c "from server import convert_markdown_to_slides; print(convert_markdown_to_slides('test_slide.md', 'Premium Presentation', 'mckinsey'))"

Start the MCP Server Manually

To start the FastMCP server in standard transport mode:

.venv/bin/python server.py

AI/LLM Prompt Guide

Once integrated, you can direct the AI assistant using natural language. Here are standard, high-leverage prompts you can copy or adapt:

1. Generating a New Presentation

Prompt:

  • "Generate a new Google Slides deck from my markdown file at test_slide.md. Name it 'Project Architecture Overview' and apply the McKinsey consulting theme."

2. Switching Themes for the Same Content

Because style is separated from structure, you can rapidly compile alternatives:

Prompt:

  • "Can you take my test_slide.md content and re-compile it into a dark-mode Tech slide aesthetic? Title it 'Project Architecture - Tech version'."

3. Iterative Refinement

You can ask your agentic coding assistant to modify your source content first, then compile:

Prompt:

  • "Open my test_slide.md file, add a new slide at the end about 'Testing and QA strategy' using a standard widescreen layout, and then run the slide converter tool to update the deck."

Slide Annotation Spec

To ensure your presentation has rich visual diversity, structure your Markdown file with layout comments. If no layout comment is supplied, the engine defaults to a widescreen standard card layout.

Title Slide Layout

Ideal for the opening slide. Generates large-font titles with high-contrast text and a left-bordered colored vertical block.

# Building Next-Gen Agentic Codebases
<!-- layout: title -->
Exploring the structural division between Domain Experts and Code Generation Engines.

Section Divider Layout

Creates high-impact, full-screen color-filled breakout slides to transition between topics.

# Core Design Principles
<!-- layout: section -->

Twin-Cards Layout

Perfect for comparison or separating contexts (e.g., Client vs. Server, Problem vs. Solution). Divides content into side-by-side white rounded cards with drop shadows.

# Separating Domain and Engineering Contexts
<!-- layout: twin-cards -->

## Domain Expert Context
<!-- card: expert -->
- **Epistemic Anchoring**
  Grounds LLM reasoning in the exact ontology of the problem space to avoid drift.
- **Cognitive Guardrails**
  Explicit constraints on domain logic that prevent non-viable architecture.

## Engineering Context
<!-- card: developer -->
- **Technical Tradeoffs**
  Maps high-level design to technical capabilities and constraints.
- **Implementation Reality**
  Bridges conceptual domain models with actual API and database limits.

Standard Layout

Organizes slide elements inside a breathable, centered widescreen container card featuring top-accent bands and customized icons.

# Google Slides MCP Capabilities
<!-- layout: standard -->

## Main Slide Title
- **Beautiful Design**
  Applies cohesive styling, Poppins & Lato typography, and cool background color (#F1F5F9).
- **Interactive Authenticator**
  Uses User-level Google OAuth 2.0 with a local cache for secure and robust workspace integration.

AI Agent Integration

To make this server available inside your standard AI agent application (such as Claude Desktop or any other standard MCP host), add this server block to your MCP configuration file:

{
  "mcpServers": {
    "google-slides-mcp": {
      "command": "/path/to/google-slides-mcp/.venv/bin/python",
      "args": [
        "/path/to/google-slides-mcp/server.py"
      ],
      "env": {
        "PYTHONPATH": "/path/to/google-slides-mcp"
      }
    }
  }
}

Restart your AI agent application, and you will see the convert_markdown_to_slides tool available in your workspace or chat interface!

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选