MediaWiki API is not enabled for this site. Add the following line to your LocalSettings.php
$wgEnableAPI=true;