Rebrickable
liveGamesReferenceRebrickable — search LEGO sets, parts, minifigs, colors, and themes from the crowd-sourced LEGO database.
Tools
setsSearch 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
setFetch 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_partsFetch 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_minifigsFetch 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
partsSearch 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
partFetch 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
themesReturn 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
colorsReturn 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.
curl -X POST https://gateway.pipeworx.io/rebrickable/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'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.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("sets", {});// 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");