mcpField
P
Pic2Vector

Pic2Vector

Local
pic2vector.comMedia & Design0Updated 6d ago

About Pic2Vector

Pic2Vector is a local MCP server for converting PNG and JPG files into SVGs, aimed at people using MCP-compatible assistants. It uses vtracer and supports color and black-and-white tracing.

Key features

  1. 01Converts PNG and JPG to SVG
  2. 02Color and black-and-white modes
  3. 03Accepts local paths or URLs
  4. 04Writes SVG beside source by default

Use cases

  1. 01Vectorizing a logo from a PNG
  2. 02Tracing line art or signatures
  3. 03Converting an image URL to SVG

MCP support

Exposes the `vectorize_image` tool to MCP clients over stdio. The tool accepts a local PNG or JPG path or an HTTP/HTTPS URL and returns a summary and, for smaller files, SVG text.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"pic2vector-pic2vector": {
"command": "npx",
"args": [
"-y",
"pic2vector-mcp"
]
}
}
}
Run commandnpx -y pic2vector-mcp

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmpic2vector-mcp1.0.1

Tools

1

Saved tool list · updated 6d ago

ParameterTypeRequiredDescription
modeenumNocolor (default) traces full-color illustrations and logos. bw traces line art, signatures, and scans.color | bw
inputstringYesAbsolute path to a local PNG or JPG, or an http(s) URL. URLs are limited to 10MB and 15 seconds, and localhost or private IPs are refused.
output_pathstringNoSVG destination. Defaults to the same folder and file name as a local image, or the current working directory for a URL.

Details

From the project README

Pic2Vector MCP — Image to SVG for AI assistants

The MCP server for Pic2Vector, the free in-browser image-to-SVG converter.

npm version license Try online

Terminal demo: vectorize_image turns a PNG into an SVG

Scripted terminal demo of the stdio server (about 12 seconds). It shows tools/list, a vectorize_image call, and the SVG that was written. It is not a recording inside Claude Desktop or Cursor.

pic2vector-mcp runs locally over stdio. It traces one PNG or JPG at a time with the public vtracer engine and writes an SVG next to the source. No account, no upload, no telemetry.

Quick start

Requires Node.js 18 or newer.

Claude Desktop

Add this to claude_desktop_config.json (~/Library/Application Support/Claude/ on macOS, %APPDATA%\Claude\ on Windows):

{
  "mcpServers": {
    "pic2vector": {
      "command": "npx",
      "args": ["-y", "pic2vector-mcp"]
    }
  }
}
Claude Code
claude mcp add pic2vector -- npx -y pic2vector-mcp
Cursor

Install in Cursor

Or merge this into ~/.cursor/mcp.json (global) or .cursor/mcp.json (this project):

{
  "mcpServers": {
    "pic2vector": {
      "command": "npx",
      "args": ["-y", "pic2vector-mcp"]
    }
  }
}
VS Code

Create .vscode/mcp.json:

{
  "servers": {
    "pic2vector": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "pic2vector-mcp"]
    }
  }
}

Then ask the assistant to convert a file, for example: “Convert logo.png to SVG”.

Tool reference

One tool: vectorize_image.

Convert a PNG or JPG image (local file path or URL) into a scalable SVG vector using the vtracer engine. Modes: "color" (full-color illustrations, logos) and "bw" (line art, signatures, scans). Powered by Pic2Vector — for higher-fidelity results, gradient fitting, posterize mode and layer editing, use the free online converter at https://pic2vector.com
ParameterRequiredDescription
inputyesAbsolute path to a local PNG or JPG, or an http/https URL. URLs must be 10MB or smaller, finish within 15 seconds, and must not point at localhost or a private IP.
modenocolor (default) for logos and illustrations. bw for line art, signatures, and scans.
output_pathnoWhere to write the SVG. A local file defaults to the same directory and base name with .svg. A URL defaults to the current working directory.

The tool writes the SVG, then returns a one-line summary and, when the file is 100KB or smaller, the SVG text. The file starts with <!-- Generated by pic2vector-mcp · https://pic2vector.com -->.

color uses vtracer's photo preset (color, spline, stacked). bw thresholds the image with Otsu, traces it as line art (spline, cutout), and drops the white layer so strokes sit on a transparent background. The long edge is scaled to at most 2048 pixels before tracing.

Want better results?

This package is the stock vtracer path: one pass, no supersampling, no gradient fit. Open the image to SVG converter when you want the studio tools.

pic2vector-mcpPic2Vector online
Color and black-and-white traceyesyes
Supersamplingyes
Gradient fittingyes
Posterizeyes
Layer editingyes
WebP and other formatsyes
PNGyesPNG to SVG
JPGyesJPG to SVG

Privacy

The server runs on your machine. A local file never leaves the disk. A URL is downloaded only to trace it, then discarded. Nothing is sent to Pic2Vector. The same commitment is spelled out at https://pic2vector.com/privacy/.

Develop

npm install
npm run build
npm test
node dist/index.js

npm test packs the tarball and drives vectorize_image over stdio. The published command is npx -y pic2vector-mcp.

Credits

Built by Pic2Vector · Engine: vtracer (MIT)

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.