Turns local photos into LEGO brick mosaics using the same color quantization and 3D rendering engine that powers bmbrick.com. Exposes a single generate_lego_mosaic tool that takes an absolute image path and returns a watermarked PNG preview with configurable dimensions (up to 64×64 studs), material modes (square or round 1×1 tiles), and optional background removal. Processing happens entirely on your machine via Node.js. The output is meant for creative exploration, with a link to unlock full build instructions, parts lists, and unwatermarked files at bmbrick.com. Good fit if you want Claude or Cursor to prototype brick art from photos without leaving your filesystem or uploading images to a service.
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.
npx -y @bmbrick/photo-to-lego-mosaic-skill
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"lego-mosaic": {
"command": "npx",
"args": ["-y", "@bmbrick/photo-to-lego-mosaic-skill"]
}
}
}
Cursor (.cursor/mcp.json):
{
"mcpServers": {
"lego-mosaic": {
"command": "npx",
"args": ["-y", "@bmbrick/photo-to-lego-mosaic-skill"]
}
}
}
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.
io.github.ericm1018/skillfm-llm-cost-optimizer-openai-anthropic-usage
io.github.mikerawsonnz/llm-orchestration-agent
io.github.mikerawsonnz/authenticated-llm-agent
labforgedev/copilot-memory-mcp
csoai-org/agent-prompt-injection-firewall-mcp
io.github.mikerawsonnz/authenticated-multi-llm-agent