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

NameTypeRequiredDescription
querystringno
theme_idnumberno
min_yearnumberno
max_yearnumberno
min_partsnumberno
max_partsnumberno
orderingstringno
pagenumberno
page_sizenumberno

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

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

Regenerated from source · build July 6, 2026