Skip to main content
Glama

Alai - AI 演示文稿制作 MCP 服务器

Alai MCP server

适用于 Claude、Cursor 和 MCP 客户端的 AI 演示文稿制作与幻灯片生成工具。通过文本即可创建设计师级别的演示文稿、推介演示(pitch decks)和幻灯片。支持导出为 PowerPoint (PPTX) 和 PDF 格式。

什么是 Alai?

Alai 是一款 AI 演示文稿制作工具,是无需设计技能即可快速创建高质量、精美幻灯片的最快方式。

  • 从文本生成幻灯片 - 将笔记、Markdown、URL 或文档转换为精美的演示文稿

  • 美化现有幻灯片 - 使用 AI 重新设计并优化您的 PowerPoint 演示文稿

  • 随处导出 - 下载为 PowerPoint (PPTX)、PDF 或可分享的链接

  • 专业主题 - 适用于各种场合的设计师级模板

  • 演讲者备注 - 为每张幻灯片自动生成演讲要点

  • Nano Banana Pro 图像幻灯片 - 与演示文稿视觉风格匹配的主题感知图像幻灯片生成

  • 编辑与迭代 - 对现有幻灯片中的文本、图标和图像进行针对性修改

Related MCP server: Google Slides MCP Server

使用场景

  • 推介演示 (Pitch decks) - 根据您的笔记创建适合投资人的演示文稿

  • 销售演示 - 为潜在客户生成引人注目的幻灯片

  • 会议笔记转幻灯片 - 将您的笔记转换为可分享的演示文稿

  • PowerPoint 美化 - 使用专业主题重新设计现有幻灯片

  • 营销演示 - 快速构建产品和活动演示文稿

功能特性

  • 从文本、Markdown 或会议笔记生成设计师级别的演示文稿

  • AI 驱动的幻灯片美化与重新设计

  • 导出为 PowerPoint (PPTX) 或 PDF

  • 专业推介演示主题

  • 在现有演示文稿中添加和删除幻灯片

  • 通过针对性提示词编辑和迭代现有幻灯片

  • 自动生成演讲者备注

服务器 URL

https://slides-api.getalai.com/mcp/

Glama / 本地封装

本仓库包含一个本地 MCP 封装,以便 Glama 可以自动构建、启动和检查服务器。

该封装通过 stdio 运行,并将工具调用转发到托管的 Alai MCP 端点:

  • ALAI_MCP_URL - 可选,用于覆盖上游 MCP URL

  • ALAI_API_KEY - 可选,转发工具调用到上游时使用的 API 密钥

  • api_key - Glama 占位符参数支持的替代环境变量名称

工具自省功能无需凭据即可工作,这足以让 Glama 检查服务器。实际的工具执行需要有效的 API 密钥。

本地运行

npm install
npm start

使用上游凭据:

ALAI_API_KEY=sk_your_key npm start

身份验证

服务器在同一端点接受静态 API 密钥或 OAuth 2.1 持有者令牌(Bearer token)。

API 密钥

从 getalai.com 获取密钥,并通过以下任一标头传递:

  • api-key: sk_your_key

  • Authorization: Bearer sk_your_key

带有动态客户端注册的 OAuth 2.1

服务器实现了 RFC 9728 受保护资源元数据,并将授权委托给 Supabase,后者支持 RFC 7591 动态客户端注册和 PKCE (S256)。符合规范的 MCP 客户端(例如 Claude Desktop、MCP Inspector)可以自动发现该流程:

GET https://slides-api.getalai.com/.well-known/oauth-protected-resource

响应中的 authorization_servers 条目指向 Supabase 授权服务器,其 /.well-known/oauth-authorization-server 文档会发布 registration_endpoint、authorization_endpoint 和 token_endpoint。在完成授权码 + PKCE 流程后,客户端向 MCP 端点发送 Authorization: Bearer <jwt>。

可用工具

工具

描述

ping

验证您的 API 密钥并返回您的用户 ID

generate_presentation

从文本内容创建演示文稿

get_generation_status

检查异步操作状态

get_themes

列出已认证用户可用的主题

get_vibes

列出已认证用户可用的氛围(视觉风格)

get_presentations

列出您所有的演示文稿

create_slide

向现有演示文稿添加幻灯片(经典或创意)

delete_slide

从演示文稿中删除幻灯片

export_presentation

导出为 PDF、PPTX 或可分享链接

generate_transcripts

为幻灯片生成演讲者备注

delete_presentation

永久删除演示文稿

工作流程

  1. 使用您的内容调用 generate_presentation

  2. 每 2-5 秒轮询一次 get_generation_status,直到状态为 completed

  3. 使用返回的 presentation_id 进行后续操作

使用示例

生成演示文稿

首先调用 get_themes 和 get_vibes 以发现您账户可用的 ID,然后传入它们:

