REST APIs

NeoLoad runs an embedded server for its REST APIs and Model Context Protocol (MCP) server. External tools use the REST APIs to exchange data with NeoLoad, design and run tests, and get results. AI agents use the MCP server to design tests in NeoLoad.

This topic explains how to enable the server, choose which machines can connect, and secure client connections. To configure these settings, go to Edit > Preferences > General settings > REST API.

Server

Use the Server section to start or stop the embedded server and to choose which machines can connect to it. These settings apply to both the REST APIs and the MCP server:

Setting

Description

Enable the REST API and MCP server

Select this checkbox to run the server. If you clear it, external tools and AI agents can't connect to NeoLoad.

This computer only (recommended)

Select this option to accept connections only from the computer where NeoLoad runs. It's the default for new installations.

This computer and remote machines

Select this option if you have tools or AI agents on another machine. Keep Identification required selected, so only clients with an API key can connect.

Restart NeoLoad to apply any change in this section.

To set the access level in a configuration file instead, use the localhostOnly key in the [RESTAPIs] section of controller.properties.

URLs

The URLs panel displays the end points to access the NeoLoad REST APIs:

Port configuration

By default, the NeoLoad Controller embeds a REST API server that listens on port 7400. The MCP server uses the same port. If you change the port, the change applies to the REST APIs and the MCP server.

The port can be customized in configuration file controller.properties, section [RESTAPIs].

Copy
[RESTAPIs]
port=<portNumber>

Encryption configuration

Client/server communications can be secured using SSL encryption. To enable SSL encryption, edit the controller.properties file, section [RESTAPIs], key issecured and set the value to true. This setting also applies to the MCP server.

Copy
[RESTAPIs]
issecured=true
keystore.encryptedPassword=<password>

By default, a keystore contains a self-signed certificate used for encryption. This keystore is named dataexchange.keystore and is located in the user directory: Neotys\NeoLoad\<version>\conf. This keystore is unique per NeoLoad installation and it is generated the first time NeoLoad is launched.

To use a certificate signed by a certification authority, you can specify your own keystore, containing the end entity certificate to encrypt the communication. To specify a different keystore, you need to replace the file named dataexchange.keystore in the Neotys\NeoLoad\<version>\conf directory, and specify the encrypted password in file controller.properties, section [RESTAPIs], key keystore.encryptedPassword. The value provided for key keystore.encryptedPassword needs to be encrypted using the password-scrambler tool. For more information about Password-Scrambler, see How do I use the Password Scrambler tool?

Identification

The Identification section controls whether clients must send an API key to connect. These settings apply to both the REST APIs and the MCP server. The MCP server has no separate identification setting.

By default, identification is required at the general level. If you disable it, you can still require identification for specific projects in the REST APIs project settings. If you disable identification at both levels, the server accepts all client connections.

If the identification is enabled at the general settings level, the API key will be required for any project you will open and even if no project is opened. That way, if for example the Create project method is called on the API, it will be secured by the API key generated with the activation of the identification.

To identify a client, follow these steps: 

  1. Check the Identification required option.

  2. Click the + button to create a new identification key entry.

  3. Enter the API key for the client you want to identify.

To remove a client identification, follow these steps: 

  1. Select the API key for the client you want to remove.

  2. Click the - button.