The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Agent Mosaic Skill listing page.
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).
Generated with the generate_lego_mosaic tool (3D render mode):
Square Tiles (square_1x1)
| Original Photo | 48x48 Preview | 64x64 Preview |
|---|---|---|
![]() | ![]() | ![]() |
Round Tiles (round_1x1)
| Original Photo | 48x48 Preview | 64x64 Preview |
|---|---|---|
![]() | ![]() | ![]() |
For more case studies and mosaic examples, check out our Pinterest Showcase.
Claude Desktop (claude_desktop_config.json):
Cursor (.cursor/mcp.json):
generate_lego_mosaic| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
imagePath | string | Yes | — | Absolute path to a local image |
columns | number | No | 48 | Preview width in studs (max 64) |
rows | number | No | 48 | Preview height in studs (max 64) |
materialMode | string | No | square_1x1 | square_1x1 or round_1x1 |
renderMode | string | No | 3D | Render style |
removeBackground | boolean | No | false | Clean up white/transparent backgrounds |
Returns: a local watermarked PNG preview + a link to unlock the full project at bmbrick.com.
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.
SKILL.md for seamless agent workflow integrationDeep technical reference for the color quantization pipeline that powers this skill and bmbrick.com:
@bmbrick/agent-mosaic-skillIf you were using the old name, the migration is one search/replace:
@bmbrick/agent-mosaic-skill → @bmbrick/photo-to-lego-mosaic-skillgenerate_bmbrick_mosaic → generate_lego_mosaicagent-mosaic-skill → photo-to-lego-mosaic-skillThe tool parameters (imagePath, columns, rows, etc.) and return shape are unchanged.
Dual-licensed:
skill/ directory, agent integration surfacedist/ engine files: free to use and distribute as-is, but no de-obfuscation, reverse engineering, or redistribution of modified versionsSee LICENSE for full terms.