Health Conditions that Cause Mucus in Stool. A sudden onset of mucus in the stool, accompanied by urgent diarrhea, cramping, fever, and blood in the stool may be indicative of a bacterial infection. If you are having any of these symptoms, contact your physician immediately.