Create visuals,instantly.

Hand your coding agent a paintbrush — MCP image generation through your own ChatGPT session, so sites feel finished.

idea to prompt to ChatGPT to generation to finished site, with Zerops

agents that write code can finally paint too

the annoying part

your agent can write the whole site. it just can't draw.

everything ships except the pictures. so the page that was 90% done stays 90% done.

1

vibe-coded sites look unfinished

the layout is fine. the copy is fine. then every image slot is a grey rectangle with a mountain icon in it.

Doodle of a website wireframe full of empty image placeholders

looks empty. feels half-done.

2

api keys and credits are friction

you already pay for ChatGPT. adding a second billing account just to make a hero image is silly.

Doodle of an Add payment method dialog asking for card details

extra signup. extra billing. no thanks.

3

built-in IDE image tools are weak

small, generic, off-brand output that you end up replacing by hand anyway.

Doodle of a weak AI Image tool returning generic mug thumbnails

close, but not what i wanted.

4

context switching kills flow

leave your agent, open a tool, make the image, download it, drop it in, update the path…

Doodle flowchart of jumping between agent, ChatGPT, download, folder, path, and browser

too many steps. breaks momentum.

the fix

three steps, no keys..

Cute mint robot head sticker
01

your agent calls the MCP

one tool: generate_image. prompt in, file path out.

Paint palette and brush sticker
02

ChatGPT paints it

a real browser drives your already-logged-in ChatGPT session. no API key involved.

Downloaded landscape image sticker
03

the PNG lands in your repo

downloaded into assets/ or public/, then your agent wires it into the page.

Tip: Works with your login, your plan, your rules.

how it works

the flow, screen by screen.

doodle-styled UI of the real path — MCP in, ChatGPT paints, PNG lands in your repo.

  1. step one

    register the MCP once

    Cursor MCP Servers settings with image-gen enabled and mcp.json config

    drop image-gen into your client's MCP config. one entry, one command, and every agent in that editor can suddenly draw.

  2. step two

    just ask your agent for a picture

    Agent chat panel where the user asks for a ceramic mug hero image and generate_image completes

    "make a hero image of a ceramic mug on linen" — no new tab, no prompt console, same conversation you were already in.

  3. step three

    it wakes up its own browser

    Microsoft Edge browser window open to ChatGPT image generation

    image-gen drives Microsoft Edge over CDP in a dedicated profile you logged into once. your working window is never touched, and no API key exists anywhere.

  4. step four

    ChatGPT paints it

    ChatGPT UI showing a generated ceramic mug product photo

    the prompt goes into your real ChatGPT session and the image renders there. parallel requests get queued so two prompts never scramble the composer.

  5. step five

    the PNG lands in your repo

    IDE file explorer with public/speckled-mug.png selected and previewed

    the file is downloaded to the path you asked for, and generate_image hands that path back so your agent wires the image into the page itself.

a real run

svg diagrams in → awwwards finish out.

same Terra Ceramics site, two states. before: full layout with dashed SVG placeholders — no photography. after: the agent calls generate_image and paints an Awwwards-level storefront. drag the slider — or flip before / after — to see the jump.

After: Awwwards-level Terra Ceramics site with professional product photography
Before: same Terra Ceramics site with SVG diagram placeholders only
before · svgsafter · awwwards

step 1

before

full site ships with SVG diagrams in every image slot. layout is done — photos aren't.

step 2

generate_image

the agent calls the MCP. ChatGPT paints each piece through your logged-in browser session.

step 3

after

same page, Awwwards-level photography wired in. drag the slider to see the jump.

install

four steps and your agent has a brush.

Colourful doodle terminal window with a robot hand typing commands next to a paint palette
  1. 1.clone it
    terminal
    $git clone https://github.com/nothariharan/image-gen.git
  2. 2.install deps
    terminal
    $npm install
  3. 3.log into ChatGPT once
    terminal
    $npm run login
  4. 4.register the MCP server in cursor or claude code, pointing at mcp-server.mjs
    mcp.json
    {
      "mcpServers": {
        "image-gen": {
          "command": "node",
          "args": ["/absolute/path/to/image-gen/mcp-server.mjs"]
        }
      }
    }

then ask your agent for a hero image. it calls generate_image, ChatGPT paints, and the PNG shows up in your project. deploying this marketing site yourself? there's a Deploy on Zerops guide in DEPLOY_ZEROPS.md covering the web, api and postgres services.

Works with your favorite agents

register it once — it shows up wherever MCP does.

Claude
Cursor
OpenCode
ChatGPT
Windsurf
+any MCP client

questions

the honest answers.

no. that's the whole point. image-gen drives your existing ChatGPT session in a browser, so image generation comes out of the plan you already pay for.

hand your agent a paintbrush.

clone it, log in once, and let the thing that writes your site also paint it.

github.com/nothariharan/image-gen

optional: get updates

new tools, better queueing, non-Edge browsers. no spam.