Mnemosyne source code is under GPL v2 license.
Download here : Mnemosyne-GCC (includes GCC version of Mnemosyne and benchmarks)
Building instructions and API are available here.