Mucus in stool must be taken seriously as certain pre-cancerous polyps known as villous adenoma can secrete large amounts of mucus and come out in the stool.
Other possible causes include an infection of the colonic lining. The best and most accurate option is to go through a colonoscopy. Discuss this option with your GP and get a referral as soon as possible.