Python MCP server that wraps the Imagcon API so assistants can generate PWA icon sets (many sizes, maskable assets, and manifest.json) without opening the site.
- Python 3.11+
- An Imagcon API key starting with
ic_live_from imagcon.app/api-keys
pip install .
imagcon-mcp
# or
python -m imagcon_mcpSet IMAGCON_API_KEY or pass --api-key (see below).
With the key in the environment:
claude mcp add imagcon -- uvx imagcon-mcpOr pass the key on the command line:
claude mcp add imagcon -- uvx imagcon-mcp --api-key ic_live_...Ensure IMAGCON_API_KEY is set in the MCP process environment if you do not use --api-key.
generate_pwa_icons— Full flow: generate source image, resize to all PWA sizes, save the set, download the ZIP, extract tooutput_dir(default./public/icons).get_credit_balance— Returns remaining Imagcon credits.
Each successful generate_pwa_icons run uses credits on your Imagcon account.
| Source | Variable / flag |
|---|---|
| Environment | IMAGCON_API_KEY |
| CLI | --api-key (overrides the env var) |
If the key is missing, the process exits with an error pointing to imagcon.app/api-keys.
All requests go to https://imagcon.app (no other base URL is supported).