1. Conduid
  2. Content
  3. Brickscope
MCP server · Content

Brickscope

MCP server for LEGO recognition using the Brickognize API — identify parts, sets, and minifigures from photos

Unclaimed MIT content
39Low

Scored 18 days ago · breakdown

About Brickscope

Brickscope is an MCP server published by NazarLysyi in the Content category: mCP server for LEGO recognition using the Brickognize API — identify parts, sets, and minifigures from photos.

The repository has 13 stars and 1 forks, with the last commit 16 days ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/NazarLysyi/brickscope

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Brickscope

Powered by Claude · Grounded in docs

I know everything about Brickscope. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository yesterday. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.

1 check has not been run yet.

Releases

v0.3.0v0.3.0 · 5 Oct 20260.3.0 (2026-10-05) Features scan one photo for multiple LEGO parts, with HEIC support (#18) (c794cb7)
v0.1.0v0.1.0 · 29 Sep 20260.1.0 (2026-04-07) Features initial MCP server for LEGO recognition via Brickognize API (db101b1) add examples (#1) check format (#2) add batch identify tool (#4) add semantic PR title lint workflow (#5) Rebrickable && cache (#6) add test…
v0.2.0v0.2.0 · 29 Sep 20260.2.0 (2026-09-29) Miscellaneous Chores migrate to pnpm and upgrade dependencies (7a7af16) release: 0.2.0 (00e8f6c)

README

Brickscope

Identify LEGO parts, sets, and minifigures from images — as a CLI tool or an MCP server for AI assistants.

Powered by the Brickognize API and Rebrickable.

Huge thanks to Piotr Rybak for creating the Brickognize service and making LEGO recognition accessible to everyone!

CLI

npm install -g brickscope

brickscope identify photo.jpg --type part
brickscope scan pile.jpg --detect-only   # several parts in one photo
brickscope part 3001 --color Black
brickscope set 75192
brickscope minifig fig-012805

Or run without installing: npx brickscope identify photo.jpg

Full CLI documentation

MCP Server

For AI assistants (Claude, Cursor, etc.), add to your MCP config:

{
  "mcpServers": {
    "brickscope": {
      "command": "npx",
      "args": ["-y", "brickscope", "mcp"],
      "env": {
        "REBRICKABLE_API_KEY": "your-key-here",
        "BRICKOGNIZE_CACHE": "sqlite"
      }
    }
  }
}

Full MCP documentation

HEIC decoding runs in a disposable worker with cancellation and a 30-second timeout; images over 100 megapixels are rejected before RGBA decoding. Decoder diagnostics go to stderr, keeping JSON output clean. Uploads are resized to at most 2048 pixels on the long side. File contents determine the decoder: JPEG/PNG/WebP magic overrides the extension, HEIF brands use libheif, and AVIF uses sharp (converted to JPEG for upload). Embedded HEIC ICC profiles, including Display-P3, are not applied by this decoder; colors may shift. Export an sRGB JPEG when accurate color matters.

Scan previews echo padding, isolateParts and detectionSettings; the CLI saves and restores them in regions.json. MCP callers must pass them back with approved boxes. Part lookups can return partial set lists; keep the fetched results and follow remainingColors.

Configuration

Config file (CLI)

brickscope config init

Creates ~/.config/brickscope/config.json with your Rebrickable API key and cache settings.

Environment variables

Variable Default Description
REBRICKABLE_API_KEY — Free API key from rebrickable.com/api. Required for lookup tools.
BRICKOGNIZE_CACHE none Cache mode: none, memory, or sqlite

Environment variables take priority over the config file.

Features

  • Image recognition — identify parts, sets, minifigures, and stickers from photos
  • Batch processing — identify multiple images in parallel
  • Multi-part scan — find, crop and identify several parts in one photo, with previews an AI assistant can review and correct
  • Part lookup — colors, set appearances via Rebrickable
  • Set inventory — full parts list, year, theme, piece count
  • Minifigure lookup — details and set appearances
  • Caching — in-memory or SQLite cache for Rebrickable API responses
  • Config file — save API key and preferences once, use everywhere

Photo tips for scanning several parts

Put the parts on a plain, matte surface (no wood grain or patterned fabric), with even light from above and a small gap between parts. Use the original photo from the phone — messengers shrink it so much that small parts like pins lose their detail. The surface color matters too: fuchsia or mint-green paper keeps ~99% of LEGO parts clearly visible, while white paper hides white, transparent and light gray parts. brickscope scan also returns tips for the photo you just took. More

Examples

See the examples folder for prompt templates.

Development

pnpm install
pnpm build
pnpm dev              # Watch mode
pnpm test             # Unit + integration tests
pnpm lint             # ESLint
pnpm format           # Prettier

Requires Node.js 22.12+ and pnpm 12. The build uses TypeScript 7 (@typescript/native), while the typescript package is aliased to the TypeScript 6 API (@typescript/typescript6) because typescript-eslint and editors still need it.

Releasing

Releases are automated with release-please. PR titles follow Conventional Commits and are squash-merged: fix: bumps the patch version, feat: the minor version. After each merge to main, release-please keeps a release PR up to date with the version bump and CHANGELOG.md. Merging it tags the release, creates a GitHub Release and publishes to npm.

License

MIT. HEIC photos are decoded with libheif-js (LGPL-3.0), used unmodified as a separate npm dependency. sharp also uses libvips (LGPL-3.0).

README fetched from the repository yesterday. The original is authoritative.

Questions

About Brickscope

How do I install Brickscope?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Brickscope safe to use with an AI agent?

Its trust score is 39 out of 100 (low). It passes 5 of the 5 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Brickscope still maintained?

Yes — the latest release is v0.3.0 (5 Oct 2026), and the last commit was 16 days ago. The repository has 13 stars.