meme
A simple Model Context Protocol (MCP) server for generating memes using the ImgFlip API
claude mcp add --transport stdio haltakov-meme-mcp npx -y meme-mcp \ --env IMGFLIP_PASSWORD="<IMGFLIP PASSWORD>" \ --env IMGFLIP_USERNAME="<IMGFLIP USERNAME>"
How to use
This Meme MCP server exposes a single tool called generateMeme which generates meme images via ImgFlip. The tool accepts three required parameters: templateNumericId (the numeric template ID for the meme), text0 (the first line of text), and text1 (the second line of text). You configure the server in your client (for example using the meme-mcp npm package) and then call the generateMeme tool with the appropriate arguments to produce a meme image through ImgFlip.
To use the server, provide your ImgFlip credentials through the IMGFLIP_USERNAME and IMGFLIP_PASSWORD environment variables when starting the MCP server. Once running, you can invoke the generateMeme tool by specifying the template ID and the two text fields to render the meme image. This enables AI workflows and tooling to programmatically request meme images from user prompts.
How to install
Prerequisites:
- Node.js and npm installed on your system
- Basic familiarity with running MCP servers
Installation steps:
-
Ensure Node.js and npm are installed. Verify with: node -v npm -v
-
Install or run the Meme MCP server using npx (as shown in the README example). You can either run directly or configure your client to use the provided mcp configuration. Example:
npm install -g meme-mcp
-
Start the server in a project or environment where you can provide ImgFlip credentials via environment variables. For example, you might start it as:
IMGFLIP_USERNAME=<your_username> IMGFLIP_PASSWORD=<your_password> npx -y meme-mcp
-
Configure your client to point to the meme MCP server using the provided mcpServers.meme configuration (see the README example). If you prefer a local run, you can reference the path to the meme-mcp index.js as shown in the example for Claude Desktop.
-
Test the setup by invoking the generateMeme tool with a templateNumericId and text0/text1 to ensure memes are created correctly.
Additional notes
Tips and notes:
- You must have a free ImgFlip account to obtain a username and password for IMGFLIP_USERNAME and IMGFLIP_PASSWORD.
- Some environments may struggle with finding the correct node/npx path when using NVM. If you encounter issues, you can install meme-mcp globally (npm install -g meme-mcp) and reference the global path directly in your configuration.
- If you need to locate your node executable path, you can run which node (on macOS/Linux) or where node (on Windows) and then point your command to that path as shown in the README example.
- Ensure network access to ImgFlip so the Meme MCP can generate images successfully.
- The tool expects templateNumericId, text0, and text1; validate inputs to avoid invalid meme templates.
Related MCP Servers
zen
Selfhosted notes app. Single golang binary, notes stored as markdown within SQLite, full-text search, very low resource usage
MCP -Deepseek_R1
A Model Context Protocol (MCP) server implementation connecting Claude Desktop with DeepSeek's language models (R1/V3)
mcp-fhir
A Model Context Protocol implementation for FHIR
mcp
Inkdrop Model Context Protocol Server
mcp-appium-gestures
This is a Model Context Protocol (MCP) server providing resources and tools for Appium mobile gestures using Actions API..
dubco -npm
The (Unofficial) dubco-mcp-server enables AI assistants to manage Dub.co short links via the Model Context Protocol. It provides three MCP tools: create_link for generating new short URLs, update_link for modifying existing links, and delete_link for removing short links.