Image Generator MCP Server

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Generates images using OpenAI's DALL-E 3 model based on text prompts, saving the results to a specified location.

画像生成器MCPサーバー

画像プロンプトに基づいて画像を生成するmcpサーバー

これは、 OPENAIdall-e-3画像生成モデルを使用して画像生成を実装した TypeScript ベースの MCP サーバーです。

特徴

ツール

  • generate_image - 指定されたプロンプトの画像を生成する
    • prompt必須パラメータとして受け取ります
    • 生成された画像をデスクトップのgenerated-imagesディレクトリに保存するには、 imageName必須パラメータとして受け取ります。

発達

依存関係をインストールします:

npm install

サーバーを構築します。

npm run build

自動リビルドを使用した開発の場合:

npm run watch

インストール

Claude Desktop で使用するには、サーバー設定を追加します。

MacOS の場合: ~/Library/Application Support/Claude/claude_desktop_config.json Windows の場合: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "command": "image-generator", "env": { "OPENAI_API_KEY": "<your-openai-api-key>" } } }

<your-openai-api-key>実際のOPENAI Api キーに置き換えてください。

デバッグ

MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。

npm run inspector

インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

テキストプロンプトに基づいて OpenAI の dall-e-3 モデルを使用して画像を生成し、指定されたディレクトリに保存する TypeScript ベースの MCP サーバー。

  1. Features
    1. Tools
  2. Development
    1. Installation
      1. Debugging
    ID: hp0az6p3gb