icon-mcp-server
v0.1.0An MCP server that generates software/app icons (PNG / ICO / ICNS) locally with Pillow.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_icon_styles
Return the available styles, shapes, and default palette values.
generate_icon
Render a single icon and save it to ``out_path``. Parameters ---------- out_path : str Destination file path. Extension determines the format unless ``fmt`` is given. Supported extensions: ``.png`` (default), ``.ico``, ``.icns``. text : str Short label drawn in the center (initials, single glyph, or emoji). style : str One of ``gradient`` / ``solid`` / ``outlined`` / ``shape`` / ``mono``. size : int Edge length in pixels, 16..2048. shape : str One of ``circle`` / ``square`` / ``rounded`` / ``triangle`` / ``hexagon`` /…
| Parameter | Type | Description |
|---|---|---|
out_path * | string | |
bg_color | string | |
bg_color_2 | ||
border_color | string | |
border_width | number | |
corner_radius | number | |
fg_color | string | |
fmt | ||
font_scale | number | |
gradient_angle | number | |
shadow | boolean | |
shape | string | |
size | integer | |
style | string | |
text | string |
generate_icon_set
Render a multi-resolution icon set: several PNGs + an aggregated ``.ico``. The largest PNG is drawn once at high resolution and downscaled with LANCZOS for every other size, so all outputs share the same design.
| Parameter | Type | Description |
|---|---|---|
out_dir * | string | |
base_name | string | |
bg_color | string | |
bg_color_2 | ||
border_color | string | |
border_width | number | |
corner_radius | number | |
fg_color | string | |
font_scale | number | |
gradient_angle | number | |
include_ico | boolean | |
png_sizes | ||
shadow | boolean | |
shape | string | |
style | string | |
text | string |
generate_icon_base64
Render an icon and return it as a base64-encoded PNG string (no disk write). Useful for previews inside MCP clients that cannot read local files.
| Parameter | Type | Description |
|---|---|---|
bg_color | string | |
bg_color_2 | ||
border_color | string | |
border_width | number | |
corner_radius | number | |
fg_color | string | |
font_scale | number | |
gradient_angle | number | |
shadow | boolean | |
shape | string | |
size | integer | |
style | string | |
text | string |