Pic2Vector

io.github.pic2vector由 GitHub 帳號 pic2vector 發布v1.0.1更新於 Oct 29, 2026

MCP server: convert PNG/JPG to SVG from Claude, Cursor & any MCP client. By Pic2Vector.

已驗證STDIO僅桌面檔案與儲存媒體與設計

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理用 vtracer 引擎把本機路徑或網址的 PNG、JPG 圖片轉成可縮放的 SVG。

可以做什麼
  • 把 PNG 或 JPG 轉成 SVG,可選彩色模式(標誌、插畫)或黑白模式(線稿、簽名、掃描件)
  • 從本機絕對路徑或 http/https 網址讀取來源圖片
  • 指定 SVG 的寫入位置,或預設寫到來源檔同目錄、網址輸入則寫到目前工作目錄
  • 回傳一行摘要,輸出不超過 100KB 時也會回傳 SVG 文字
適用情境
適合希望助理在對話中直接把標誌、插畫、簽名或掃描件轉成向量檔,且單次描摹效果已夠用的情況。若需要超取樣、漸層擬合、色調分離、圖層編輯或其他格式,README 建議改用線上轉換器。
執行需求
需要 Node.js 18 或更新版本,透過 stdio 在本機執行,例如以 npx 啟動。不需帳號、API 金鑰、環境變數或請求標頭。遠端網址須不超過 10MB、15 秒內完成,且不能指向 localhost 或私有 IP。
安裝前請注意
此工具會把 SVG 寫入磁碟,預設寫在來源圖片同目錄或目前工作目錄,執行前請確認輸出路徑。網址輸入會先下載再描摹,只傳入你願意抓取的連結。README 表示不會上傳任何內容,也不傳送遙測資料。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Pic2Vector,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

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):

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

Claude Code

bash
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):

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

VS Code

Create .vscode/mcp.json:

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.

text
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

bash
npm installnpm run buildnpm testnode 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)

來源:README.md,提交 11331a0

工具

1

vectorize_image

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

輸入參數modeinput必填output_path

版本歷史

1
  1. v1.0.1最新Oct 23, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分