Staff at Grantham Hospital discovered a patient was concealing Class A drugs in his mouth.
Alexander Hudson, 23, was stopped by police driving along the A1 and taken to Grantham police station.
Officers became concerned when Hudson began foaming from the mouth so took him to Grantham Hospital, where the MCAT was discovered.
Daniel Pietryka, prosecuting, said: “The defendant spat the items out into the hands of a member of hospital staff.”
Stuart Wild, defending, said Hudson, who appeared in court with a bleached blonde mohawk hairstyle complete with a pink streak down the middle, was given the drugs as payment for working as a DJ at a gig in Leighton Buzzard.
Mr Wild said: “On arrival, the person who engaged him as a DJ had no money so he was given MCAT worth about £25 as a down payment which he accepted.
“He used some of it to help keep him awake at the decks.”
Hudson, of St Giles Avenue, Sleaford, admitted possession of 3.82g of Class A drugs. He was fined £287 and must pay costs of £85 and a £20 surcharge.