
haltakov/meme-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
haltakov/meme-mcp는 MCP 서버 후보로 수입 https://github.com/haltakov/meme-mcp.
개요
haltakov/meme-mcp는 MCP 서버 후보로 수입 https://github.com/haltakov/meme-mcp.
개요(AI 번역)
ImgFlip API를 사용하여 memes를 생성하기위한 간단한 모델 Context Protocol (MCP) 서버. 이 서버는 AI 모델과 도구를 사용하여 사용자의 프롬프트에서 meme 이미지를 생성합니다.
도구
서버는 generateMeme라는 단일 도구를 구현합니다.
이 도구는 다음과 같은 매개 변수를 수용합니다.
templateNumericId: meme 템플릿의 숫자 ID를 사용합니다.text0: 첫 번째 placeholder에 대한 텍스트.text1: 두 번째 위주자를 위한 텍스트.
사용법
meme-mcp NPM 패키지를 사용하여 클라이언트에서 meme generator 서버를 구성할 수 있습니다. 다음은 Claude Desktop (Settings -> Developer -> Edit Config)의 예 구성입니다.
참고: ImgFlip에 무료 계정을 만들려면 사용자 이름과 암호를 얻을 수 있습니다.
문제 해결
때때로 Claude 데스크탑은 npx]]의 올바른 버전을 찾을 수 없습니다 (특히 NVM을 사용하는 경우, 세부 사항에 대한이 문제를 참조하십시오). 이 경우, 수동으로 meme-mcp]을 globally 설치하고 직접 사용합니다.
터미널에서 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>"
}
}
}
}