Surrealism is 20th century style of art. The artist tries to express his/her subconscious mind. It is characterized by fantastic imagery and incongruous juxtaposition of subject matter.
Magic realism is a form of art. The artist tries to depict dreams in a realistic way.
As you can see they are very similar, however magic realism characteristically contains more realistic content.
If you want to compare two artists use Gabriel Garcia Marquez (magic realism) andSalvador Dali (surrealism).
Hope that helps!!!