carousel-studio
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Carousel Studio
An open-source studio for social media carousels that humans review and any MCP-capable agent edits.
You pin notes on slides ("code too small here"), and agents like Claude Code, Codex, Cursor or your own scripts pick them up through the MCP server, change the slides, render new PNGs and reply. Every change is a new version, so nothing is lost.
Review UI: gallery, slide viewer with pinned notes, text editing, versions, approve → posted.
MCP server at
/api/mcp: create, edit, render and view carousels, and work a shared request queue with claim/lease so multiple agents never collide.Agent-designed slides: there are no slide templates. Agents design every slide in HTML/CSS (their own concept and layouts) on your brand's colors, fonts and signature touches, preview it with automatic design checks, and save it.
Server-side rendering: slides are rendered to 1080×1350 PNGs by a locked-down headless Chromium (Playwright locally,
@sparticuz/chromiumon Vercel), stored in Vercel Blob.Brand packs: colors, fonts and voice live in the database and can be imported from a design-system
tokens.json. Licensed fonts never enter the repo. The brand never dictates layouts.
How it works
You (browser) ──▶ Studio UI ──┐ ┌── Neon Postgres: carousels, versions, requests, brand, API keys
├──▶ Next.js ────┤
Agents (MCP) ──▶ /api/mcp ────┘ renderer ───┴── Vercel Blob: rendered PNGsAsk for a carousel (prompt) or start from a blank design canvas.
An agent claims the request, designs the slides (concept, layouts,
preview_slideuntil they look right) and saves them withcreate_carousel, which renders them.You click on a slide to pin a note. It lands in the queue.
An agent claims it, edits the slide (
edit_slideorupdate_slides: new version + render) and callscomplete_requestwith a reply.You approve and post.
Related MCP server: Brand-Ops MCP Server
Deploy on Vercel
Fork this repo and import it in Vercel.
Add storage from the Vercel Marketplace: Neon (Postgres) and Blob (public store). Both set their env vars automatically.
Add env vars:
Variable
Value
STUDIO_PASSWORDPassword for the web UI
STUDIO_SESSION_SECRET32+ random bytes, e.g.
openssl rand -hex 32STUDIO_URLOptional. Public URL used in links returned to agents (default: the Vercel production domain)
Create the tables once:
vercel env pull .env.local && npm run db:push.Deploy, sign in, open Agents and create a key per agent.
Local development
npm install
vercel link && vercel env pull .env.local # or copy .env.example and fill it
npm run db:push
npm run devRendering locally uses an installed Chrome or Edge (CHROME_PATH to override). Smoke test: npx tsx scripts/render-check.ts out/.
Connect an agent
There are two ways in, both at the same URL https://<your-app>/api/mcp:
Client | How it signs in |
Claude Code, Codex, Cursor, Antigravity, scripts | API key in an |
ChatGPT (developer mode), Claude.ai (custom connector, web/desktop/mobile), Gemini app | OAuth: paste the URL only, sign in with the studio password, choose scopes, Allow |
MCP Inspector | Either |
Web apps (OAuth)
ChatGPT: Settings → Apps & Connectors → Advanced → Developer mode on → Create / "Add custom MCP server" → URL
https://<your-app>/api/mcp, Authentication OAuth → sign in → Allow.Claude.ai: Settings → Connectors → Add custom connector → URL → Connect → sign in → Allow.
Gemini app: Settings → Connected apps → Add custom app (MCP) → URL → sign in → Allow (availability depends on Google's region and plan).
Connected apps show up on the Agents page next to the API keys, with their scopes and last use. Disconnect revokes all their tokens; the activity log names them by client name (e.g. ChatGPT).
How it works: the studio is its own OAuth 2.1 authorization server (authorization code + PKCE S256 only) and /api/mcp is the protected resource. It serves RFC 9728 / RFC 8414 discovery documents under /.well-known/, dynamic client registration (/oauth/register) and Client ID Metadata Documents (an https:// URL as client_id, fetched with an SSRF guard), token rotation with reuse detection, revocation (/oauth/revoke), iss on every authorization response (RFC 9207) and audience-bound tokens (RFC 8707). Access tokens last 1 hour, refresh tokens 60 days. Tokens, codes and client secrets are stored as SHA-256 hashes only. The single "user" who consents is whoever knows STUDIO_PASSWORD. Set STUDIO_URL to your public URL if it isn't the Vercel production domain, because the OAuth issuer and token audience are derived from it.
API keys
Create a key on the Agents page, then:
# Claude Code
claude mcp add --transport http carousel-studio https://<your-app>/api/mcp --header "Authorization: Bearer <key>"# Codex (~/.codex/config.toml)
[mcp_servers.carousel-studio]
url = "https://<your-app>/api/mcp"
http_headers = { Authorization = "Bearer <key>" }// Cursor (.cursor/mcp.json)
{ "mcpServers": { "carousel-studio": { "url": "https://<your-app>/api/mcp", "headers": { "Authorization": "Bearer <key>" } } } }Then ask the agent: "Check the carousel studio requests and handle them."
Scopes
Every key has a scope, chosen when you create it on the Agents page (or with the create_key tool):
Scope | Can |
| Look at carousels, versions, images, requests, the brand and the activity log. |
| Everything in |
| Everything in |
A tool called without the needed scope returns the error missing scope: write (or admin).
Tools
Slide numbers in every tool input and output are 1-based. Every slide change saves a new version from the current one and renders it (render: false skips rendering). Slide-editing tools take an optional baseVersion: if another agent saved first, the call fails with stale: current version is N instead of overwriting their work.
Tool | Scope | What it does |
| read | Workflow, slide format and the active brand's rules. Agents read this first. |
| read | Browse carousels; filter by |
| read | Slides, images, version history and requests of one carousel. |
| write | New carousel as version 1, rendered. |
| write | Change title, tip number or status. ( |
| write | Copy a version into a new carousel. |
| write | Move to trash / take out of trash. |
| admin | Delete forever (only from the trash), including its images. |
| write | Point the carousel at an older or newer version. |
| read | Slide-by-slide diff of two versions. |
| write | Replace all slides. |
| write | Targeted slide edits. |
| write | Re-render a version. |
| read | The PNGs as images (plus their URLs as text). |
| read | Image URLs in order with file names |
| read | The human's queue: notes pinned on slides and new-carousel prompts. |
| write | Leave a note on a slide, or ask for a new carousel. |
| write | Work a request with a 30-minute lease, then reply. |
| write | Close a request without doing it, or reopen one. |
| read | Brand name, handle, roles with colors, font families (never font data). |
| admin | Edit, import (tokens + woff/woff2 fonts, max 2 MB) or reset the brand. |
| read | Who did what, newest first. |
| admin | Manage API keys (a key can't revoke itself). |
| read | OpenAI-compatible search over carousels and requests (ids |
| read | The brand layer as data: CSS variables, classes with examples, type scale, spacing, radii, lint rules. |
| read | Render one slide without saving: the PNG plus |
| read | Any slide as editable |
| write / read / write | Images and SVGs (PNG, JPEG, WebP, SVG; max 2 MB; SVG sanitized) to use in design slides. |
| write / read / read / write | Reusable design layouts with |
Also exposed: the resource studio://brand-guide and the prompts make_carousel (topic → new carousel) and handle_requests (claim → fix → complete loop).
Trash and activity log
Deleting a carousel (UI or delete_carousel) moves it to the Trash (gallery → Trash), where it can be restored or deleted forever. Every change by a human (you) or an agent (its key name) is written to an activity log, shown on each carousel page and readable with list_activity.
Smoke test
With the dev server running (npm run dev), npm run mcp:smoke creates temporary keys, calls every tool against STUDIO_URL (default http://localhost:3000), checks scopes, stale versions, claim races, trash/purge and brand output, then deletes everything it created. It briefly changes the brand and restores it afterwards, so don't render carousels while it runs.
npm run oauth:smoke tests the OAuth side against the dev server: discovery documents, registration, the real login and consent pages (driven in a local Chrome/Edge via Playwright), the PKCE token exchange, an MCP call with the token, and the failure cases (wrong verifier, reused code, wrong redirect URI or resource, plain PKCE, expired token, refresh-token reuse, read-only scope, disconnected app, SSRF-guarded metadata URLs). It removes every client and token it created.
npm run design:smoke tests designed slides: previews (valid, off-canvas text, off-brand color and font), a hostile slide (scripts, frames, remote images, CSS @import and url()) that must make zero requests to a local catcher both in preview and in a saved render, mixed carousels, get_slide_source, assets, layouts (fill values escaped), and that the templates are unchanged (npx tsx scripts/render-check.ts --check).
Designed slides
Every slide is designed by the agent: { "kind": "design", "html": "…", "css": "…" } on a 1080×1350 canvas. There are no templates: the old cover / content / code / cta kinds are rejected for new slides (older carousels that contain them still render, and get_slide_source converts them). The brand guide asks agents to pick a visual concept per carousel and vary layouts slide to slide, instead of following a formula. The studio adds the brand layer: your fonts, every brand color as a CSS variable (--primary, --paper, --ink, --marker…), type scale, spacing and radius variables, utility classes (mark, .key, .chip, .card, pre.editor with highlighting…) and the chrome (handle + n / total, option chrome). ground picks paper, primary or dark. The brand guide (get_brand_guide) teaches agents all of it with examples.
The loop: get_design_system → write HTML/CSS → preview_slide → fix what the checks report → save with create_carousel / update_slides / edit_slide. Checks: text or images off the canvas block the save; outside the 64 px safe area, clipped text, overlap with the footer, text under 24 px, non-brand fonts, off-palette colors, more than one marker and low contrast are warnings, shown as a badge on the slide in the studio. Good designs can be saved as layouts ({{placeholders}}) and reused with { "kind": "design", "layout": "big-number", "fill": { … } }.
Agent HTML runs in the server's browser, so rendering is locked down: page JavaScript off, every network request blocked except data: and your own Blob store, a CSP, and the HTML/CSS is sanitized (no scripts, frames, forms, event handlers, remote URLs or @import). Agent CSS is scoped to the slide and can't move the slide box or cover the chrome.
Slide format
{
"kind": "design",
"name": "hero number",
"ground": "paper",
"html": "<p class=\"t-label mono muted\">Libraries needed</p><div class=\"num\">0</div><h2 class=\"t-title push\">The fix is <mark>built in</mark></h2>",
"css": ".num{font-size:420px;line-height:.9;font-weight:700;color:var(--primary)}",
"notes": "Concept: a scoreboard. This slide: the surprising number."
}<mark> is the brand highlighter (one per slide), <code> is inline code, pre.editor is a syntax-highlighted code card. Everything else (layout, scale, grounds, diagrams) is up to the designer. Optional fields: chrome (auto = handle + counter, handle, counter, none) and ground (paper, primary, dark).
Brand packs
The repo ships a neutral default pack (brand-pack/default, OFL fonts). To use your own brand, open Brand and import a design-system tokens.json (a color.tokens list, optional type.families and type.fonts), its README and woff2 fonts, or run:
npm run brand:import -- path/to/design-system --name "My brand" --handle "@me" --label "Tip" --roles '{"primary":"brand-green"}'Slides paint with roles (primary, paper, ink, marker, code-bg, …). If your token names differ, map them in roles. Fonts are stored in your database and only used by the renderer, which keeps commercial font licenses that forbid public redistribution intact.
Security notes
The UI is protected by a single password (signed, httpOnly session cookie). The MCP endpoint uses per-agent bearer keys stored as SHA-256 hashes.
Rendered PNGs are public Blob URLs under unguessable paths.
Web connectors use OAuth 2.1 (see "Web apps"): PKCE S256, single-use 60-second codes, exact redirect URI matching (port ignored only for loopback), refresh rotation with reuse detection, audience-bound tokens, and a consent screen that shows the client's real redirect host.
Stack
Next.js 16 · React 19 · Drizzle ORM · Neon Postgres · Vercel Blob · mcp-handler + MCP SDK v2 · Playwright + @sparticuz/chromium · Zod 4
License
MIT. Default fonts: Plus Jakarta Sans and JetBrains Mono, SIL Open Font License (see brand-pack/default/fonts).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP connector for Postraid brands, saved social content and editable carousel drafts for review.
Social MCP for ideas, drafts, review, publication approvals, scheduling, and explicit publishing.
Create, schedule, and publish social posts, manage accounts, and read analytics as MCP tools.
Create, schedule, review, analyze, and manage social content across connected channels.
Related MCP Servers
AlicenseAqualityBmaintenanceEnables managing social media posts, accounts, and AI-powered content features from any MCP client, including scheduling, publishing, analysis, and AI caption generation.1437 npmMIT- AlicenseNot gradedqualityBmaintenanceEnables agents to list brands, compose prompts, generate or draw assets, check compliance, and manage review workflows through MCP tools.Apache 2.0

Tempost MCP Serverofficial
AlicenseNot gradedqualityCmaintenanceEnables MCP clients to schedule and publish social media posts across connected channels, manage posts and media, and retrieve channel or post analytics.MIT- AlicenseNot gradedqualityCmaintenanceEnables agents to create, edit, preview, and publish presentation decks with themed slides, audience Q&A and voting, imports, and post-talk results through a hosted MCP endpoint.MIT