LogoLab

io.github.Blaxzter由 GitHub 帳號 Blaxzter 發布v0.9.0更新於 Nov 15, 2026

Trace an image to a clean SVG and export a full app-icon set, locally, from your coding agent.

發布方自己的服務:Official Logo.dev MCP

已驗證STDIO僅桌面開發者工具媒體與設計

概覽

AI 產生的概覽

LogoLab 在本機把點陣圖描摹成乾淨可編輯的 SVG,並匯出完整的應用程式圖示集,可由編碼助理呼叫。

可以做什麼
  • 檢查圖片並預覽描摹器會做的判斷(彩色或單色、漸層、解析度),但不實際描摹
  • 把點陣圖向量化成可編輯的 SVG,產生真實的區域形狀與擬合曲線
  • 用 pwa、favicon、web、tauri、electron、android、ios、extension 等預設集,把既有 SVG 或 PNG 算繪成圖示集合
  • 一次呼叫完成整條流程:先描摹圖片,再匯出所需的圖示集
  • 把一張畫布上排成格狀的多個圖示切成各自獨立的描摹 SVG
適用情境
當一張圖片需要變成圖示時適用:模型剛產生的 PNG、使用者提供的標誌,或專案需要 favicon 以及 PWA、Tauri、Android、iOS 圖示集,並且要在小尺寸下依然清晰。
執行需求
作為本機 stdio 程序由助理啟動,通常透過 npx 執行,需要 Node 22.18 或更新版本。未宣告帳號、API 金鑰或環境變數。WebP 輸入需另外安裝選用的 sharp 解碼器;PNG、JPEG、GIF、BMP 與 SVG 可直接使用。相對路徑依助理的工作目錄解析。
安裝前請注意
它會讀寫你磁碟上的檔案,匯出可能覆寫或新增目標目錄中的檔案,執行前請確認輸出路徑。描摹與匯出都在本機進行、不上傳內容,但套件本身在執行時從 npm 取得。安裝選用的 sharp 解碼器會引入平台相關的二進位檔。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

logolab

Turn an image into a clean SVG and a complete app-icon set — from your coding agent, on your machine.

[npm] [Listed on mcpservers.org] [Blaxzter/LogoLab MCP server] [License: MIT]

An MCP server wrapping the vectorizer and icon exporter from LogoLab. A model generates a 1024px PNG with soft edges and a JPEG-ish halo; something has to turn that into a favicon that is still legible at 16px. Doing it by hand means a raster upscale and a blurry icon. This runs a real trace — region segmentation and curve fitting, not an image embed — so the result scales.

Nothing is uploaded. It is a stdio server: your agent starts it as a child process, it reads and writes files on your disk, and it never opens a socket.

Install

bash
claude mcp add logolab -- npx -y logolab       # Claude Code

Or let it write the config itself, in whichever project should get the icons:

bash
npx -y logolab install                   # .mcp.json here (Claude Code)npx -y logolab install --scope user      # every projectnpx -y logolab install --client cursor   # .cursor/mcp.jsonnpx -y logolab install --client vscode   # .vscode/mcp.jsonnpx -y logolab install --client print    # print the JSON, change nothing

Any other client wants the usual three facts:

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

Then ask your agent: "trace icon.png and export a PWA icon set into public/".

…or as a skill

No server at all: an Agent Skill that runs this package's CLI.

bash
/plugin install logolab --marketplace Blaxzter/LogoLab   # Claude Code pluginnpx -y logolab install --skill                           # .claude/skills/logolab/ (--scope user: every project)npx -y logolab install --skills-dir <dir>                # any agent that reads skills from a folder

The CLI it drives is usable by hand as well:

bash
npx -y logolab tools                      # the tools, or `tools <name>` for one tool's inputsnpx -y logolab call trace_icon image=icon.png strokes=true

Tools

ToolWhat it does
make_app_iconsimage → traced SVG → a full icon set. The one call that does the job.
trace_iconjust the vectorization: a clean, editable SVG.
export_iconsan existing SVG/PNG → PWA, favicon, Tauri, Electron, Android, iOS or extension icons.
split_icon_sheeta grid of icons on one canvas → one traced SVG per icon, icon-set ready: grid hint, names, normalize: 24, ink: "currentColor", transparent tiles.
inspect_iconwhat the tracer would decide, before it runs.

Presets: pwa, favicon, web, tauri, electron, android, ios, extension.

Try it without a client

bash
npx -y logolab try ./icon.png ./out

Notes

  • Node ≥ 22.18 is required.
  • WebP inputs need the optional sharp decoder, which is an optional peer and is not installed by default — it pulls a platform-specific libvips binary that dwarfs the rest of the server. Run npm install sharp if you need it, or convert to PNG. Every other format (PNG, JPEG, GIF, BMP, SVG) works out of the box.
  • Relative paths in a tool call resolve against your agent's working directory, not this package — so ./public/ means the project you are working on.

MIT © Frederic Abraham

來源:packages/mcp/README.md,提交 acc3f1d

工具

5

inspect_icon

Inspect an image before tracing

