Skip to main content
Glama
haltakov
by haltakov
README.md
# Meme MCP Server

A simple Model Context Protocol (MCP) server for generating memes using the ImgFlip API. This server enables AI models and tools to generate meme images from user prompts.

<a href="https://glama.ai/mcp/servers/d316l4kyh7">
  <img width="380" height="200" src="https://glama.ai/mcp/servers/d316l4kyh7/badge" alt="Meme Server MCP server" />
</a>

## Tools

The server implements the following a single tool called `generateMeme`.

The tool accepts the following parameters:

- `templateNumericId`: The numeric ID of the meme template to use.
- `text0`: The text for the first placeholder.
- `text1`: The text for the second placeholder.

## Usage

You can configure the meme generator server in your client using the [`meme-mcp`](https://www.npmjs.com/package/meme-mcp) NPM package. Here is an example configuration for Claude Desktop (Settings -> Developer -> Edit Config):

```json
{
  "mcpServers": {
    "meme": {
      "command": "npx",
      "args": ["-y", "meme-mcp"],
      "env": {
        "IMGFLIP_USERNAME": "<IMGFLIP USERNAME>",
        "IMGFLIP_PASSWORD": "<IMGFLIP PASSWORD>"
      }
    }
  }
}
```

> Note: you need to create a free account on [ImgFlip](https://imgflip.com/signup) to get your username and password.

### Troubleshooting

Sometimes Claude Desktop fails to find the right version of `npx` (especially if you are using NVM, see this [Issue](https://github.com/modelcontextprotocol/servers/issues/64) for details). In this case, you can manually install `meme-mcp` globally and then use it directly.

```bash
npm install -g meme-mcp
```

You can find the path of your `node` executable by running `which node` in your terminal. After that your configuration should look like this:

```json
{
  "mcpServers": {
    "meme": {
      "command": "/Users/<USERNAME>/.nvm/versions/node/v20.18.2/bin/node",
      "args": ["/Users/<USERNAME>/.nvm/versions/node/v20.18.2/lib/node_modules/meme-mcp/dist/index.js"],
      "env": {
        "IMGFLIP_USERNAME": "<IMGFLIP USERNAME>",
        "IMGFLIP_PASSWORD": "<IMGFLIP PASSWORD>"
      }
    }
  }
}
```

## Example

After configuring Claude Desktop, you need to restart it and then you will see the small hammer icon on the bottom right in the chat input. You can then ask Claude to generate a meme for you.

![Claude Desktop with meme server configured](./docs/claude-desktop-meme-example.png)

## Author

This project is created for fun by [Vladimir Haltakov](https://haltakov.net). If you find it interesting you can message me on X [@haltakov](https://x.com/haltakov).

TDQS

B3/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is clearly defined and distinct by default.

Naming Consistency5/5

A single tool inherently has perfect naming consistency, as there are no other tools to compare it against. The tool name uses camelCase, which is consistent within itself.

Tool Count2/5

A single tool is too few for a server named 'Meme MCP Server', which suggests a broader scope for meme-related operations. This minimal set limits functionality and feels incomplete for the domain.

Completeness2/5

The tool surface is severely incomplete for meme generation. It only offers generation via a specific template ID, lacking operations like listing templates, searching memes, editing, or managing meme content, which are typical for such a domain.

Maintenance

ActivityInactive
ResponsivenessNo issues