MCP OpenAI Image Generator

MCP OpenAI Image Generator

MCP server that wraps OpenAI's gpt-image-2 image generation API, enabling image generation from text prompts, listing saved images, and loading images inline.

Category
Visit Server

README

MCP OpenAI Image Generator

MCP server that wraps OpenAI's gpt-image-2 image generation API.

Tools

Tool Description
generate_image Generate images from text prompts using gpt-image-2
list_generated_images List all previously generated images in the output folder
load_image Load and display a saved image inline

Setup

1. Build

npm install
npm run build

2. Configuration

Environment variables:

Variable Default Description
OPENAI_API_KEY (required) Your OpenAI API key
OPENAI_BASE_URL (optional) Custom base URL (e.g. a self-hosted proxy); defaults to official OpenAI endpoint
IMAGE_OUTPUT_DIR ./generated_images Where to save generated images

3. Register with Claude Desktop / Kiro CLI

Add to your MCP config (e.g. ~/.claude/mcp.json or Claude Desktop claude_desktop_config.json):

{
  "mcpServers": {
    "openai-image": {
      "command": "node",
      "args": ["D:/project/fully_async/mcp-openai-image/dist/index.js"],
      "env": {
        "OPENAI_API_KEY": "your-openai-api-key",

        "IMAGE_OUTPUT_DIR": "D:/project/fully_async/mcp-openai-image/generated_images"
      }
    }
  }
}

Usage Examples

Architecture diagram

generate_image(
  prompt = "AWS microservices architecture diagram: React SPA → API Gateway → 3 Lambda functions (auth, orders, products) → DynamoDB + S3. Clean white background, blue/orange color scheme, connected with arrows, professional tech style.",
  size = "1536x1024",
  quality = "high"
)

System design

generate_image(
  prompt = "System design diagram for a real-time chat application: WebSocket servers, Redis pub/sub, message queue (Kafka), PostgreSQL, CDN for media. Dark background, neon connectors, modern style.",
  size = "1536x1024",
  quality = "medium"
)

Supported Parameters

Parameter Options Default
size 1024x1024, 1024x1536, 1536x1024, auto 1024x1024
quality low, medium, high, auto medium
n 1–4 1
output_format png, jpeg, webp png
save_to_disk true / false true
output_dir any path ./generated_images

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured