Douglas Harper's Etymology Dictionary
clamjamphry
contemptuous word for "a collection of persons, mob," 1816, of unknown origin; first in Scott, so perhaps there's a suggestion of clan in it.