It would require a Constitutional amendment to mandate federal candidates/officeholders pass a mental competency test. Even if you could get that amendment passed, there would remain the possibility of that "mental competency" test being perverted Soviet-style into a test to ensure all candidates think "the right way".
Juice isn't worth the squeeze. Voters have to make that call for themselves.