MPh is available on PyPI and can be readily installed via pip:

pip install mph

Run pip uninstall mph in order to remove the library from your system.

Requires JPype for the bridge from Python to Comsol’s Java API and NumPy for returning (fast) numerical arrays. pip makes sure the two Python dependencies are installed and adds them if missing.

Comsol, obviously, you need to license and install yourself. Versions from Comsol 5.1 onward are expected to work. Note how a separate Java run-time environment is not required, as Comsol ships with one already built in.