retroprint-mcp

v0.1.2
retroprint-mcp Checked 3 days ago Published 2 months ago

MCP server for RETROPRINT — turn a photo into a riso-style print from any MCP client

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_presets List design presets

List RETROPRINT's built-in design presets: id, name, and the ink colors each uses (as hex chips). Pass a preset id to create_print to use one.

create_print Create a retro print

Turn a photo into a riso-style halftone print and save it to disk. With no design options the server designs the print from the photo itself — the best first call. To steer it: `preset` (see list_presets) OR `state` (a design document — call get_design_guide for the schema; state replaces the preset, never combine them), plus `seed`/`width`/`format` on top. Prints ≤ ~1.5 MB come back inline so you can look at the result: iterate at width 800 (cheap, 1 unit), then render the final at 2000–2400. Costs paid units by output size; same photo + design + seed reproduces the same print.

ParameterTypeDescription
formatstringDefault png. webp is lossless; pdf is a one-page document at 300 dpi for a print shop. png and pdf carry the provenance mark.
image_pathstringAbsolute path to the photo on disk (png/jpeg/webp).
image_urlstringOr an https URL to fetch the photo from.
output_pathstringWhere to save the print. A directory keeps the server's filename (timestamp + seed); default is the current working directory.
presetstringA preset id from list_presets. Ignored if state is given.
seednumberRe-rolls texture/grain/warp; same seed = same print.
stateobjectFull or partial DesignState JSON — see get_design_guide. Replaces the whole design.
widthintegerOutput width in px (default 1600). Height follows the sheet aspect. Use ~800 for drafts.

get_print_job Collect a print job

Check a print job created by create_print and, when it is done, download the print to disk. Only needed if create_print returned a job id instead of a finished print.

ParameterTypeDescription
job_id *stringThe job id create_print returned.
output_pathstringWhere to save the print; same rules as create_print.

get_design_guide Design guide

The DesignState schema and design reference for create_print's `state` option: every field with defaults and valid ranges, the Riso ink catalog, separation modes, paper stocks, sheet aspects, and how preset/state/seed combine. Read this before writing a custom state.