Image MCP Server

STDIO MCP server for OpenAI and Gemini image generation

Local serverstdioTypeScript

What is the Image MCP server?

If you already use Image, the image mcp server is the piece that lets your assistant work with it directly. STDIO MCP server for OpenAI and Gemini image generation.

What the server does

Installation

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • prompt — What the image should contain
  • filename — Base filename without an extension
  • generate_image_openai — Generate one or more images with the OpenAI Image API
  • generate_image_gemini — Generate one or more images with the Gemini Interactions API

Credentials and setup notes

Configuration is passed through the environment: OPENAI_API_KEY, GEMINI_API_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

This sits in the AI and media services group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Image's toolset — prompt, filename, generate_image_openai and 1 more — is a fair guide to whether it matches your workflow. It is maintained by s4shibam; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Image's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available tools

ToolWhat it does
promptWhat the image should contain
filenameBase filename without an extension
generate_image_openaiGenerate one or more images with the OpenAI Image API
generate_image_geminiGenerate one or more images with the Gemini Interactions API

How to install the Image MCP server

{
  "mcpServers": {
    "image-gen-mcp": {
      "command": "npx",
      "args": ["-y", "@s4shibam/image-gen-mcp"],
      "env": {
        "OPENAI_API_KEY": "your-openai-api-key",
        "GEMINI_API_KEY": "your-gemini-api-key"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
OPENAI_API_KEYCredential the server authenticates with.Yes
GEMINI_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Image to prompt.
  • Use Image to filename.
  • Use Image to generate image openai.

Frequently asked questions

It connects Image to MCP-compatible AI assistants such as Claude and Cursor, exposing 4 tools (prompt, filename, generate_image_openai, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Image directly.