sets
Pack: rebrickable · Endpoint: https://gateway.pipeworx.io/rebrickable/mcp
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.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | no | |
theme_id | number | no | |
min_year | number | no | |
max_year | number | no | |
min_parts | number | no | |
max_parts | number | no | |
ordering | string | no | |
page | number | no | |
page_size | number | no |
Example call
Arguments
{
"query": "Star Wars"
}
curl
curl -X POST https://gateway.pipeworx.io/rebrickable/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"sets","arguments":{"query":"Star Wars"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('sets', {
"query": "Star Wars"
});
More examples
{
"theme_id": 1,
"min_year": 2020,
"max_year": 2024,
"min_parts": 500,
"ordering": "-year"
}
Response shape
| Field | Type | Description |
|---|---|---|
count | number | Total number of sets matching criteria |
next | string | null | URL to next page of results |
previous | string | null | URL to previous page of results |
results | array | Array of set objects |
Full JSON Schema
{
"type": "object",
"properties": {
"count": {
"type": "number",
"description": "Total number of sets matching criteria"
},
"next": {
"type": [
"string",
"null"
],
"description": "URL to next page of results"
},
"previous": {
"type": [
"string",
"null"
],
"description": "URL to previous page of results"
},
"results": {
"type": "array",
"description": "Array of set objects",
"items": {
"type": "object",
"properties": {
"set_num": {
"type": "string",
"description": "Set number identifier"
},
"name": {
"type": "string",
"description": "Set name"
},
"year": {
"type": "number",
"description": "Year set was released"
},
"theme_id": {
"type": "number",
"description": "Theme ID"
},
"num_parts": {
"type": "number",
"description": "Number of parts in set"
},
"num_minifigs": {
"type": "number",
"description": "Number of minifigures in set"
},
"set_img_url": {
"type": [
"string",
"null"
],
"description": "Image URL for set"
},
"set_url": {
"type": "string",
"description": "Rebrickable URL for set"
},
"last_modified_dt": {
"type": "string",
"description": "Last modification date"
}
}
}
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"rebrickable": {
"url": "https://gateway.pipeworx.io/rebrickable/mcp"
}
}
}
See Getting Started for client-specific install steps.