Server data from the Official MCP Registry
Browse Imgflip meme templates and generate memes (caption images, AI memes) via the Imgflip API
Browse Imgflip meme templates and generate memes (caption images, AI memes) via the Imgflip API
Valid MCP server (3 strong, 3 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.
6 files analyzed Β· 1 issue found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Set these up before or after installing:
Environment variable: IMGFLIP_USERNAME
Environment variable: IMGFLIP_PASSWORD
Environment variable: IMGFLIP_PREMIUM
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-mariokernich-imgflip-mcp": {
"env": {
"IMGFLIP_PREMIUM": "your-imgflip-premium-here",
"IMGFLIP_PASSWORD": "your-imgflip-password-here",
"IMGFLIP_USERNAME": "your-imgflip-username-here"
},
"args": [
"-y",
"imgflip-mcp"
],
"command": "npx"
}
}
}From the project's GitHub README.
π Full documentation: mariokernich.github.io/imgflip-mcp
There's an MCP server for your database. One for your Kubernetes cluster. One for your cloud bill, one for your ticket system, and at least twelve for reading PDFs. Serious servers for serious work.
But somewhere along the way, the ecosystem forgot the workload that actually keeps engineering teams running: memes.
imgflip-mcp closes that gap. It's a Model Context Protocol server for the Imgflip meme generator API, so Claude (or any other MCP client) can browse thousands of meme templates and caption them mid-conversation β turning your AI assistant into the coworker who always has the right reaction image.
You: "Make me a Drake meme about writing tests vs. testing in production" Claude: πΌοΈ calls
get_memesβ callscaption_imageβ sends you the image link
Everything you need is a free Imgflip account. An Imgflip API Premium subscription is optional β it unlocks five extra tools (search, GIF captioning, automeme, AI memes), which stay hidden unless you explicitly enable them.
More than you'd think. Once meme generation is one sentence away, it sneaks into real workflows:
Is any of this necessary? No. Neither is syntax highlighting, and yet here we are.
| Tool | Description | Imgflip endpoint | Requirements |
|---|---|---|---|
get_memes | List the ~100 most popular meme templates, with optional name filtering | GET /get_memes | none |
caption_image | Caption a template and get the generated image URL | POST /caption_image | free Imgflip account |
These two tools cover the everyday use case end to end: find a template, put text on it, get the image URL.
| Tool | Description | Imgflip endpoint |
|---|---|---|
search_memes | Search 1M+ templates by name | POST /search_memes |
get_meme | Look up a single template by id | POST /get_meme |
caption_gif | Caption an animated GIF template | POST /caption_gif |
automeme | Auto-pick a template for a piece of text | POST /automeme |
ai_meme | Let Imgflip's AI invent a whole meme | POST /ai_meme |
These require an Imgflip API Premium subscription and are not registered by default, so free-tier users never see tools that would fail. If you have Premium, enable them by setting IMGFLIP_PREMIUM=true.
make-meme prompt: an MCP prompt that guides the model through template selection and captioning β pass a topic and optionally a template preference.readOnlyHint so clients can auto-approve them safely.get_memes| Variable | Required | Description |
|---|---|---|
IMGFLIP_USERNAME | yes* | Your Imgflip username |
IMGFLIP_PASSWORD | yes* | Your Imgflip password |
IMGFLIP_PREMIUM | no | Set to true to also register the five Premium tools (default: off) |
* Only get_memes works without credentials.
Note: The Imgflip API authenticates with username/password form fields β it does not offer API keys. Consider creating a dedicated Imgflip account for API use.
The server communicates over stdio, so your MCP client launches it as a subprocess β there is no port or daemon to manage. Pick whichever route fits your client:
| Route | Best for | How |
|---|---|---|
| npx | most clients | npx -y imgflip-mcp β no clone, no build (requires the package on npm, see the docs) |
Desktop Extension (.mcpb) | Claude Desktop | download from Releases, double-click, fill in the credentials form |
| Claude Code plugin | Claude Code | /plugin marketplace add mariokernich/imgflip-mcp β this repo is its own plugin marketplace |
| VS Code button | Copilot users | click the Install in VS Code badge above |
| From source | development | see below |
git clone https://github.com/mariokernich/imgflip-mcp.git
cd imgflip-mcp
corepack enable # provides pnpm (see packageManager in package.json)
pnpm install
pnpm build
The compiled server entry point is dist/index.js; the config examples below use npx -y imgflip-mcp, which you can always replace with node /absolute/path/to/imgflip-mcp/dist/index.js.
Option A β one-click Desktop Extension (recommended):
imgflip-mcp-*.mcpb file from the Releases page (or build it yourself: npx @anthropic-ai/mcpb pack).Option B β manual JSON config:
Open Claude Desktop and go to Settings β Developer β Edit Config. This opens (or creates) claude_desktop_config.json:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonAdd the server under mcpServers (create the key if the file is empty):
{
"mcpServers": {
"imgflip": {
"command": "npx",
"args": ["-y", "imgflip-mcp"],
"env": {
"IMGFLIP_USERNAME": "your-username",
"IMGFLIP_PASSWORD": "your-password"
}
}
}
}
If you have API Premium and want the extra tools, add "IMGFLIP_PREMIUM": "true" to the env block.
Fully restart Claude Desktop (quit from the tray/menu bar, not just close the window).
Open a new chat β the Imgflip tools now show up in the tools menu (π icon). Try:
"Make a Drake meme: top 'manually formatting code', bottom 'letting the linter do it'."
Claude will look up the template, call caption_image, and reply with the finished image link.
Option A β as a plugin. This repository is its own plugin marketplace:
/plugin marketplace add mariokernich/imgflip-mcp
/plugin install imgflip@imgflip-mcp
The plugin reads IMGFLIP_USERNAME, IMGFLIP_PASSWORD and (optionally) IMGFLIP_PREMIUM from your shell environment, so export them in your ~/.bashrc/~/.zshrc.
Option B β register the MCP server directly:
claude mcp add imgflip \
--env IMGFLIP_USERNAME=your-username \
--env IMGFLIP_PASSWORD=your-password \
-- npx -y imgflip-mcp
Add --env IMGFLIP_PREMIUM=true if you have API Premium. Verify with:
claude mcp list # "imgflip" should show as β connected
Then simply ask inside any claude session:
"Generate a 'This Is Fine' meme about our flaky CI pipeline and give me the URL."
By default Claude Code adds the server to the current project; use claude mcp add --scope user β¦ to make it available in all your projects.
You: Which meme templates are trending right now?
Claude: [calls get_memes with limit 10] Here are the current top 10:
Drake Hotline Bling, Distracted Boyfriend, Two Buttons, ...
You: Take the Two Buttons one. Button 1 "fix the root cause",
button 2 "add another workaround", and make it so.
Claude: [calls caption_image with boxes]
Here's your meme: https://i.imgflip.com/9x7abc.jpg
Click the Install in VS Code badge at the top of this README β VS Code opens, prompts securely for your Imgflip username and password, and registers the server for Copilot's agent mode. Equivalent CLI one-liner:
code --add-mcp '{"name":"imgflip","command":"npx","args":["-y","imgflip-mcp"],"env":{"IMGFLIP_USERNAME":"${input:imgflip_username}","IMGFLIP_PASSWORD":"${input:imgflip_password}"},"inputs":[{"id":"imgflip_username","type":"promptString","description":"Imgflip username"},{"id":"imgflip_password","type":"promptString","description":"Imgflip password","password":true}]}'
Once published to the MCP Registry, the server is also discoverable in the GitHub MCP Registry and directly inside VS Code (Extensions view β MCP SERVERS).
Any client that supports stdio MCP servers uses the same shape β command npx, args ["-y", "imgflip-mcp"] (or node + path to dist/index.js), plus the environment variables. Example for Cursor (.cursor/mcp.json):
{
"mcpServers": {
"imgflip": {
"command": "npx",
"args": ["-y", "imgflip-mcp"],
"env": {
"IMGFLIP_USERNAME": "your-username",
"IMGFLIP_PASSWORD": "your-password"
}
}
}
}
Some prompts that map directly onto the tools:
get_memesget_memes with name_filter: "brain"caption_imagecaption_image with boxessearch_memes (Premium)automeme (Premium)ai_meme (Premium)Step 1 β find a template. Call get_memes (optionally with name_filter):
{
"name": "get_memes",
"arguments": { "name_filter": "drake" }
}
Response (excerpt):
{
"count": 1,
"memes": [
{
"id": "181913649",
"name": "Drake Hotline Bling",
"url": "https://i.imgflip.com/30b1gx.jpg",
"width": 1200,
"height": 1200,
"box_count": 2
}
]
}
Step 2 β caption it. For templates with two boxes, text0/text1 is enough:
{
"name": "caption_image",
"arguments": {
"template_id": "181913649",
"text0": "Manually formatting code",
"text1": "Letting the linter do it"
}
}
Response:
{
"url": "https://i.imgflip.com/9x7abc.jpg",
"page_url": "https://imgflip.com/i/9x7abc"
}
url is the direct image; page_url is the meme's page on imgflip.com.
Check the template's box_count and pass a boxes array instead of text0/text1. Example β Expanding Brain (box_count: 4):
{
"name": "caption_image",
"arguments": {
"template_id": "93895088",
"boxes": [
{ "text": "Drip coffee" },
{ "text": "Espresso" },
{ "text": "Energy drinks" },
{ "text": "Pure willpower" }
]
}
}
Boxes are auto-positioned when you omit coordinates. For full control, each box also accepts x, y, width, height (pixels), color, and outline_color (hex codes):
{
"text": "STONKS",
"x": 10,
"y": 225,
"width": 548,
"height": 100,
"color": "#ffffff",
"outline_color": "#000000"
}
Styling options for caption_image:
font β "impact" (default) or "arial"max_font_size β maximum font size in pixels (default 50); text shrinks automatically to fitno_watermark β removes the imgflip.com watermark (Imgflip Premium accounts only)IMGFLIP_PREMIUM=true)Remember: Premium is entirely optional β everything above works on the free tier. With an Imgflip API Premium subscription and IMGFLIP_PREMIUM=true, five more tools become available:
{ "name": "search_memes", "arguments": { "query": "confused cat" } }
{ "name": "automeme", "arguments": { "text": "one does not simply deploy on a friday" } }
{
"name": "ai_meme",
"arguments": { "model": "openai", "prefix_text": "when the standup meeting" }
}
ai_meme returns the generated image plus the template and texts the AI chose:
{
"url": "https://i.imgflip.com/9xyz12.jpg",
"page_url": "https://imgflip.com/i/9xyz12",
"template_id": 61579,
"texts": ["when the standup meeting", "could have been a slack message"]
}
If your account lacks Premium, these tools return the original Imgflip error message instead of failing silently.
All tools return errors as readable text with the MCP isError flag set, so Claude can react to them:
IMGFLIP_USERNAME / IMGFLIP_PASSWORD in the server's env blocktemplate_id β double-check the id via get_memes or search_memesThis project uses pnpm (corepack enable sets it up automatically):
pnpm install # install dependencies
pnpm build # compile TypeScript to dist/
pnpm dev # compile in watch mode
pnpm test # build + run the Vitest suite (unit + stdio smoke tests)
pnpm lint # Biome lint & format check
pnpm typecheck # type-check without emitting
pnpm start # run the compiled server
CI runs lint, typecheck, tests, a version-consistency check and MCPB manifest validation on every push and pull request. See CONTRIBUTING.md for guidelines and CHANGELOG.md for release history.
Test interactively with the MCP Inspector:
IMGFLIP_USERNAME=you IMGFLIP_PASSWORD=secret \
npx @modelcontextprotocol/inspector node dist/index.js
src/
index.ts MCP server: tools, prompt, stdio transport
client.ts Thin typed client for the Imgflip REST API
types.ts Shared type definitions for API payloads
test/ Vitest suite (client unit tests + stdio smoke tests)
scripts/ sync-versions.mjs (single-source version from package.json)
server.json MCP Registry metadata
manifest.json Claude Desktop Extension (MCPB) manifest
.claude-plugin/ Claude Code plugin + marketplace definition
.mcp.json MCP server wiring for the Claude Code plugin
docs/ documentation site content (ProperDocs + Material)
The server is distributed through the npm registry, the official MCP Registry (which feeds the GitHub MCP Registry used by Copilot), a Claude Desktop Extension (.mcpb) attached to each GitHub release, and this repo's built-in Claude Code plugin marketplace. Releases are fully automated: push a vX.Y.Z tag and the publish workflow does the rest. See the publishing guide for the complete walkthrough, including the one-time setup and manual fallbacks.
This server runs locally and is stateless: your Imgflip credentials and meme texts are sent exclusively to https://api.imgflip.com (which requires them for authentication and generation), and nothing is logged, stored, or sent anywhere else. Generated memes are hosted publicly on imgflip.com. Details in PRIVACY.md; Imgflip's own handling is covered by the Imgflip privacy policy.
get_memes returns the top ~100 templates ordered by caption popularity over the last 30 days, so results change over time.application/x-www-form-urlencoded POST requests; this server handles the encoding (including the boxes[i][field] array syntax) for you.Do I need to pay for anything? No. A free Imgflip account covers the core workflow (browse templates, create memes). Imgflip API Premium is only needed for the five opt-in extras like template search and AI memes β the server works happily without it, forever.
Why does the server only show two tools?
That's intentional. The five Premium tools stay hidden unless you set IMGFLIP_PREMIUM=true, so you never see tools that would just error on a free account. Two tools that work beat seven that don't.
Why username and password instead of an API key? Ask Imgflip β their API has authenticated this way since forever. The pragmatic answer: create a dedicated Imgflip account just for the API and let your MCP client store the password (the Claude Desktop extension puts it in the OS keychain).
Are my memes private? No. Everything you generate is hosted on imgflip.com under a public URL β anyone with the link can see it. Maybe don't caption the unreleased quarterly numbers. Imgflip may also delete images that get no views for a long time, so archive anything you're attached to.
Can I get rid of the watermark?
Yes, pass no_watermark: true β but it only works if your Imgflip account has a Premium subscription. Otherwise the watermark stays, as a small tribute to the free lunch you're eating.
The meme shows up as a link but not as an image. Why? The server embeds the generated image inline when it can (up to 2 MB). If the image is bigger or the download hiccups, you still get the URL β embedding is best-effort by design and never fails the request.
My template has four text boxes. How do I fill them all?
Skip text0/text1 and pass the boxes array instead β one entry per box, optionally with position and colors. Check the template's box_count from get_memes to know how many you need.
Does this only work with Claude? No β any MCP client that speaks stdio works: GitHub Copilot in VS Code, Cursor, and friends. Claude just happens to have excellent taste in memes.
Is this an official Imgflip project? No, it's an independent community project. All meme generation happens through their public API β see the Imgflip terms for what's allowed.
Something's broken. Where do I complain? Open an issue β ideally with the tool call that failed and your client. Bonus points if the bug report contains a meme.
Be the first to review this server!
by Modelcontextprotocol Β· Developer Tools
Web content fetching and conversion for efficient LLM usage
by Toleno Β· Developer Tools
Toleno Network MCP Server β Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace Β· Developer Tools
Create, build, and publish Python MCP servers to PyPI β conversationally.