HM

haltakov/meme-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

58 stars 15 forks 品質 65 トレンド 0Apache-2.0

haltakov/meme-mcp は [https://github.com/haltakov/meme-mcp.] からインポートされた MCP サーバーの候補です

概要

haltakov/meme-mcp は [https://github.com/haltakov/meme-mcp.] からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

ImgFlip APIを使用してミームを生成するためのシンプルなモデルコンテキストプロトコル(MCP)サーバー。 このサーバーでは、AIモデルやツールがユーザのプロンプトからミームイメージを生成することを可能にします。

ツール

generateMeme という単一のツールで、サーバは以下を実行します。

ツールは、次のパラメーターを受け入れます。

  • [text0: 最初のプレースホルダーのテキスト。

使用法

[meme-mcp] NPMパッケージを使用して、クライアントにmememeジェネレータサーバーを設定できます。 ここでは、Claude デスクトップ (設定 -> 開発者 -> 編集 Config): の設定例を示します。

注意: ユーザー名とパスワードを取得するには、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.

GitHub で README 全文を見る

インストール

npx -y meme-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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