Agent Mosaic Skill

io.github.Able-ripPublished by GitHub account Able-ripv1.0.2Updated Nov 10, 2026

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

VerifiedSTDIODesktop onlyMedia & DesignAI & ML

Overview

AI-generated overview

Local MCP server that turns a photo on your machine into a LEGO-style brick mosaic preview using color quantization and 3D rendering.

What you can do
  • Generate a brick mosaic preview from a local image, choosing width and height in studs (up to 64) and square or round tiles
  • Optionally clean up white or transparent backgrounds before rendering
  • Choose a render style, with 3D as the default
  • Return a local watermarked PNG preview plus a link to unlock the full project
When to use it
Useful when you want a quick visual mock-up of a photo as a LEGO-style mosaic, for example to explore a design idea before ordering bricks or buying the full project.
Requirements
Runs as a local process via npx, so Node.js is needed on the machine. The image must be given as an absolute local file path. No accounts, API keys or environment variables are declared.
Before you install
The returned preview is watermarked; unwatermarked HD output, PDF instructions, parts lists and placement matrices are only available through the vendor's website, which may involve a purchase. The README notes the package was renamed, so the old package and tool names are deprecated. Images are processed locally according to the README.

Installation

In SourceWeft

  1. Open Agent Mosaic Skill in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

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.

Source: README.md at commit 43e0b59

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v1.0.2LatestSep 16, 2026

Score

40% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.