Imagegen MCP Server

MCP server to generate images from text using OpenAI's API

Local serverstdioTypeScript

What is the Imagegen MCP Server?

MCP server to generate images from text using OpenAI's API

What it actually does

Here's an example of generating an image directly in Cursor using the text-to-image tool integrated via MCP:

  • Exposes OpenAI image generation capabilities through MCP tools
  • Supports text-to-image generation using models like DALL-E 2, DALL-E 3, and gpt-image-1 (if available/enabled)
  • Supports image-to-image editing using DALL-E 2 and gpt-image-1 (if available/enabled)
  • Configurable via environment variables and command-line arguments
  • Handles various parameters like size, quality, style, format, etc
  • Saves generated/edited images to temporary files and returns the path along with the base64 data

Configuration

  • Node.js (v18 or later recommended) * npm or yarn * An OpenAI API key

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Imagegen MCP Server

{
  "mcpServers": {
    "imagegen-1": {
      "command": "npx",
      "args": ["-y", "You"],
      "env": {
        "OPENAI_API_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Node.js (v18 or later recommended) * npm or yarn * An OpenAI API key
VariableDescriptionRequired
OPENAI_API_KEYCredential the server authenticates with.Yes

Frequently asked questions

MCP server to generate images from text using OpenAI's API Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.