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

NameTypeRequiredDescription
querystringno
color_idnumberno
part_cat_idnumberno
orderingstringno
pagenumberno
page_sizenumberno

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

FieldTypeDescription
countnumberTotal number of parts matching criteria
nextstring | nullURL to next page of results
previousstring | nullURL to previous page of results
resultsarrayArray 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.

Regenerated from source · build July 6, 2026