Convert photos to LEGO-style brick mosaic previews with AI-powered color quantization.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
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.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/agent-mosaic-skill)<a href="https://allmcps.com/mcp/agent-mosaic-skill"><img src="https://allmcps.com/api/badge/agent-mosaic-skill?style=directory" alt="Agent Mosaic Skill on AllMCPs" /></a>