MCP.so
ログイン

MCP OpenAI Image Generation Server

@spartanz51

MCP OpenAI Image Generation Server について

MCP server for OpenAI Image Generation & Editing — text-to-image, image-to-image (with mask), no extra plugins.

基本情報

カテゴリ

AI とエージェント

ランタイム

node

トランスポート

stdio

公開者

spartanz51

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "image-generator-gpt-image-15": {
      "command": "npx imagegen-mcp --models gpt-image-1",
      "env": {
        "OPENAI_API_KEY": "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"
      }
    }
  }
}

ツール

ツールは検出されませんでした

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is MCP OpenAI Image Generation Server?

This project provides a server implementation based on the Model Context Protocol (MCP) that acts as a wrapper around OpenAI's Image Generation and Editing APIs. It exposes image generation and editing capabilities as MCP tools, enabling integration with MCP-compatible clients. The server is intended for developers who want to use OpenAI's image models through the MCP standard.

How to use MCP OpenAI Image Generation Server?

The server can be run directly via npx imagegen-mcp [options]. It requires Node.js v18 or later and an OpenAI API key set in the OPENAI_API_KEY environment variable. After cloning the repository, install dependencies with npm install, build with npm run build, and run with node dist/index.js [options]. The server uses the StdioServerTransport to communicate via standard input/output.

Key features of MCP OpenAI Image Generation Server

  • Exposes OpenAI image generation through MCP tools
  • Supports text-to-image generation with multiple models
  • Supports image-to-image editing with optional masks
  • Configurable via environment variables and command-line arguments
  • Handles parameters like size, style, quality, and format
  • Saves generated images to temporary files and returns paths

Use cases of MCP OpenAI Image Generation Server

  • Generating images from text prompts directly in MCP-compatible editors
  • Editing existing images by providing a prompt and optional mask
  • Integrating AI image creation into development workflows and IDEs

FAQ from MCP OpenAI Image Generation Server

What are the prerequisites to use this server?

Node.js v18 or later, npm or yarn, and a valid OpenAI API key with access to the selected image generation models.

How does the server communicate with clients?

The server uses the standard MCP StdioServerTransport, communicating via standard input and output streams.

Which models are supported for image generation?

The server supports DALL-E 2, DALL-E 3, and gpt-image-1 (if available/enabled) for text-to-image. Image-to-image editing supports DALL-E 2 and gpt-image-1.

Are there any model-specific limitations?

DALL-E 3 only supports generating a single image per request (n=1). The style parameter (vivid/natural) is only applicable to DALL-E 3. Models are selected via the --models command-line argument, and the API key must have access to the chosen models.

How are generated images returned to the client?

Each generated image is saved to a temporary file, and the server returns the file path along with the base64 data of the image.

コメント

「AI とエージェント」の他のコンテンツ