set_minifigs

Pack: rebrickable · Endpoint: https://gateway.pipeworx.io/rebrickable/mcp

Fetch the minifigures included in a LEGO set by set_num from Rebrickable. Returns each minifig’s set_num, name, quantity, and image URL.

Parameters

NameTypeRequiredDescription
set_numstringyes

Example call

Arguments

{
  "set_num": "75368-1"
}

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":"set_minifigs","arguments":{"set_num":"75368-1"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('set_minifigs', {
  "set_num": "75368-1"
});

Response shape

FieldTypeDescription
countnumberTotal number of minifigures
nextstring | nullURL to next page
previousstring | nullURL to previous page
resultsarrayArray of minifigure objects in set
Full JSON Schema
{
  "type": "object",
  "properties": {
    "count": {
      "type": "number",
      "description": "Total number of minifigures"
    },
    "next": {
      "type": [
        "string",
        "null"
      ],
      "description": "URL to next page"
    },
    "previous": {
      "type": [
        "string",
        "null"
      ],
      "description": "URL to previous page"
    },
    "results": {
      "type": "array",
      "description": "Array of minifigure objects in set",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number",
            "description": "Inventory ID"
          },
          "fig_num": {
            "type": "string",
            "description": "Minifigure number"
          },
          "name": {
            "type": "string",
            "description": "Minifigure name"
          },
          "num_parts": {
            "type": "number",
            "description": "Number of parts in minifig"
          },
          "quantity": {
            "type": "number",
            "description": "Quantity in set"
          }
        }
      }
    }
  }
}

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