svg-studio-mcp-server

v1.0.1
svg-studio-mcp-server Checked 2 days ago Published 22 days ago

MCP server for high-quality image vectorization using svg-studio's tuned settings

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

vectorize_multicolour_image

Trace flat coloured artwork into a compact SVG with explicit palette fills. Quantises colours and traces overlapping, simplified colour layers. Alpha is a binary cutout. Can remove edge-connected near-white background while preserving enclosed white details.

ParameterTypeDescription
image_path *stringPath to the raster artwork.
coloursintegerMaximum palette size.
output_pathstringOptional path to save the SVG.
remove_backgroundbooleanRemove near-white background connected to the canvas edge.

vectorize_image

Convert a raster image (PNG, JPG, WebP, etc.) to high-quality SVG vector. Uses carefully tuned settings: proper luminance calculation, alpha handling, 10px padding for clean edges, optimized Potrace parameters (alphamax=1.0 for sharp corners, turdsize=2 for clean output). Returns theme-aware SVG with currentColor fill.

ParameterTypeDescription
image_path *stringPath to the input raster image file (absolute or relative)
output_pathstringOptional: Path where to save the SVG file. If not provided, returns SVG content only.
thresholdnumberThreshold percentage for black/white conversion (0-100). Default: 60. Lower = more black, higher = more white.

batch_vectorize

Vectorize multiple images at once with the same quality settings. Processes all images in parallel for efficiency. Returns array of results with SVG content and/or error messages.

ParameterTypeDescription
image_paths *arrayArray of paths to input raster image files
output_dirstringOptional: Directory where to save SVG files. If not provided, returns SVG content only.
thresholdnumberThreshold percentage for all images (0-100). Default: 60.