{
  "input_text": "Benefits of AI in the workplace: increased productivity, enhanced creativity, improved efficiency",
  "title": "AI in the Workplace",
  "theme_id": "<id from get_themes>",
  "vibe_id": "<id from get_vibes>",
  "slide_range": "2-5",
  "include_ai_images": true,
  "num_creative_variants": 1,
  "total_variants_per_slide": 1,
  "image_ids": [],
  "export_formats": ["link"],
  "language": "English"
}

仅 input_text 是必需的。num_creative_variants 必须为 0–2(使用 vibe_id 时设置为 ≥1)。total_variants_per_slide 必须为 1–4。export_formats 接受 "link"、"pdf"、"ppt"。

检查生成状态

{
  "generation_id": "abc123-def456"
}

导出演示文稿

{
  "presentation_id": "xyz789",
  "formats": ["pdf", "link"]
}

可用主题

调用 get_themes 以发现您账户可用的主题(返回主题 ID 和显示名称)。您可以直接将以下几个内置的旧版主题名称作为 theme_id 传入:

  • AURORA_FLUX

  • MIDNIGHT_EMBER

  • EMERALD_FOREST

  • DESERT_BLOOM

  • DONUT

  • OAK

  • PRISMATICA

  • SIMPLE_LIGHT

  • SIMPLE_DARK

  • CYBERPUNK

配置

针对 Claude Desktop / MCP 客户端

支持 OAuth 的客户端(Claude Desktop、MCP Inspector、Cursor 等)只需使用 URL 即可 — 客户端将在首次连接时自动发现并运行 OAuth 2.1 + DCR 流程:

{
  "mcpServers": {
    "alai-presentations": {
      "url": "https://slides-api.getalai.com/mcp/",
      "transport": "streamable-http"
    }
  }
}

如果您希望跳过 OAuth 并使用静态 API 密钥,请添加一个标头块:

{
  "mcpServers": {
    "alai-presentations": {
      "url": "https://slides-api.getalai.com/mcp/",
      "transport": "streamable-http",
      "headers": {
        "api-key": "sk_your_api_key"
      }
    }
  }
}

链接

许可证

MIT 许可证 - 详情请参阅 LICENSE 文件。

Available Tools

11 tools
create_slideAInspect

Add a new slide to an existing presentation. Use this for targeted edits after a deck already exists, including classic content slides or more creative visually led slides.

Inputs: presentation_id (required), prompt (required), slide_type, insert_after_slide_id, +2 more.

delete_presentationAInspect

Delete a presentation permanently. Use this destructive action only when the caller explicitly intends to remove the deck.

Inputs: presentation_id (required).

delete_slideAInspect

Remove a slide from a presentation permanently. Use this only when you know the exact slide identifier to delete.

Inputs: presentation_id (required), slide_id (required).

export_presentationAInspect

Export a finished presentation to PDF, PowerPoint, or a shareable link. Use this after generation or editing when you need a deliverable artifact.

Inputs: presentation_id (required), formats (required).

generate_presentationAInspect

Create a new presentation from raw text or markdown. Use this to turn notes, outlines, meeting summaries, or draft content into an Alai deck before polling get_generation_status.

Inputs: input_text (required), title, theme_id, vibe_id, +7 more.

generate_transcriptsAInspect

Generate speaker notes or transcripts for slides in an existing presentation. Use this when the deck visuals are ready and you need talking points for delivery.

Inputs: presentation_id (required), slide_ids.

get_generation_statusAInspect

Check the status of an asynchronous presentation generation job. Use this after generate_presentation until the status reaches completed or failed.

Inputs: generation_id (required).

get_presentationsAInspect

List presentations owned by the authenticated user. Use this when you need to pick an existing presentation_id before editing, exporting, or deleting.

Inputs: no named parameters.

get_themesAInspect

List themes available to the authenticated account. Call this before generate_presentation when you need valid theme_id values.

Inputs: no named parameters.

get_vibesAInspect

List available vibe identifiers that control the visual style of generated decks. Use this before setting vibe_id on generate_presentation or create_slide.

Inputs: no named parameters.

pingAInspect

Verify the configured Alai credentials and return account identity details. Use this first when you need to confirm authentication before creating or exporting presentations.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 11 tools

    Disambiguation5/5

    Each tool targets a distinct action and resource, such as creating, deleting, exporting, or listing. No two tools have overlapping purposes, making it easy for an agent to select the correct one.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern in snake_case (e.g., create_slide, delete_presentation, get_themes). This predictability aids agent understanding.

    Tool Count5/5

    With 11 tools covering creation, deletion, export, status checking, listing, and authentication, the count is well-scoped for a presentation generation service.

    Completeness3/5

    The set lacks update operations (e.g., update_slide, update_presentation) and retrieval of a single presentation's details (e.g., get_slides). This could force agents to work around gaps, though core create/delete/export flows exist.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers