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 集成