I wrote a Moodle filter to display MathML within Moodle. The idea was to convert the MathML to TeX, then use mimetex to convert that into a gif. The filter is in
http://cvs.sourceforge.net/viewcvs.py/moodle/contrib/mathml/It worked quite well, once I got it working - I used it to render Jacques Distler's theoretical physics
blog at
http://golem.ph.utexas.edu/~distler/blog/, some of whose pages contain heavy-duty MathML.
The only trouble with it is that the MathML->TeX part uses XSL transformations using the Xalan XSLT processor. Unfortunately Xalan is Linux only and even on Linux quite a challenge to install, since it has some nonstandard dependencies. In particular it depends on a library which is part of Intel's C-compiler suite. It took me quite some time to figure out to identify that library and then to find the place I could
download it off Intel's site. [It is available for free download, with some strings attached, but you have to jump through a few hoops to get the download.]
I haven't played around with it for more than a year, so perhaps the situation with respect to Xalan has changed in the meantime.