Mpd extensions
From wikinotes
python
sudo pip install python-musicpdimport musicpd c = musicpd.MPDClient() c.connect('localhost', 6600) c.find('genre', 'Jazz') c.close()
netcat
echo "currentsong" | nc 127.0.0.1 6600 echo "find genre Indie" | nc 127.0.0.1 6600 | grep -i "^Artist" | uniq -i