Get the FREE Ultimate OpenClaw Setup Guide →

meme

A simple Model Context Protocol (MCP) server for generating memes using the ImgFlip API

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
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:

  1. Ensure Node.js and npm are installed. Verify with: node -v npm -v

  2. 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

  3. 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

  4. 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.

  5. 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

Sponsor this space

Reach thousands of developers