LogoLab

io.github.Blaxzterv0.3.0更新于 Oct 5, 2026

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

已验证STDIO仅桌面Developer ToolsMedia & Design

概览

AI 生成的概览

让编码代理在本地把位图描摹成干净的 SVG,并导出完整的应用图标集。

功能
LogoLab 把矢量化器和图标导出器封装成本地 stdio MCP 服务器。主要工具 make_app_icons 将图像描摹为 SVG 并生成整套图标;trace_icon 只做矢量化,export_icons 把已有的 SVG 或 PNG 转换为 PWA、favicon、Tauri、Electron、Android、iOS 或扩展图标,split_icon_sheet 把一张画布上的图标网格拆成多个 SVG,inspect_icon 可在运行前预览描摹器的判断。预设包括 pwa、favicon、web、tauri、electron、android、ios 和 extension。
适用场景
当生成或位图形式的标志需要变成清晰可缩放的 SVG,并配套生成应用或 favicon 资源时适用,无需离开代理会话。适合需要从一张源图产出多平台图标集的项目,也可把单张图标表拆分为独立文件。
运行要求
作为本地进程由代理启动,通过 npx 从 npm 包 logolab 安装,需要 Node.js 22.18 或更高版本。未声明账号、API 密钥、环境变量或请求头。WebP 输入还需要可选的 sharp 解码器,默认不安装。相对路径按代理的工作目录解析。
安装前请注意
服务器会读写本地磁盘文件,工具调用可能在工作目录中创建或覆盖文件,运行导出前应确认目标路径。它是 stdio 服务器,不打开套接字也不上传内容,图像数据留在本地。安装可选的 sharp 解码器会引入平台相关的 libvips 二进制文件。

安装

在 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.

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/".

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.
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,提交 ac9c405

工具

0
工具元数据尚未被收录。

版本历史

1
  1. v0.3.0最新Oct 5, 2026