Report what an image is (size, format, transparency) and what the tracer WOULD do with it — colour vs mono, gradients on or off, the mono cut, the resolution it would trace at — without tracing. Fast. Use it to sanity-check a source, or to explain a choice before overriding it.

輸入參數modeimage必填detailstrokesfidelitylayeringdespecklegradientssmoothingflattenOntostrokesOnlyremoveBackground

trace_icon

Trace an image to clean SVG

Vectorize a raster image into a clean, editable SVG: colour regions become real shapes with fitted curves, not a traced outline of pixels. Decides colour vs mono, gradient fitting and trace resolution automatically (override with the options). Writes the .svg and reports path count, node count and the decisions it made.

輸入參數inkoutmodeimage必填insetquietdetailinlinesearchstrokesfidelitylayering另有 7 個

export_icons

Export an icon collection

Render a logo (SVG or raster) into a complete icon collection on disk. Presets: pwa public/ — favicon PNGs + favicon.ico, apple-touch-icon, 192/512 PWA icons, maskable pair, manifest.webmanifest and a <head> snippet. favicon public/ — the 16/32/48 PNGs, a real multi-size favicon.ico, apple-touch-icon and the <head> snippet. web public/ — the full catalogue: every favicon, apple, Android, maskable and Windows tile size the app offers. tauri src-tauri/icons — the exact set `tauri icon` generates: PNGs, icon.ico, icon.icns and the Windows Store logos. electron build/ — icon.icns (mac), icon.ico (win) and build/icons/*.png (linux), the layout electron-builder picks up by default. android res/mipmap-* — ic_launcher, ic_launcher_round and the adaptive ic_launcher_foreground at every density, plus the v26 XML and the 512 Play listing icon. ios AppIcon.appiconset — every iPhone/iPad size plus the 1024 marketing icon, with Contents.json. Forced opaque: iOS rejects alpha. extension icons/icon-16..128.png for a Chrome/Firefox MV3 extension, with the manifest fragment to paste in. An SVG source is rendered analytically at every size, so a 16px favicon is drawn, not downsampled. Maskable/adaptive icons get the platform safe zone automatically (Android keeps only the centre 66% circle). Also emits the real multi-image favicon.ico / .icns containers and the text assets each platform needs (webmanifest, <head> snippet, Contents.json, adaptive-icon XML).

輸入參數image必填sizesoutDir必填appNamepresetsstartUrlappearancethemeColorbackgroundColor

make_app_icons

Image → traced SVG → icon set

The whole pipeline in one call: trace the image to a clean SVG, then render that SVG into the icon collections asked for. This is the tool to use on an AI-generated icon. Presets: pwa public/ — favicon PNGs + favicon.ico, apple-touch-icon, 192/512 PWA icons, maskable pair, manifest.webmanifest and a <head> snippet. favicon public/ — the 16/32/48 PNGs, a real multi-size favicon.ico, apple-touch-icon and the <head> snippet. web public/ — the full catalogue: every favicon, apple, Android, maskable and Windows tile size the app offers. tauri src-tauri/icons — the exact set `tauri icon` generates: PNGs, icon.ico, icon.icns and the Windows Store logos. electron build/ — icon.icns (mac), icon.ico (win) and build/icons/*.png (linux), the layout electron-builder picks up by default. android res/mipmap-* — ic_launcher, ic_launcher_round and the adaptive ic_launcher_foreground at every density, plus the v26 XML and the 512 Play listing icon. ios AppIcon.appiconset — every iPhone/iPad size plus the 1024 marketing icon, with Contents.json. Forced opaque: iOS rejects alpha. extension icons/icon-16..128.png for a Chrome/Firefox MV3 extension, with the manifest fragment to paste in.

輸入參數modeimage必填sizesdetailoutDir必填searchappNamekeepSvgpresetsstrokesfidelitylayering另有 10 個

split_icon_sheet

Split a sheet of icons

Cut a CONTACT SHEET — a grid of many icons on one canvas, which is what image models usually return for "a set of icons" — into individual traced SVGs. Detects the tiles (grid or free layout; pass `grid` when you know the layout, which also keeps an icon drawn as separate pieces whole), crops each with the sheet's own paper colour, and traces each one with its own plan: a one-ink glyph goes mono, a shaded badge goes colour. Tiles come back transparent (removeBackground is ON here) and every mono tile of the same ink is painted in ONE ink, so a set stays consistent; `ink: "currentColor"` and `normalize: 24` give you icon-set-ready files in one call. Caption text under the icons is detected and reported, but not read (OCR is browser-only), so tiles are named by position — or by `names`, in reading order. Each run records what it wrote in logolab-sheet.json and removes what a previous run with the same prefix left behind.

輸入參數gapinkgridmodeinsetlimitnamesquietsheet必填detailoutDir必填prefix另有 12 個

版本歷史

7
  1. v0.9.0最新Nov 15, 2026
  2. v0.8.0Oct 25, 2026
  3. v0.7.0Oct 12, 2026
  4. v0.6.0Oct 12, 2026
  5. v0.5.0Oct 11, 2026
  6. v0.4.0Oct 6, 2026
  7. v0.3.0Oct 5, 2026

評分

已滿足適用檢查項的 90%

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

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

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

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

其他 Logo 整合