Rebrickable

liveGamesReference

Rebrickable — search LEGO sets, parts, minifigs, colors, and themes from the crowd-sourced LEGO database.

8tools
0msauth
free tier50 calls/day

Tools

sets

Search Rebrickable LEGO sets by keyword, theme_id, year range, or part count range. Returns set number, name, year, part count, theme, and image URL. Use `themes` to get valid theme IDs.

No parameters required.

▶Try it
set

Fetch a single LEGO set by `set_num` (e.g. "75192-1") from Rebrickable. Returns set name, year, theme, part count, and image URL.

No parameters required.

▶Try it
set_parts

Fetch the full parts list for a LEGO set by `set_num` from Rebrickable. Returns each part's part_num, name, color, quantity, and image URL.

No parameters required.

▶Try it
set_minifigs

Fetch the minifigures included in a LEGO set by `set_num` from Rebrickable. Returns each minifig's set_num, name, quantity, and image URL.

No parameters required.

▶Try it
parts

Search Rebrickable LEGO parts by keyword, color_id, or part_cat_id. Returns part number, name, part category, and image URL. Use `colors` or category list to get valid IDs.

No parameters required.

▶Try it
part

Fetch details for a single LEGO part by `part_num` from Rebrickable. Returns part name, category, material, and image URLs across available colors.

No parameters required.

▶Try it
themes

Return the complete list of LEGO themes from Rebrickable (e.g. Star Wars, Technic, City). Returns theme id, name, and parent_id. Use to get valid theme_id values for filtering `sets`.

No parameters required.

▶Try it
colors

Return the complete list of LEGO colors from Rebrickable with color id, name, RGB hex code, and is_trans flag. Use to get valid color_id values for filtering `parts`.

No parameters required.

▶Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/rebrickable/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/rebrickable/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"sets","arguments":{}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("sets", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("rebrickable — search lego sets, parts, minifigs, colors, and themes from the crowd-sourced lego database");