agent-mosaic-skill
BMBrick Photo-to-LEGO-Mosaic Skill
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 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.
Related MCP server: img-convert MCP Server
Quick Start
npx -y @bmbrick/photo-to-lego-mosaic-skillMCP Client Configuration
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"]
}
}
}Tool: generate_lego_mosaic
Parameter | Type | Required | Default | Description |
| string | Yes | — | Absolute path to a local image |
| number | No | 48 | Preview width in studs (max 64) |
| number | No | 48 | Preview height in studs (max 64) |
| string | No |
|
|
| string | No |
| Render style |
| boolean | No | false | Clean 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.mdfor seamless agent workflow integration3D 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:
Package name:
@bmbrick/agent-mosaic-skill→@bmbrick/photo-to-lego-mosaic-skillMCP tool name (in your agent's tool list):
generate_bmbrick_mosaic→generate_lego_mosaicBinary 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 surfaceRestricted —
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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceIdentifies LEGO parts, sets, and minifigures from local image files using the Brickognize API. It provides specialized tools for specific item recognition and integrates LEGO identification capabilities into MCP-enabled environments.5119MIT
- Alicense-qualityDmaintenanceProvides AI agents with tools to convert images between formats and inspect image metadata, enabling seamless image processing within agent workflows.93MIT
- Alicense-qualityCmaintenanceA Three.js MCP server for designing 3D brick constructions, enabling AI or interactive placement of bricks through natural language and providing tools to manage and export scenes.21MIT
- Alicense-qualityDmaintenanceEnables AI agents to perform image processing tasks such as sprite sheet splitting, resizing, cropping, and batch operations on local images.MIT
Related MCP Connectors
LLM chat, text summarization and AI image generation
Generate images, video, music and voice from your CLI or AI agent. On-brand AI media toolkit.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Able-rip/BMBrick-Photo-to-LEGO-Mosaic-Skill'
If you have feedback or need assistance with the MCP directory API, please join our Discord server




