Main Content


Set up a server environment


mps-setup [mcrroot]


mps-setup [mcrroot] sets location of MATLAB® Runtime and other start-up options.

The mps-setup command sets the default path to the MATLAB Runtime for all server instances you create with the product. This is equivalent to presetting the --mcr-root option in each server’s main_config configuration file.

If a default value already exists in server_name/config/mcrroot, it is updated with the value specified when you run the command line wizard.


  • Run mps-setup from the script folder. Alternatively, add the script folder to your system PATH environment variable to run mps-setup from any folder on your system.

  • Run mps-setup without arguments and it will search your system for MATLAB Runtime instances you may want to use with MATLAB Production Server™.

  • Run mps-setup by passing the path to the MATLAB Runtime as an argument. This method is ideal for non-interactive (silent) installations.

Input Arguments


Specify a path to the MATLAB Runtime if running mps-setup in non-interactive, or silent, mode.


Run mps-setup non-interactively, by passing in a path to the MATLAB Runtime instance that you want MATLAB Production Server to use.

mps-setup "C:\Program Files\MATLAB\MATLAB Runtime\mcrver"

mcrver is the version of the MATLAB Runtime to use.

Introduced in R2012b