Image to SVG

v1.0.1
io.github.botmonster/image2svg-mcp Checked 3 days ago Published 6 months ago

MCP server that converts raster images (PNG/JPG/WEBP) to SVG vector format

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

convert_image_to_svg Convert Image To Svg

Convert a raster image (PNG, JPG, or WEBP) to SVG vector format. Accepts either base64-encoded image data or a URL. Returns the SVG content as a string. Adjust tracing parameters to control the fidelity and complexity of the output.

ParameterTypeDescription
color_precisionintegerNumber of significant bits for color quantization. Lower = fewer colors, simpler SVG. Default 6.
colormodestringColor mode: 'color' for full color, 'binary' for black/white line art
corner_thresholdintegerAngle threshold in degrees for detecting corners. Default 60.
filter_speckleintegerRemove speckles of this many pixels or fewer. Higher = cleaner but loses small details. Default 4.
hierarchicalstringLayer arrangement: 'stacked' (overlapping) or 'cutout' (non-overlapping)
image_base64Base64-encoded image data (PNG, JPG, or WEBP). Provide this OR image_url, not both.
image_urlURL to fetch the image from (PNG, JPG, or WEBP). Provide this OR image_base64, not both.
layer_differenceintegerColor difference threshold for merging layers. Higher = fewer layers, simpler SVG. Default 16.
length_thresholdnumberMinimum path segment length. Default 4.0.
max_iterationsintegerMaximum curve fitting iterations. Higher = more accurate but slower. Default 10.
modestringTracing mode: 'spline' (smooth curves), 'polygon' (straight edges), or 'none' (pixel-perfect)
path_precisionintegerDecimal precision for SVG path coordinates. Lower = smaller file size. Default 8.
splice_thresholdintegerAngle threshold for splicing splines. Default 45.