Required is not recommended: the first is what the border asks about, the second is what a clinic would suggest. Both, for Spain, then the number to dial and what care costs a visitor. Applies to every guide in Spain: Barcelona, Madrid, Seville, Granada, Valencia, Tenerife and 6 more.
Required to enter
Nothing. No vaccination certificate is asked for at the border.
Recommended
Routine vaccinations up to date (MMR, tetanus, polio)
Emergency number
112
Care for visitors
Excellent and cheap
EU/EEA and Swiss visitors are treated on the same terms as residents with an EHIC or GHIC card; UK visitors use a GHIC. Everyone else pays, and travel insurance is worth having for the repatriation cover rather than the treatment.
The general rules — clinic timing, water, mosquitoes, insurance — are in travel health tips.