Mine has green stools quite frequently, as I have a bit of a foremilk/hindmilk imbalance. Sometimes it is even a bit foamy. I don't really know if it is what you would call mucus though, it's just green poop that can be light or dark green and foamy on occasion.
I just try and make sure he nurses on the same breast long enough to get the hindmilk.