custom palettes (in bulk)

Might anyone know how to automatically create color palettes in bulk?
In particular, I’d like to have access to the ColorBrewer palettes (by name, number of variables, etc.).
They offer the downloads of the named/numbered palettes in a variety of formats, including a basic JSON document with all the RGB values.
I’d just like to try avoid having to use the ColorPicker tool to one-at-a-time create every color for each possible palette.