MediaWiki can be downloaded from www.mediawiki.org. Follow the installation instructions given in the download package and once you have completed them check you have a working MediaWiki server by creating a dummy wiki page before moving on to configure the Drupal "Mediawiki API" module.

If you are running MediaWiki on the same apache/php server as Drupal note that: