Skip to main content
Glama

Related MCP server: image-mcp-server

Highlights

  • Checker — six Amazon main-image rules: resolution, square ratio, format / 10 MB, pure white RGB 255, 255, 255, 85% product fill, and edges.

  • Fixer — replace a light or off-white backdrop with RGB 255, reframe to a 2000×2000 canvas, and return a fresh report.

  • Studio (optional extra) — inspect a source photo, cut the product out with a local ONNX model, and compose main, infographic, dimensions, detail, angle, in-box, and comparison images. Lifestyle shots are out of scope.

  • No cloud generation — no generative-model API key, no database, no billing. Runs as an Agent Skill plus an MCP server.

The Agent Skill at skills/amazon-listing-kit/SKILL.md is written for an operator agent: intake and fact-extraction (so typography slots are not invented), a four-marketplace compliance matrix, a 5-stage diagnose → cutout → repair → render → pre-upload workflow, and a troubleshooting playbook. Slot-by-slot copy budgets and buyer-objection layouts live in skills/amazon-listing-kit/references/amazon-slot-playbook.md and are loaded on demand.

Install

Agent Skill

npx skills add blockCloth/amazon-listing-kit

MCP Server (checker + fixer)

uvx --from git+https://github.com/blockCloth/amazon-listing-kit amazon-listing-kit

With the studio extra (cutout + listing-set rendering):

uvx --from 'amazon-listing-kit[studio] @ git+https://github.com/blockCloth/amazon-listing-kit' amazon-listing-kit

Or install from a local checkout:

pip install -e .
pip install -e '.[studio]'   # cutout + listing set

Python 3.10+ is required. Base dependencies are fastmcp, pillow, and pydantic. The [studio] extra adds numpy and onnxruntime.

MCP client config

Add the server to your MCP client (Claude Desktop, Cursor, …):

{
  "mcpServers": {
    "amazon-listing-kit": {
      "command": "uvx",
      "args": [
        "--from",
        "amazon-listing-kit[studio] @ git+https://github.com/blockCloth/amazon-listing-kit",
        "amazon-listing-kit"
      ]
    }
  }
}

Drop the [studio] extra from the --from argument if you only need check_main_image and fix_main_image.

MCP Tools

Tool

Extra

What it does

check_main_image(image_path, platform="amazon")

base

Six-check Amazon main-image report (pass / warn / fail).

fix_main_image(image_path, output_path, size=2000, target_fill=0.88)

base

Whiten the backdrop, reframe to a square canvas, re-check.

inspect_and_cutout(image_path, output_path=None, model="isnet")

[studio]

Inspect resolution / blur / crop and write an RGBA cutout via ISNet or BiRefNet.

render_listing_set(cutout_path, output_dir, product_name, prefix="ASIN", slots=None, facts=None, platform="amazon")

[studio]

Render the listing set as {prefix}.{code}.jpg (or the platform's naming convention). No LLM key.

Calling a studio tool without the extra raises ImportError and tells you to install amazon-listing-kit[studio].

Python Quickstart

from amazon_listing_kit.check import check_main_image
from amazon_listing_kit.fix import fix_main_image

report = check_main_image("mug.jpg")
print(report["status"], report["checks"])

fixed = fix_main_image("mug.jpg", "mug.MAIN.jpg", size=2000)
print(fixed["check"]["status"], fixed["output_path"])

Studio (needs amazon-listing-kit[studio]):

from amazon_listing_kit.studio.listing import inspect_and_cutout, render_listing_set

cut = inspect_and_cutout("mug.jpg", "mug-cutout.png", model="isnet")
result = render_listing_set(
    cut["output_path"],
    "out/",
    product_name="Sunrise Mug",
    prefix="B0EXAMPLE",
    facts={
        "sellingPoints": [
            {"title": "Hand-glazed ceramic", "detail": "Unique glaze on every mug"},
            {"title": "12 oz capacity", "detail": "Comfortable everyday size"},
        ],
        "dimensions": {"width": 4.7, "height": 3.3, "length": 3.5, "unit": "in"},
        "inBox": [{"label": "Ceramic mug", "quantity": 1}],
        "comparison": {
            "rows": [
                {"feature": "Hand-glazed finish", "ours": True, "others": False},
            ]
        },
    },
)
print(result["files"])

render_listing_set can also take a ready-made RGBA cutout, so you can skip ONNX if you already have a transparent PNG.

Supported Marketplaces

Amazon MAIN

Shopify

Etsy

eBay

Recommended canvas

2000×2000

2048×2048, consistent framing across the catalogue

2000 px on the shortest side; this kit uses 2000×2500

1600×1600 (longest side)

Hard floor

1000 px longest side (zoom)

—

—

500 px longest side

Background

Pure white RGB 255, 255, 255

Any, keep it consistent

Context is welcome; white not required

Plain light preferred, not required

Product fill

≥ 85% of the frame (fixer targets 0.88)

Keep fill consistent

Compose for the 4:5 search crop — keep the product inside the vertical centre

Not mandated

Format / size cap

JPEG, PNG, TIFF, GIF / 10 MB

JPEG, PNG, WebP, HEIC, GIF / 20 MB

JPEG, PNG, GIF / 20 MB

JPEG, PNG, TIFF, BMP, GIF / 12 MB

File names

{prefix}.{code}.jpg (MAIN, PT01, PT03, PT04, PT05, PT07, PT08)

{prefix}-{index}.jpg

{prefix}-{index}.jpg

{prefix}-{index}.jpg

Amazon files are named {prefix}.{code}.jpg. Shopify uses {prefix}-{index}.jpg on a 2048×2048 canvas. Etsy uses a 2000×2500 (4:5) canvas. eBay uses 1600×1600 and a 12 MB cap.

Model Cache & Fonts

The first inspect_and_cutout run downloads an Apache-2.0 ISNet (~180 MB) or MIT BiRefNet (~220 MB) model into ~/.cache/amazon-listing-kit/models/. Set AMAZON_LISTING_KIT_MODEL_DIR to override the cache, or AMAZON_LISTING_KIT_AUTO_DOWNLOAD=0 to disable downloads.

Inter Variable (SIL Open Font License) is bundled and used for typography. Noto Sans SC is downloaded from the official notofonts/noto-cjk repository on first CJK use into ~/.cache/amazon-listing-kit/fonts/. See THIRD_PARTY_NOTICES.md.

License

MIT.

Available Tools

4 tools
check_main_imageCheck Main ImageA

Check a product photo against Amazon main-image rules.

Measures six things: longest side (1,000 px min, 2,000 recommended), square ratio, file format and 10 MB limit, pure white RGB 255, 255, 255 background, 85% product fill, and whether the product is cropped at the edge. The photo is read from disk only; nothing is uploaded. Other platforms still get the Amazon report plus a short note, because those marketplaces are more relaxed.

Inputs: image_path (required), platform. Returns: object

fix_main_imageFix Main ImageA

Replace the backdrop with pure white, reframe the product, and re-check.

Writes a square JPEG (default 2000×2000) with the product filling about 88% of the frame on RGB 255, 255, 255, then returns a fresh compliance report for the written file. Works on light-grey or off-white backdrops; busy scenes may still need a manual cutout.

Inputs: image_path (required), output_path (required), size, target_fill. Returns: object

inspect_and_cutoutInspect And CutoutA

Inspect a source photo and write an RGBA cutout using a local ONNX model.

Requires the studio extra: pip install 'amazon-listing-kit[studio]'. model is isnet (default, Apache-2.0, ~180 MB, downloaded on first use), birefnet (MIT, ~220 MB), or fused (both). The inspection flags low resolution, blur, a product cut off at the edge, or a product that is too small in the frame. The cutout is written as a transparent PNG.

Inputs: image_path (required), model, output_path. Returns: object

render_listing_setRender Listing SetA

Render a marketplace listing set from one product cutout. No LLM API key.

Requires the studio extra: pip install 'amazon-listing-kit[studio]'. By default renders Amazon slots MAIN, PT01 (infographic), PT03 (dimensions), PT04 (detail), PT05 (angle), PT07 (in-box) and PT08 (comparison), named {prefix}.{code}.jpg. Lifestyle slots are skipped — they need a generative model. Pass facts with sellingPoints, dimensions, inBox and comparison rows; slots that are missing copy are skipped rather than invented. platform may be amazon, shopify, etsy or ebay.

Inputs: output_dir (required), cutout_path (required), product_name (required), facts, +3 more. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 4 tools

    Disambiguation4/5

    The four tools map to distinct stages: check (read-only validation), fix (write/repair), cutout (extraction), and render (set generation). The only mild overlap is that fix_main_image also returns a compliance report, which could tempt an agent to use it instead of check_main_image for validation, but the write-vs-read distinction is clear.

    Naming Consistency4/5

    All names use snake_case and begin with a verb, making them predictable. inspect_and_cutout bundles two actions into one name, a minor inconsistency compared to the single verb_noun pattern of the others, but overall readable.

    Tool Count5/5

    Four tools is well-scoped for an image-preparation kit; each tool covers a necessary step (check, fix, cutout, render) with no redundant entries. The count sits comfortably in the recommended range.

    Completeness4/5

    The surface covers the core image lifecycle: validation, repair, cutout extraction, and multi-slot rendering. Gaps include no tool for lifestyle image generation (acknowledged as out of scope) and no batch or multi-image validation, but these are minor for the stated purpose.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers