parts
Pack: rebrickable · Endpoint: https://gateway.pipeworx.io/rebrickable/mcp
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.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | no | |
color_id | number | no | |
part_cat_id | number | no | |
ordering | string | no | |
page | number | no | |
page_size | number | no |
Example call
Arguments
{
"query": "brick 2x4"
}
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":"parts","arguments":{"query":"brick 2x4"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('parts', {
"query": "brick 2x4"
});
More examples
{
"color_id": 1,
"part_cat_id": 1,
"ordering": "part_num"
}
Response shape
| Field | Type | Description |
|---|---|---|
count | number | Total number of parts matching criteria |
next | string | null | URL to next page of results |
previous | string | null | URL to previous page of results |
results | array | Array of part objects |
Full JSON Schema
{
"type": "object",
"properties": {
"count": {
"type": "number",
"description": "Total number of parts 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 part objects",
"items": {
"type": "object",
"properties": {
"part_num": {
"type": "string",
"description": "Part number identifier"
},
"name": {
"type": "string",
"description": "Part name"
},
"part_cat_id": {
"type": "number",
"description": "Part category ID"
},
"part_cat_name": {
"type": "string",
"description": "Part category name"
},
"part_url": {
"type": "string",
"description": "Rebrickable URL for part"
},
"part_img_url": {
"type": [
"string",
"null"
],
"description": "Image URL for part"
},
"year_from": {
"type": [
"number",
"null"
],
"description": "Year part was first produced"
},
"year_to": {
"type": [
"number",
"null"
],
"description": "Year part was last produced"
}
}
}
}
}
}
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.