# gpt-image-2-polza-mcp-server [Health: Active]

**Category:** 🎥 Multimedia Process  
**Repository:** https://github.com/ivanantigravity-lgtm/gpt-image-2-polza-mcp  
**GitHub Stars:** 0  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/gpt-image-2-polza-mcp-server

## Description
GPT Image 2 MCP server backed by Polza media and storage APIs.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/ivanantigravity-lgtm/gpt-image-2-polza-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
git clone https://github.com/ivanantigravity-lgtm/gpt-image-2-polza-mcp.git
```

2. Run:

```sh
cd gpt-image-2-polza-mcp
```

3. Install:

```sh
uv sync
```

4. Configure:

```sh
cp .env.example .env
```

5. Start the server:

```sh
uv run gpt-image-2-polza-mcp-server
```

## Documentation

## What the gpt-image-2-polza-mcp-server MCP server does

The gpt-image-2-polza-mcp-server MCP server exposes Polza’s image API to MCP-compatible clients. It uses the `openai/gpt-5.4-image-2` model through the `gpt-image-2` model tier and supports both new image generation and image editing.

The main workflow accepts a text prompt or editing instruction and can optionally use local reference files. Results can be written to a selected file or directory. The server also returns a preview and structured metadata through MCP, while full-size output is retained on disk.

Supported image controls include `1k`, `2k`, `4k`, or `high` resolution and aspect ratios such as `1:1`, `16:9`, `9:16`, and `4:5`. The `force_new_generation` option bypasses an existing cached result for the same request.

## How it works

The gpt-image-2-polza-mcp-server MCP server starts a generation through Polza’s `POST /v1/media` endpoint, then checks the corresponding media record with `GET /v1/media/{id}`. A completed request produces a local output file and MCP response data. Polling behavior can be adjusted with environment variables for interval and timeout.

If a client times out while Polza continues processing, do not immediately submit the same request again. Instead, find the `gen_...` identifier in Polza’s generation history and pass it to `fetch_generation`, optionally specifying a destination path. This retrieves the existing result rather than starting another generation.

Reference images are first sent to Polza Storage through `POST /v1/storage/upload`. Storage metadata can be read and files can be deleted through the corresponding Polza endpoints. Local maintenance and output statistics are available through dedicated MCP tools.

## Setup and configuration

The server requires Python 3.11 or newer, uv, a Polza account, and `POLZA_AI_API_KEY`. Clone the repository, run `uv sync`, and register the executable with an MCP client using a configuration that calls `uv run gpt-image-2-polza-mcp-server`. The configuration should use an absolute working directory and can define a separate output directory.

`POLZA_BASE_URL` defaults to `https://polza.ai/api`. `IMAGE_OUTPUT_DIR` defaults to `~/gpt-image-2-images`. Other optional settings select the model tier, polling interval, polling timeout, external Polza user ID, and whether the response should contain the full image instead of a preview. Restart the MCP client after adding or changing its configuration.

## Tools and capabilities

The available MCP tools are:

- `generate_image` creates or edits an image and accepts prompts, modes, resolutions, aspect ratios, reference paths, output paths, and cache control.
- `fetch_generation` retrieves an existing generation by its Polza media ID.
- `upload_file` uploads a local reference image to Polza Storage.
- `show_output_stats` reports statistics for the local result directory.
- `maintenance` manages the local cache and metadata database.

## Limitations and notes

Generation may continue remotely after an MCP-side timeout, so retrying immediately can create and charge a second request. The documented setup uses a local stdio process launched with uv. Client support depends on an MCP client that can run this configuration.

_Full upstream README: https://allmcps.com/mcp/gpt-image-2-polza-mcp-server/readme_

