SuperAPI AI Directory

prompt-to-asset

MCP server that generates production-ready visual assets (app icons, favicons, OG images, logos, wordmarks) by routing prompts across 30+ image generation models. Zero API key required for first run via free tiers. `npm install -g prompt-to-asset`.

Open website

About this tool

prompt-to-asset is an MCP server plus CLI tool aimed at generating production-grade software visual assets for developers, such as logos, app icons, favicons, OG images, illustrations, splash screens, SVGs, and platform packaging files. It turns a single requirement description into multiple assets and prioritizes zero-cost paths.

Purpose The tool is aimed at developers who need to quickly produce visual assets for software projects. It treats the generation process as a routing and post-processing problem, rather than a pure prompt engineering problem. It can be used on the command line or in AI assistants, and supports free paths such as Cloudflare Workers AI, NVIDIA NIM, HF Inference, Stable Horde, Pollinations, free trials, and offline SVG.

Main capabilities

  • Free-first routing: prioritizes free API routes among more than 60 models, with paid providers as optional fallbacks.
  • Three execution modes: inline_svg (host LLM writes SVG), external_prompt_only (paste into any web UI), api (server calls free or paid providers). All three modes can be completed at zero cost.
  • Refuses incorrect operations: for example, does not generate wordmarks longer than 3 words via diffusion samplers, does not generate transparent PNGs via Imagen, and does not use negative_prompt on Flux.
  • Offline platform distribution: a single 1024² master image can generate iOS AppIconSet, Android adaptive and monochrome icons, PWA 192/512/512-maskable, favicon packages, visionOS parallax, and Flutter launcher, without network access.
  • Pre-output validation: performs checks on each output for dimensions, alpha presence, checkerboard FFT, safe-area bounding box, ΔE2000 palette drift, WCAG contrast, wordmark OCR Levenshtein, and more.
  • Sprite sheets and nine-patch: packs PNG frames into TexturePacker-compatible atlases (Phaser, PixiJS, Godot, Unity), and outputs nine-patch values, CSS border-image, and Android .9.png.
  • 25 MCP tools: covering asset inspection, brand initialization, prompt enhancement, generation, saving, and expExport, packaging, and other processes.

How to use Runtime requirement: Node ≥ 20.11 (24 recommended), supporting macOS, Linux, and Windows (WSL2 for --fix native dependencies).

Recommended path: Install in an AI assistant. Supports Cursor, Claude Code, VS Code, Windsurf, Codex, and Gemini CLI. After installation, simply describe your needs in chat, for example, "Create a transparent logo for a developer tool company named Forge, flat vector, warm orange duotone, neutral background." The assistant will call asset_doctor() to check available modes and providers, call asset_init_brand() to initialize the brand if necessary, and then asset_enhance_prompt() returns an AssetSpec containing the category, rewritten prompt, available modes, optional svg_brief, optional paste_targets, and routing trace. The assistant will offer three modes to choose from and execute the corresponding process.

Zero-key, zero-install path: a single curl or a single npx command can distribute offline to all platforms.

CLI path: Use a free API key for the best experience, start with a free token, paid keys are optional. Can be installed globally via npm install -g prompt-to-asset. Common commands include p2a doctor (check the environment), p2a pick (select routing), etc. All commands can be run via npx without installation.

Registration method: Can be registered universally via Smithery, or by using the install button for each IDE, or by downloading the .mcpb package, double-clicking to install, and then restarting. After registration, the assistant can use the complete set of asset_* tools.

Use cases

  • Generate platform icons and splash screens for iOS, Android, PWA, visionOS, etc. for apps.
  • Generate favicons, OG images, logos, wordmarks, and illustrations.
  • Batch-generate assets via CLI in CI, shell scripts, or non-MCP environments.
  • Complete asset generation and platform distribution via natural language in an AI assistant.

Limitations

  • Some models have limited capabilities: Imagen 3/4 and Gemini Flash Image cannot generate true RGBA PNGs; SDXL cannot spell more than about 8characters; only Recraft can output native SVG; Flux errors on negative_prompt.
  • Paid API pricing: Imagen 4 Fast $0.02, Standard $0.04, Ultra $0.06 per image; the Nano Banana series is a paid API and requires billing to be enabled in the GCP project. Free interactive image generation is available through the AI Studio Web UI or Gemini consumer apps (Basic 20/day, AI Plus 50/day, AI Pro 100/day, Ultra 1000/day).
  • Security policy: API keys are stored only in environment variables, not written to disk, not logged, and not echoed in MCP responses; path access has an allowlist; SVG is sanitized for XSS before being written; P2A_MAX_SPEND_USD_PER_RUN can be set to limit the cost of a single call; no telemetry.
  • Data integrity: assertDataIntegrityAtBoot() runs at startup; if a routing rule points to a model ID that does not exist in the registry, the server refuses to start.
  • Some models support paste only: midjourney-v6, midjourney-v7, firefly-3, and krea-image-1 are paste-only; if called in api mode, they fall back to the first API-accessible model in the chain and issue a warning; if the entire chain is paste-only, an ExternalPromptPlan is returned instead of an error.

The license is MIT.