CarouselMCP
Generates ready-to-post Instagram carousel posts as PNG slides from a topic string, with automatic layout selection and web-grounded content.
Click on "Install 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., "@CarouselMCPCreate an Instagram carousel about the benefits of meditation"
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.
CarouselMCP
An MCP server that generates a ready-to-post Instagram carousel — a "notebook paper" style set of PNG slides — from nothing but a topic string. Deployed as a single AWS Lambda function behind a public Function URL, with generated images stored in S3.
What it does
One tool, generate_skill_carousel, takes a topic and returns a finished carousel:
{
"name": "generate_skill_carousel",
"arguments": { "topic": "python libraries every data engineer should know" }
}A single AI call — Gemini or Claude, whichever key is available — does all the creative work at once:
Picks the layout itself. Most topics get the default list layout: a hook slide, four grid pages of items, and a closing slide (6 slides, up to 32 items total). A genuine two-sided topic ("Claude pros and cons", "remote work advantages and disadvantages") is automatically routed to the pros_cons layout instead — hook, a green PROS slide, a red CONS slide, a verdict slide, a recap slide, and closing. This is a semantic decision by the model, not keyword matching on the topic string.
Decides how many items the topic actually supports — it won't pad a thin topic out to a fixed count.
Grounds the content in a real web search (Google Search via Gemini, or Claude's built-in
web_searchtool) instead of writing from the model's own unverified memory.
Every icon is a built-in flat vector glyph — there's no AI image generation anywhere in the
pipeline, and none is needed. No background image, hero photo, reference image, or custom
theme/colors are accepted as input; the paper-texture background, fonts, and doodle accents are
all fixed. That's a deliberate trim, not a missing feature — topic (plus an optional API key
override) is the entire input surface.
Related MCP server: slideshot-mcp
Requirements
One of
GEMINI_API_KEYorANTHROPIC_API_KEY(env var, or passgeminiApiKey/claudeApiKeyper call to override). Gemini is tried first if both are present. If neither is available or both fail, it falls back to placeholder text rather than failing the whole call.Note: Claude has no image-generation API and isn't used for one here — it's only ever used for the text content, same as Gemini's role in this pipeline.
OUTPUT_BUCKET— an S3 bucket the function can write PNGs to (defaults tomy-custom-mcpin code; override for your own bucket).MCP_API_KEY— shared secret every caller must send. Fails closed: a missing or wrong key is rejected with401before any model call or S3 write happens, so a bad key never costs anything.Bundled fonts. Lambda has no system fonts, and image rendering needs real font files —
fonts/NotoSans-Regular.ttf,fonts/NotoSans-Bold.ttf, andfonts/fonts.confare committed in this repo and must ship inside the deployment package, withFONTCONFIG_PATH=/var/task/fontsset as an environment variable.
Deploying
Option A — one command, via AWS SAM
sam build --use-container
sam deploy --guided--use-container matters here — sharp (the image library this uses) ships a native binary
compiled for a specific OS/architecture. Building without a container compiles against whatever
machine you're running sam build on; building in a container cross-compiles against Lambda's
actual Linux runtime, avoiding a broken/mismatched native binary at runtime.
--guided prompts for the stack name, region, and the two parameters (GeminiApiKey /
AnthropicApiKey — provide at least one; both are NoEcho) on first run, then remembers your
answers in samconfig.toml.
Option B — manual, via the Lambda console
npm install.Zip the folder's contents (not the folder itself) —
index.mjs,node_modules,package.json,package-lock.json, and thefonts/folder all need to sit at the zip's top level.Create function → author from scratch → Node.js 22+ → upload the zip.
Configuration → General configuration: raise Timeout (this one's deployed at ~2 minutes) and Memory (deployed at 256 MB — image compositing needs more headroom than plain text generation).
Configuration → Environment variables:
MCP_API_KEY,OUTPUT_BUCKET,FONTCONFIG_PATH(/var/task/fonts), and at least one ofGEMINI_API_KEY/ANTHROPIC_API_KEY.Permissions: attach
s3:GetObject,s3:PutObject,s3:PutObjectAcl, ands3:DeleteObjecton your output bucket — the function reads, writes, and can clean up its own generated objects.Configuration → Function URL: create one with Auth type
NONE.MCP_API_KEY, checked inside the handler, is the real gate —NONEhere only means AWS isn't checking IAM signatures.
Testing it directly
curl -s https://<your-function-url> \
-H "x-api-key: <MCP_API_KEY>" \
-H "content-type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
curl -s https://<your-function-url> \
-H "x-api-key: <MCP_API_KEY>" \
-H "content-type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"generate_skill_carousel","arguments":{"topic":"python libraries every data engineer should know"}}}'The response includes both a text summary and structuredContent with the topic, slide count,
and the direct S3 URLs for each generated PNG.
Connecting an MCP client
claude mcp add --transport http carousel https://<your-function-url> \
--header "x-api-key: <MCP_API_KEY>"Project structure
index.mjs — everything: carousel generation, image rendering, S3 I/O, JSON-RPC dispatch
fonts/ — fonts bundled into the deployment package (no system fonts on Lambda)
package.jsonSecurity note
MCP_API_KEY, GEMINI_API_KEY, and ANTHROPIC_API_KEY are all plain environment variables —
never hardcode them in index.mjs. Rotate all three if this function's configuration was ever
shown on screen (a demo, a screen recording).
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server that turns articles, transcripts, and markdown into LinkedIn carousel PDFs, Instagram PNGs, and Threads PNGs. Content in, slides out. No web UI, no cloud service.Last updated51MIT
- AlicenseAqualityCmaintenanceConvert HTML to PDF/PNG/WebP/PPTX slide carousels with 11 themes. For LinkedIn carousels, decks, Instagram posts, and infographics — Puppeteer-based pixel-perfect rendering.Last updated62MIT
- Flicense-qualityBmaintenanceAn MCP server that designs multi-slide Instagram carousels as SVG, provides a live swipeable preview, and exports to PNG. Supports multiple templates, themes, and sizes.Last updated
- Alicense-qualityDmaintenanceGenerates AI images using Google Gemini and uploads them to S3-compatible storage via a single MCP tool call.Last updated13MIT
Related MCP Connectors
Generate logos, social posts, app screenshots, comic panels & visual-novel assets from prompts.
Turn any idea, URL, doc, or PDF into on-brand visuals: 100+ formats, native in 150+ languages
Generate AI images, video, speech, music and presentations from Claude, ChatGPT and Cursor.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/theaidrill/CarouselMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server