Skip to main content
Glama
Ideogram Asset Generation MCP

Ideogram Asset Generation MCP

by itsjoopark
README.md
# Ideogram Asset Generation MCP

An MCP server that turns a product's real packshots into brand-consistent, on-model imagery with
Ideogram: studio store-page shots and in-situ shots of the same model wearing the same product.

It is built for creative teams and their agents. A designer, or an agent acting for one, supplies
a product and a shot type. Everything else (the model, lighting, composition, fidelity rules)
comes from one brand file, so output stays consistent across products and over time.

## How it works

Product fidelity comes from reference images, not from describing the product in words. Each tool
sends Ideogram 4.6 a short instruction plus up to five images and says what each image is for.

| Step | Tool | Images sent | Result |
| --- | --- | --- | --- |
| 1 | `create_model` | none | Head-to-toe studio candidates of the brand's model |
| 2 | `shoot_store_page` | model, product front, product back | One studio shot per view |
| 3 | `shoot_in_situ` | approved look, product front | The same look in an outdoor scene |

Supporting tools: `add_product` registers a product from its packshots (local paths or https
URLs), `list_products` lists them, and `get_brand_system` returns the brand file.

Every generation is saved under `workspace/` straight away, because Ideogram's image links
expire. Each tool also returns the exact prompt it used and the QA checklist from the brand file.

## Setup

Requires Node 20.12 or newer and an [Ideogram developer API key](https://developer.ideogram.ai).

```bash
npm install
npm run build
cp .env.example .env   # then put your key in IDEOGRAM_API_KEY
```

The repo includes `.mcp.json`, so Claude Code picks the server up as `brand-assets` when opened
here. For another client, run `node dist/src/index.js` over stdio.

## A typical session

```text
create_model                       -> pick one file, e.g. workspace/models/model-...-2.png
add_product   name="Beta AR Jacket Women's" colour="Kasumi / Moonstone"
              front=<front packshot> back=<back packshot>
              fit="regular, with room for layers" hem="below the hip"
shoot_store_page  model_image=<chosen model> product=<slug> views=["front","three_quarter","back"]
shoot_in_situ     look_image=<approved front shot> product=<slug> scene="alpine_ridge"
```

Pass `dry_run: true` to any generating tool to get Ideogram's price quote without generating.

## The brand file

`brand/arcteryx.json` is the design system for the shoot. Edit it, not the code, to change:

- `model`: who the model is and what they wear before styling
- `studio`: backdrop, lighting, camera and styling for store-page shots
- `views`: the named poses `shoot_store_page` accepts
- `in_situ`: the outdoor look, plus named `scenes` (setting and action)
- `fidelity_rules` and `forbidden`: what must never change on the product
- `qa_checklist`: what to check before an image is used
- `generation`: Ideogram model, quality and output sizes

Point `BRAND_FILE` at another file to run a different brand with the same tools.

## Without an API key

`.claude/skills/arcteryx-shoot` runs the same chain through Ideogram's own MCP server
(`https://mcp.ideogram.ai/mcp`) for people who have that connected instead of an API key.

## Tests

```bash
npm test
```

The tests cover the prompt builders, the brand file, and the Ideogram client against a local
stand-in server. They do not call the real Ideogram API.

## Status

The request format follows Ideogram's v2 API reference for
`POST /v2/image/generate/ideogram-4-6`. It has been exercised end to end against a local
stand-in, but not yet against the live API. Run one `dry_run` call first to confirm your key and
the request are accepted.