An algebraic approach to multiparameter spectral theory