There is no straightforward answer, it may depend on when you had encephalitis and what medication you may be on.
It is therefore best to speak to your doctor about your suitability and he will advise you if it is safe for you to have the MMR vaccine.