You can use Audio::MPD under the same terms as Perl itself.