To save the current playing MPD playlist from command line use the following mpc command:
user % mpc save my-playlist
Where my-playlist is the filename of the playlist to save. The filename should be written without the filename suffix.
In the default configuration the playlist will be saved in the /var/lib/mpd/playlist directory.