Mucus being passed in stool is a sign of inflammation of the rectum or
colon wall... This can be result of infection ( colitis ) or an inflammatory condition (Crohn's or ulcerative colitis ) and other conditions ...
I would advise that you consult your doctor and may be referred to a gastroenterologist especially the longer term your symptoms may be...
Stool studies for cultures/ leukocytes / ova and parasite test / C.diff toxin may be helpful...
Testing for occult blood of stool should be done..
You may benefit to take a probiotic..
A colonoscopy might be recommended in your case
I hope that this information is helpful for you
Let me know if you have further questions or concerns
I will be happy to get back with you
If my answers have been helpful and to your satisfaction then please remember to leave positive feedback
Thank you and Best Regards,
Anthony Bray MD