svg-studio-mcp-server
v1.0.1MCP 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.
| Parameter | Type | Description |
|---|---|---|
image_path * | string | Path to the raster artwork. |
colours | integer | Maximum palette size. |
output_path | string | Optional path to save the SVG. |
remove_background | boolean | Remove 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.
| Parameter | Type | Description |
|---|---|---|
image_path * | string | Path to the input raster image file (absolute or relative) |
output_path | string | Optional: Path where to save the SVG file. If not provided, returns SVG content only. |
threshold | number | Threshold 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.
| Parameter | Type | Description |
|---|---|---|
image_paths * | array | Array of paths to input raster image files |
output_dir | string | Optional: Directory where to save SVG files. If not provided, returns SVG content only. |
threshold | number | Threshold percentage for all images (0-100). Default: 60. |