Agent Mosaic Skill

io.github.Able-rip由 GitHub 账号 Able-rip 发布v1.0.2更新于 Nov 10, 2026

Convert photos to LEGO-style brick mosaic previews with AI-powered color quantization.

已验证STDIO仅桌面媒体与设计AI 与机器学习

概览

AI 生成的概览

本地 MCP 服务器,用色彩量化和 3D 渲染把本机照片转换成乐高风格积木马赛克预览图。

可以做什么
  • 根据本地图片生成积木马赛克预览,可指定以凸点计的宽高(最大 64)以及方形或圆形颗粒
  • 渲染前可选择清理白色或透明背景
  • 可选择渲染风格,默认使用 3D
  • 返回本地带水印的 PNG 预览图,以及解锁完整项目的链接
适用场景
适合想快速把照片做成乐高风格马赛克效果图、在采购积木或购买完整方案前先看设计效果的场景。
运行要求
通过 npx 作为本地进程运行,需要机器上安装 Node.js。图片需以本地绝对路径提供。未声明需要账号、API 密钥或环境变量。
安装前请注意
返回的预览图带水印;无水印高清图、逐块拼装 PDF 说明书、零件清单和摆放矩阵只能通过厂商网站获取,可能涉及付费。README 说明该包已改名,旧包名和旧工具名已弃用。README 称图片处理全部在本机完成。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Agent Mosaic Skill,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

BMBrick Photo-to-LEGO-Mosaic Skill

[npm version] [License]

Convert any local photo into a LEGO-style brick mosaic preview — directly from your AI agent.

@bmbrick/photo-to-lego-mosaic-skill is an MCP server that lets Claude, Cursor, Windsurf, and other AI agents transform local images into high-fidelity 3D brick mosaics using the same canonical engine as bmbrick.com.

Renamed from @bmbrick/agent-mosaic-skill (the old name still works but is deprecated — please migrate to the new name for future updates).

Visual Previews

Generated with the generate_lego_mosaic tool (3D render mode):

Square Tiles (square_1x1)

Original Photo48x48 Preview64x64 Preview
[Original][48x48][64x64]

Round Tiles (round_1x1)

Original Photo48x48 Preview64x64 Preview
[Original][48x48 Round][64x64 Round]

For more case studies and mosaic examples, check out our Pinterest Showcase.

Quick Start

bash
npx -y @bmbrick/photo-to-lego-mosaic-skill

MCP Client Configuration

Claude Desktop (claude_desktop_config.json):

json
{  "mcpServers": {    "lego-mosaic": {      "command": "npx",      "args": ["-y", "@bmbrick/photo-to-lego-mosaic-skill"]    }  }}

Cursor (.cursor/mcp.json):

json
{  "mcpServers": {    "lego-mosaic": {      "command": "npx",      "args": ["-y", "@bmbrick/photo-to-lego-mosaic-skill"]    }  }}

Tool: generate_lego_mosaic

ParameterTypeRequiredDefaultDescription
imagePathstringYes—Absolute path to a local image
columnsnumberNo48Preview width in studs (max 64)
rowsnumberNo48Preview height in studs (max 64)
materialModestringNosquare_1x1square_1x1 or round_1x1
renderModestringNo3DRender style
removeBackgroundbooleanNofalseClean up white/transparent backgrounds

Returns: a local watermarked PNG preview + a link to unlock the full project at bmbrick.com.

Unlock Full Project

The preview is watermarked and intended for creative exploration. To get the complete deliverables — HD unwatermarked mosaic, brick-by-brick PDF instructions, parts list with ordering links, and CSV/XML placement matrices — visit bmbrick.com.

Features

  • Same Engine as bmbrick.com — canonical color science, quantization, and 3D rendering pipeline
  • Local & Private — all processing happens on your machine via Node.js
  • Agent-Ready — ships with a SKILL.md for seamless agent workflow integration
  • 3D Render Mode — InstancedMesh PBR rendering with realistic brick studs

Engineering Docs

Deep technical reference for the color quantization pipeline that powers this skill and bmbrick.com:

  • Color quantization pipeline: principles, history, and lessons — current architecture, architectural decisions, verified principles, failed experiments from 25+ versions of iteration, and parameter sensitivity reference.

Migrating from @bmbrick/agent-mosaic-skill

If you were using the old name, the migration is one search/replace:

  1. Package name: @bmbrick/agent-mosaic-skill → @bmbrick/photo-to-lego-mosaic-skill
  2. MCP tool name (in your agent's tool list): generate_bmbrick_mosaic → generate_lego_mosaic
  3. Binary name (rare): agent-mosaic-skill → photo-to-lego-mosaic-skill

The tool parameters (imagePath, columns, rows, etc.) and return shape are unchanged.

Development

License

Dual-licensed:

  • MIT — MCP wrapper, skill/ directory, agent integration surface
  • Restricted — dist/ engine files: free to use and distribute as-is, but no de-obfuscation, reverse engineering, or redistribution of modified versions

See LICENSE for full terms.

来源:README.md,提交 43e0b59

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.2最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。