MPB (MIT Photonic Bands) is a free and open-source software package used to calculate the band structures, dispersion relations, and electromagnetic modes of periodic dielectric structures, according to the MPB Documentation. It's applicable to various problems in optics, such as photonic crystals and waveguides.