ai-slides-mcp
Generate images and turn them into PowerPoint slide decks using logged-in ChatGPT web accounts.
Check whether an account is logged in with
login_status.Generate image(s) from text prompts with configurable aspect ratio, style, and prompt enhancement.
Assemble existing images into a full-bleed
.pptxdeck.Generate a multi-slide deck from one prompt per slide.
Build branded decks that use logo-derived colors and composite the logo onto slides.
Build styled decks that match a reference image’s design style and palette without copying its content.
Generates images using OpenAI's ChatGPT backend, enabling creation of branded and styled slide decks for PowerPoint.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ai-slides-mcp generate a 3-slide deck about the benefits of AI in healthcare"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
chatgpt-web-image
Generate images through the ChatGPT web backend with logged-in (free) ChatGPT accounts, no API key, and assemble them into full-bleed PowerPoint decks (brand-aware and reference-styled). Ships a CLI (cgimg) and an MCP server (cgimg-mcp).
⚠️ Disclaimer
This project is provided for personal learning and research only. It reverse-engineers the ChatGPT web backend:
Not affiliated with, endorsed by, or sponsored by OpenAI.
Using it violates OpenAI's Terms of Service. Your account may be rate-limited or permanently banned.
Use a throwaway / secondary account — never your important one.
Provided as-is, with no warranty. You assume all risk. If you are not comfortable with these terms, do not use this software.
Related MCP server: PPTX MCP Server
What it does
Generates images from text prompts at a chosen aspect ratio (16:9, 1:1, 3:4, 4:3, 9:16, or raw
WxH).Reasoning effort (
thinking): optionally make the model think harder before drawing (standard<extended<max) — markedly improves rendered text fidelity, e.g. Vietnamese diacritics.Auto-enhances prompts via your ChatGPT account's text model before drawing (mirrors what the web UI does silently). Three slide styles:
auto,slide,fintech.Builds full-bleed PowerPoint (
.pptx) decks from a set of images.Branded decks: auto-detects brand colors from your logo, generates slides in those colors, and composites your logo onto every slide.
Styled decks: matches the design style and palette of a reference image (without copying its text/content).
Multiple accounts (auto-rotation): log in several ChatGPT accounts; the tool probes each account's remaining image quota and rotates to the next when one runs dry, so several free accounts' daily caps combine into one deck. If all run out mid-deck you get a partial deck plus when quota resets.
Works as an MCP server across Claude Code, Codex, and Antigravity over stdio.
Multi-account, fully local auth - your tokens never leave your machine.
Requirements
uv — handles Python and dependencies (you do not need to install Python separately;
uvfetches Python 3.12 automatically).git
A ChatGPT account (use a secondary one — see disclaimer)
Install uv (one time per machine):
# Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | shInstall
One-click installer (recommended)
After cloning, run the installer — it installs uv if missing, syncs deps, walks you through login, and registers the MCP server:
git clone https://github.com/vuhai2002/chatgpt-web-image.git
cd chatgpt-web-image# Windows (PowerShell) — or right-click install.ps1 -> Run with PowerShell
powershell -ExecutionPolicy Bypass -File install.ps1# macOS / Linux
bash install.shManual install
git clone https://github.com/vuhai2002/chatgpt-web-image.git
cd chatgpt-web-image
uv sync
uv run cgimg login
# A browser opens -> log into ChatGPT -> you land on a platform.openai.com page (it may say "Oops").
# Copy the FULL callback URL from the address bar, then run:
uv run cgimg login --callback "<paste the callback URL here>"If you keep your repo private, the cloning machine must be signed into a GitHub account with access (e.g.
gh auth login).
Why login is two steps
Login uses OAuth with PKCE. Step 1 builds the authorization URL and stashes a one-time secret (the PKCE verifier) on disk. Step 2 exchanges the code in the callback URL for tokens — and that exchange needs the same verifier that step 1 generated. Splitting it into two commands lets the verifier persist between building the URL and redeeming the code, instead of being lost when the browser hands control back to you.
Register as an MCP server
The config is the same shape for Claude Code, Codex, and Antigravity:
{
"mcpServers": {
"chatgpt-web-image": {
"command": "uv",
"args": ["run", "cgimg-mcp"],
"cwd": "<absolute path to the cloned repo>"
}
}
}Replace cwd with the absolute path where you cloned the repo (e.g. D:\\chatgpt-web-image on Windows — note the doubled backslashes in JSON). For Claude Code you can instead run:
claude mcp add chatgpt-web-image -s user -- uv run --directory "<absolute path to the cloned repo>" cgimg-mcp-s user makes the server available in every folder; --directory lets uv find the project from any working directory. In PowerShell, quote the separator as '--' (PowerShell strips a bare -- before native commands).
MCP tools
Seven tools are exposed by the server (src/cgimg/server.py):
Tool | Params | Returns | Description |
| — |
| List logged-in accounts (cheap, hint-based; use the CLI |
|
|
| Generate |
|
|
| Assemble existing images into a full-bleed PPTX. |
|
|
| Generate one image per prompt (one slide each, named |
|
|
| Auto-detects brand colors from the logo, generates slides in those colors, and composites the original logo onto each slide. |
|
|
| Matches a reference image's design style + colors (does not copy its text/content). |
| - |
| Chat models the accounts may use as |
For generate_slide_deck / branded_deck / styled_deck, each prompt is the content of one slide — pass raw slide content and the enhancer designs it.
Reference image (ref_image + ref_mode)
generate_image (and CLI gen --ref-image ... --ref-mode ...) can attach an image the model SEES while drawing, like dragging it into ChatGPT:
| Effect |
| Borrow only the reference's look (palette, layout, typography); its text/content is not copied. |
| The reference is a real logo; the model places it into the image exactly as given (no redraw). |
| The reference is a 3D render of a building (Blender, SketchUp, Lumion...). Massing, floors, openings, roof and camera stay; only materials, lighting and landscaping change. The prompt is sent verbatim (no enhance / slide template / brand colors). |
uv run cgimg gen "Indochine style, warm afternoon light" --ref-image render.png --ref-mode render --out out
uv run cgimg gen "Product launch poster" --ref-image logo.png --ref-mode logoSlide styles
When enhance=True, the prompt is expanded by your ChatGPT account's text model before drawing. The style argument picks the design treatment:
Style | Look | Enhancement |
| General — a dense infographic, or a photographic scene if the prompt names a real scene. | Skipped if the prompt is already long (≥280 chars). |
| Clean editorial presentation slide: light cream background, ONE warm accent color, a soft 3D hero visual, slide-number pill, bottom takeaway banner. | Always runs. |
| Premium light-blue dashboard look: glassmorphism cards, circular blue-gradient icon badges, optional 3D robot + chart widgets, bottom blue banner. | Always runs. |
Content completion (for slide / fintech): these styles complete your content into a full, information-rich slide — every main point gets a bold label plus a 2-line supporting description, sparse input is intelligently expanded into a sensible slide, and the prompt explicitly demands that all text be rendered in full (never dropped or abbreviated). It stays legible (not a wall of tiny text) and never fabricates fake statistics. See docs/styles.md for a full reference.
generate_imageand the CLIgenacceptstylevaluesauto,slide, andfintech.generate_slide_deckdefaults toslide.
Reasoning effort (thinking)
ChatGPT's web UI has an "Intelligence" selector that makes the image model reason more before drawing. generate_image, the deck tools, and the CLI expose the same via thinking:
| Effect |
| Sends no preference — ChatGPT's own default (fast). |
| Light reasoning. |
| More reasoning. |
| Most reasoning - best for rendered text (e.g. Vietnamese diacritics). |
Higher effort noticeably improves text fidelity inside the image. Decks default to max so slide text (often Vietnamese) renders correctly; pass thinking="auto" / --thinking auto when speed matters more. For a single image, add --thinking max (CLI) or thinking="max" (MCP). Values are passed to ChatGPT's image backend as thinking_effort; anything outside the set above is rejected by the backend.
CLI usage
# 1. Log in (two-step, see Install above)
uv run cgimg login
uv run cgimg login --callback "<paste callback URL>"
# Multiple accounts (auto-rotation): repeat the login for EACH account. To add a
# DIFFERENT account, sign out of chatgpt.com first or use an incognito/private
# window (login captures whichever account is signed in). Then:
uv run cgimg accounts # list accounts with live remaining quota
uv run cgimg logout you@example.com # remove one (by email or user_id)
uv run cgimg logout --all # remove every account
uv run cgimg models # chat models usable as --model (newest/default marked)
# The pool auto-rotates: it drains one account, then moves to the next. A deck
# bigger than your total quota stops and returns a PARTIAL deck + reset time.
# Note: rotating many accounts raises ban-detection risk - use throwaway accounts.
# 2. Generate image(s) (auto-enhance is ON by default; add --no-enhance to send the prompt as-is)
uv run cgimg gen "a serene mountain lake at dawn" --aspect 16:9 --n 1 --out out
uv run cgimg gen "AI agents for customer support" --style slide # clean editorial slide
uv run cgimg gen "real-time fraud detection" --style fintech # light-blue dashboard slide
uv run cgimg gen "ai agent" --aspect 1:1 --no-enhance # send prompt verbatim
uv run cgimg gen "Trí tuệ nhân tạo cho doanh nghiệp" --thinking max # max reasoning = best Vietnamese text
uv run cgimg gen "Chuyển đổi số" --model gpt-6 --thinking max --no-enhance # newer orchestrating model, prompt verbatim
uv run cgimg gen "RAG pipeline" --style slide --accent "#10B981" --reserve-corner top-left # brand color + clear corner for a logo
# 3. Generate a multi-slide deck (one image per prompt; slides saved s01.png, s02.png...)
uv run cgimg deck --prompts "Intro" "How it works" "Pricing" --style slide --out deck.pptx
uv run cgimg deck --prompts-file slides.txt --thinking max --accent "#10B981" --reserve-corner top-left
# --prompts-file: one prompt per line (blank lines and lines starting with # are skipped)
# --no-enhance + --style: applies the slide look via a concise offline template (good for dense Vietnamese text)
# 4. Build a deck from existing images
uv run cgimg ppt img1.png img2.png --out deck.pptx --aspect 16:9
# 5. Branded deck — slides in your brand colors with your logo composited on each
uv run cgimg branded logo.png \
--prompts "What is RAG?" "RAG pipeline" "Benefits" \
--out deck.pptx --position top-left --scale 0.15
# 6. Styled deck — match a reference image's design (its text/content is NOT copied)
uv run cgimg styled reference-slide.png \
--prompts "Intro" "How it works" "Pricing" \
--out deck.pptxgen and deck accept --accent <hex> (forces a brand color) and --reserve-corner <pos> (keeps a corner clear for a logo you add later; the model draws no logo/text there). branded and styled also accept --aspect and --out-dir (default out). They print the deck path and each generated image path.
Aspect ratios
Aspect | Size sent | ChatGPT returns |
| 1920x1080 | ~1672x941 |
| 1024x1024 | 1024x1024 |
| 1024x1536 | ~1086x1448 |
| 1080x1920 | ~941x1672 |
| 1440x1080 | ~1448x1086 |
| as given | normalized by ChatGPT |
ChatGPT honors the ratio, not exact pixels — it normalizes to its own native dimensions (so 16:9 yields roughly 1672x941, not exactly 1920x1080). This is expected.
PPTX output is full-bleed: the image fills the slide edge to edge, so the image aspect should match the deck aspect to avoid cropping or letterboxing.
How it works
Vendors chatgpt2api's proven OAuth + image backend (under
src/cgimg/_vendor/).Stores a single account token locally at
%APPDATA%\cgimg\auth.json(Windows) or~/.config/cgimg/auth.json(Linux/macOS). It is never committed.Auto-refreshes the access token via the stored
refresh_tokenwhen it expires.
Examples
Showcase slides generated by this server live in examples/sample-slides/ — a mix of slide/fintech styles, dense multi-task slides, custom layouts, and tables.
Troubleshooting
Symptom | Cause / Fix |
| Run |
Token expired / auth errors | Re-run the login flow. |
Generation is slow (~30–90s per image) | Normal — it polls ChatGPT until the image is ready. |
Prompt rejected / blocked | ChatGPT's content moderation refused it. Adjust the prompt and retry — refusals are often transient ( |
Text in the image looks imperfect on a very dense slide | Image models can garble small text when a slide is packed. Reduce the content or split into more slides. |
Image dims aren't exactly what you asked | Expected — ChatGPT honors the ratio and normalizes to its native size. |
| OpenAI revoked the session, often after heavy/rapid checks (each |
Attribution & License
This project vendors code from:
chatgpt2api — Copyright (c) 2026 kunkun, MIT License. Powers the OAuth + image backend. Vendored under
src/cgimg/_vendor/.
Vendored files retain their original behavior. See NOTICE for details.
Available Tools
6 toolsbranded_deckB
Build a branded slide deck: auto-detect brand colors from the logo, generate slides in those colors, composite the original logo onto each slide, assemble PPTX.
Inputs: logo_path (required), prompts (required), aspect, out_pptx, +3 more.
build_pptxC
Assemble existing image files into a full-bleed PowerPoint deck.
Inputs: image_paths (required), out_path, aspect.
generate_imageA
Generate image(s) from a text prompt at the given aspect ratio (16:9, 1:1, 3:4, 9:16, or WxH). Returns saved PNG file paths.
When enhance is True (default), the prompt is auto-expanded via the ChatGPT
text path before drawing. style='slide' = clean editorial slide (light cream,
one accent, hero visual); style='fintech' = premium light-blue dashboard look
(glass cards, blue icon badges, optional robot + charts). Both auto-complete
content into a full, information-rich slide (label + 2-line description per
point, sparse input expanded). style='auto' is the general default.Inputs: prompt (required), aspect, n, out_dir, +2 more.
generate_slide_deckA
Generate one image per prompt then assemble them into a PPTX deck.
Each prompt should be the CONTENT of one slide. style='slide' (default here) applies a clean editorial presentation design (light, restrained accent, one hero visual, short labels, takeaway banner) — pass raw slide content and the enhancer designs it. Set enhance=False to send prompts verbatim.
Inputs: prompts (required), aspect, out_pptx, out_dir, +2 more.
login_statusA
Check whether a ChatGPT account is logged in for image generation.
Inputs: no named parameters.
styled_deckB
Generate a deck matching a reference design image's style and colors (content not copied).
Inputs: ref_image (required), prompts (required), aspect, out_pptx, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Tools are mostly distinct: branded_deck uses a logo, styled_deck uses a reference image, generate_slide_deck uses text prompts, and build_pptx assembles existing images. login_status is orthogonal. Minor potential confusion between branded_deck and styled_deck but descriptions clarify.
Naming is inconsistent: some use verb_noun (build_pptx, generate_image), others use adjective_noun (branded_deck, styled_deck), and login_status follows a different pattern. No strong convention is maintained across the set.
6 tools is a reasonable count for a slide generation server. Each serves a distinct purpose in the creation workflow, and the number feels well-scoped without being too sparse or bloated.
The tool surface covers key slide generation capabilities: creating from prompts, logos, reference styles, and assembling existing images. Minor gaps like editing existing decks or converting formats are acceptable for the stated purpose.
Maintenance
Related MCP Connectors
Create consulting-style presentation decks (editable PowerPoint) from a topic or notes.
Create professionally designed, editable PowerPoint presentations from a prompt.
Generate AI slide decks and export native PowerPoint (.pptx) and PDF presentations from chat.
Build decks in your own brand, from the AI agent you already use. Then edit them yourself.
Related MCP Servers
- AlicenseAqualityDmaintenanceCreates and manipulates PowerPoint presentations with capabilities for adding various slide types, generating images, and incorporating tables and charts through natural language commands.11145MIT
- FlicenseNot gradedqualityDmaintenanceGenerates PowerPoint presentations from templates using AI, injecting text and images based on schema definitions.1-
- FlicenseNot gradedqualityDmaintenanceEnables AI-powered generation of PowerPoint presentations with dynamic content, themes, and tones. Supports custom topics, audience, and slide count via the generate_ppt tool.-
- AlicenseNot gradedqualityDmaintenanceEnables creation of professional PowerPoint presentations with AI-generated content and images, supporting multiple LLMs and image services via MCP protocol.MIT