I

Image Gen

by nuverlabs.com · com.nuverlabs/image-gen

Enables coding agents to generate and edit images using Gemini and OpenAI image models, saving files directly into the project with configurable providers, models, and security restrictions.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "com-nuverlabs-image-gen": {
      "command": "npx",
      "args": [
        "-y",
        "@nuver-labs/image-gen-mcp"
      ],
      "env": {
        "GEMINI_API_KEY": "<YOUR_VALUE>",
        "OPENAI_API_KEY": "<YOUR_VALUE>",
        "IMAGE_GEN_MCP_DEFAULT_PROVIDER": "key-based",
        "IMAGE_GEN_MCP_GEMINI_MODEL": "gemini-3.1-flash-image",
        "IMAGE_GEN_MCP_OPENAI_MODEL": "gpt-image-2",
        "IMAGE_GEN_MCP_OUTPUT_DIR": "<VALUE>",
        "IMAGE_GEN_MCP_ALLOWED_DIRS": "<VALUE>",
        "IMAGE_GEN_MCP_TIMEOUT_MS": "180000",
        "IMAGE_GEN_MCP_LOG_FILE": "~/.image-gen-mcp/images.jsonl"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "com-nuverlabs-image-gen": {
      "command": "npx",
      "args": [
        "-y",
        "@nuver-labs/image-gen-mcp"
      ],
      "env": {
        "GEMINI_API_KEY": "<YOUR_VALUE>",
        "OPENAI_API_KEY": "<YOUR_VALUE>",
        "IMAGE_GEN_MCP_DEFAULT_PROVIDER": "key-based",
        "IMAGE_GEN_MCP_GEMINI_MODEL": "gemini-3.1-flash-image",
        "IMAGE_GEN_MCP_OPENAI_MODEL": "gpt-image-2",
        "IMAGE_GEN_MCP_OUTPUT_DIR": "<VALUE>",
        "IMAGE_GEN_MCP_ALLOWED_DIRS": "<VALUE>",
        "IMAGE_GEN_MCP_TIMEOUT_MS": "180000",
        "IMAGE_GEN_MCP_LOG_FILE": "~/.image-gen-mcp/images.jsonl"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "com-nuverlabs-image-gen": {
      "command": "npx",
      "args": [
        "-y",
        "@nuver-labs/image-gen-mcp"
      ],
      "env": {
        "GEMINI_API_KEY": "<YOUR_VALUE>",
        "OPENAI_API_KEY": "<YOUR_VALUE>",
        "IMAGE_GEN_MCP_DEFAULT_PROVIDER": "key-based",
        "IMAGE_GEN_MCP_GEMINI_MODEL": "gemini-3.1-flash-image",
        "IMAGE_GEN_MCP_OPENAI_MODEL": "gpt-image-2",
        "IMAGE_GEN_MCP_OUTPUT_DIR": "<VALUE>",
        "IMAGE_GEN_MCP_ALLOWED_DIRS": "<VALUE>",
        "IMAGE_GEN_MCP_TIMEOUT_MS": "180000",
        "IMAGE_GEN_MCP_LOG_FILE": "~/.image-gen-mcp/images.jsonl"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "com-nuverlabs-image-gen": {
      "command": "npx",
      "args": [
        "-y",
        "@nuver-labs/image-gen-mcp"
      ],
      "env": {
        "GEMINI_API_KEY": "<YOUR_VALUE>",
        "OPENAI_API_KEY": "<YOUR_VALUE>",
        "IMAGE_GEN_MCP_DEFAULT_PROVIDER": "key-based",
        "IMAGE_GEN_MCP_GEMINI_MODEL": "gemini-3.1-flash-image",
        "IMAGE_GEN_MCP_OPENAI_MODEL": "gpt-image-2",
        "IMAGE_GEN_MCP_OUTPUT_DIR": "<VALUE>",
        "IMAGE_GEN_MCP_ALLOWED_DIRS": "<VALUE>",
        "IMAGE_GEN_MCP_TIMEOUT_MS": "180000",
        "IMAGE_GEN_MCP_LOG_FILE": "~/.image-gen-mcp/images.jsonl"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "com-nuverlabs-image-gen": {
      "command": "npx",
      "args": [
        "-y",
        "@nuver-labs/image-gen-mcp"
      ],
      "env": {
        "GEMINI_API_KEY": "<YOUR_VALUE>",
        "OPENAI_API_KEY": "<YOUR_VALUE>",
        "IMAGE_GEN_MCP_DEFAULT_PROVIDER": "key-based",
        "IMAGE_GEN_MCP_GEMINI_MODEL": "gemini-3.1-flash-image",
        "IMAGE_GEN_MCP_OPENAI_MODEL": "gpt-image-2",
        "IMAGE_GEN_MCP_OUTPUT_DIR": "<VALUE>",
        "IMAGE_GEN_MCP_ALLOWED_DIRS": "<VALUE>",
        "IMAGE_GEN_MCP_TIMEOUT_MS": "180000",
        "IMAGE_GEN_MCP_LOG_FILE": "~/.image-gen-mcp/images.jsonl"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "com-nuverlabs-image-gen": {
      "command": "npx",
      "args": [
        "-y",
        "@nuver-labs/image-gen-mcp"
      ],
      "env": {
        "GEMINI_API_KEY": "<YOUR_VALUE>",
        "OPENAI_API_KEY": "<YOUR_VALUE>",
        "IMAGE_GEN_MCP_DEFAULT_PROVIDER": "key-based",
        "IMAGE_GEN_MCP_GEMINI_MODEL": "gemini-3.1-flash-image",
        "IMAGE_GEN_MCP_OPENAI_MODEL": "gpt-image-2",
        "IMAGE_GEN_MCP_OUTPUT_DIR": "<VALUE>",
        "IMAGE_GEN_MCP_ALLOWED_DIRS": "<VALUE>",
        "IMAGE_GEN_MCP_TIMEOUT_MS": "180000",
        "IMAGE_GEN_MCP_LOG_FILE": "~/.image-gen-mcp/images.jsonl"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
GEMINI_API_KEY secret No Enables the Gemini provider
OPENAI_API_KEY secret No Enables the OpenAI provider
IMAGE_GEN_MCP_DEFAULT_PROVIDER No `gemini` or `openai`. When unset: gemini if its key is set, else openai Default: key-based
IMAGE_GEN_MCP_GEMINI_MODEL No Default Gemini model Default: gemini-3.1-flash-image
IMAGE_GEN_MCP_OPENAI_MODEL No Default OpenAI model Default: gpt-image-2
IMAGE_GEN_MCP_OUTPUT_DIR No Fallback output directory when a call passes no `output_path`
IMAGE_GEN_MCP_ALLOWED_DIRS No Comma separated directories that all reads and writes are confined to. See Security
IMAGE_GEN_MCP_TIMEOUT_MS No Per-request timeout to the provider API Default: 180000
IMAGE_GEN_MCP_LOG_FILE No JSONL ledger path. Absolute path to relocate, `none` to disable the file Default: ~/.image-gen-mcp/images.jsonl

Similar servers