
haltakov/meme-mcp 是从 https://github.com/haltakov/meme-mcp. 导入的 MCP 服务器候选。
概览
haltakov/meme-mcp 是从 https://github.com/haltakov/meme-mcp. 导入的 MCP 服务器候选。
概述(AI 翻译)
一个简单的模型上下文协议(MCP)服务器,用于使用 ImgFlip API 生成表情包。该服务器使 AI 模型和工具能够根据用户提示生成表情包图片。
工具
服务器实现了以下一个称为generateMeme的工具。
该工具接受以下参数:
templateNumericId:用于使用的模因模板的数字ID。text0:第一个占位符的文本。text1:第二个占位符的文本。
用途
你可以在客户端中使用 meme-mcp NPM 包配置表情包生成器服务器。这里有一个 Claude Desktop 的示例配置(设置 -> 开发者 -> 编辑配置):
注意:你需要在ImgFlip创建一个免费账户才能获取用户名和密码。
排查
有时 Claude Desktop 找不到 npx 的正确版本(尤其是你使用 NVM,详情请参见此问题)。在这种情况下,你可以手动全局安装 meme-mcp,然后直接使用。
你可以通过在终端中运行which node来找到node执行文件的路径。之后你的配置应该是这样的:
示例
本页由 AI 翻译,技术细节请以原文为准。
README
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.
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 NPM package. Here is an example configuration for Claude Desktop (Settings -> Developer -> Edit Config):
{
"mcpServers": {
"meme": {
"command": "npx",
"args": ["-y", "meme-mcp"],
"env": {
"IMGFLIP_USERNAME": "",
"IMGFLIP_PASSWORD": ""
}
}
}
}
Note: you need to create a free account on ImgFlip 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 for details). In this case, you can manually install meme-mcp globally and then use it directly.
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:
{
"mcpServers": {
"meme": {
"command": "/Users//.nvm/versions/node/v20.18.2/bin/node",
"args": ["/Users//.nvm/versions/node/v20.18.2/lib/node_modules/meme-mcp/dist/index.js"],
"env": {
"IMGFLIP_USERNAME": "",
"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.
Author
This project is created for fun by Vladimir Haltakov. If you find it interesting you can message me on X @haltakov.
安装
npx -y meme-mcp配置
{
"mcpServers": {
"meme": {
"command": "npx",
"args": ["-y", "meme-mcp"],
"env": {
"IMGFLIP_USERNAME": "<IMGFLIP USERNAME>",
"IMGFLIP_PASSWORD": "<IMGFLIP PASSWORD>"
}
}
}
}