Tourist could reach Mdina via various options:
By bike, by taxi, by bus, hop on hop off service, and sightseeing tours.
Tourist could access the website of the Malta Public Transport and find the information needed.
The route is No 50.
You can also avail of the Malta Public Transport Route Map which you could find at the Tourist office in Mdina or from the Malta Tourist Office in Valletta.