The dSPACE VEOS MCP server lets you control the dSPACE VEOS simulator using natural language. This is achieved by enabling LLMs to interact with the VEOS simulator and its log files.
The following software must be installed on the same machine as the MCP server:
Optionally, for a developer-focused setup:
- Python 3.12 or later.
uv, the Python package and project manager used to create the environment, install dependencies, and run the server from this source checkout. Installuvfrom the official Astral documentation: https://docs.astral.sh/uv/getting-started/installation/
The
uv-based developer-focused setup works on Linux and Windows. The pre-built GitHub release is Windows-only.
There are two ways to install the VEOS MCP server:
- Using
uvfor a developer-focused setup that runs the server directly from this source checkout (Windows or Linux). Refer to Developer-focused setup. - Directly from the latest GitHub release (Windows only). Refer to To install the latest GitHub release.
You can easily verify the installation with a quick prompt, for example: "Give me the state of the VEOS simulator".
This setup works on both Windows and Linux, as long as uv is installed and dSPACE VEOS is reachable on that machine.
-
Clone this repository.
-
Create the project environment and install dependencies from
pyproject.toml.uv sync # for minimal setupuv sync --extra dev # for full developer setup -
Follow the MCP server installation instructions for your MCP client (see the documentation for Claude, Codex, GitHub Copilot, ... ).
Use
uv runto start the server directly from this repository checkout. For reference see VeosMCP.cmd for Windows or VeosMCP.sh for Linux.You can also call these scripts directly from your MCP client installation, as shown in the following example
.vscode/mcp.jsonentry (useVeosMCP.shinstead ofVeosMCP.cmdon Linux):{ "servers": { "VeosMCP": { "type": "stdio", "command": "<PATH_TO_REPOSITORY>\\VeosMCP.cmd", "args": [ "--veos-version", "<VEOS_VERSION>" ] } } }Useful development commands:
uv run pytest # run tests uv run ruff format src tests # run formatter uv run ruff check src tests # run linter uv build # build a wheel
-
Download
veos-mcp-windows.zipfrom the latest GitHub release. The archive contains the server executableveos-mcp.exe. -
Follow the MCP server installation instructions for your MCP client (see the documentation for Claude, Codex, GitHub Copilot, ... ).
Here is an example installation for GitHub Copilot as a
.vscode/mcp.jsonentry that points to the extracted executable:{ "servers": { "VeosMCP": { "type": "stdio", "command": "<PATH_TO_EXTRACTED_RELEASE>\\veos-mcp.exe", "args": [ "--veos-version", "<VEOS_VERSION>" ] } } }
The VEOS MCP server supports the following arguments. They can be provided in the JSON configuration above as part of the args list:
| Argument | Description |
|---|---|
--veos-version <VEOS_VERSION> |
Lets you target a specific VEOS installation by version. The following version formats are supported: 26.1, 26-A, 26.2, 26-B, 2026-A, and 2026-B. |
--veos-bin-path <PATH> |
Lets you target a specific VEOS installation by providing its /bin folder. |
If these arguments are not provided, the VEOS MCP server uses the newest installed VEOS version.
The VEOS MCP server offers various tools to let agents perform typical VEOS tasks. The tools cover a full workflow of bulding the simulation system, configuring it, running the VEOS simulation, and validating the simulation result.
The following example prompts show how you can interact with the VEOS MCP server:
Importmy.fmuintomy.osa, and enable XCP over TCP listening on127.0.0.1:5555.What signals are unconnected inmy.osa? Do a best effort matching and connnect them.Inmy.osa, create theCoSimcounterpart toEngineModel.fmu.Loadmy.osaand run the simulation for 5 seconds.Enable bus logging, then check the bus logs for any TCP transmissions.
Demo: Let the agent connect signals, run the simulation and validate its result.
Full list of tools, titles, and parameters. Tool descriptions might be abbreviated here, for full tool descriptions either use the MCP Inspector or check the source code directly under src/veos_mcp/tools.
Log File Access
-
veos_list_all_available_log_files
- Title: List all available VEOS log files
- Description: Lists all available VEOS log files, including both bus log files (pcapng) and simulation log files.
- Parameters: None
- Read-only: true
-
veos_get_log_file
- Title: Gets the path to a VEOS log file
- Description: Downloads a specified VEOS log file, which can be either a bus log file (pcapng) or a simulation log file, to a unique file in the VEOS MCP server's temp directory. Call
veos_list_all_available_log_filesto get the list of available log files first. - Parameters:
log_file_name(string): Name of the VEOS log file to download.
- Result: Structured content includes
LogFileName,LogFilePath, andSizeBytesfor the downloaded file. - Read-only: true
Simulator Control
-
veos_status_info
- Title: Get VEOS Simulator Status Info
- Description: Gets the current status information of the VEOS simulator, including the simulator state. State can be one of: Unloaded, Stopped, Running, Paused, Terminated.
- Parameters: None
- Read-only: true
-
veos_load
- Title: Load .osa simulation model into VEOS
- Description: Loads a simulation model specified by an osa file into the VEOS simulator. If successful, this transitions the simulator to the Stopped state.
- Parameters:
osa_path(string): Path to the osa simulation model file to load into VEOS.
- Read-only: false
-
veos_start
- Title: Start VEOS simulation
- Description: Starts the VEOS simulation. This transitions the simulator from Stopped or Paused state to Running state.
- Parameters: None
- Read-only: false
-
veos_stop
- Title: Stop VEOS simulation
- Description: Stops the VEOS simulation. This transitions the simulator from Running or Paused state to Stopped state.
- Parameters: None
- Read-only: false
-
veos_apply_config
- Title: Configure the VEOS simulator
- Description: Sets up and configures the VEOS simulation without starting it. Any parameter omitted from the tool call is left unchanged in the VEOS configuration.
- Parameters:
stop_time(string, optional): Desired stop time for the simulation in seconds of SimulationTime. If omitted, the existing stop time configuration is left unchanged.acceleration_factor(string, optional): Simulation acceleration factor.Infinityor0means as fast as possible;1means real-time speed. If omitted, the existing acceleration factor is left unchanged.ip_address(string, optional): IP address of the VEOS simulator. Defaults to localhost127.0.0.1if not specified by the VEOS configuration. If omitted, the existing IP address configuration is left unchanged.bus_log(boolean, optional): Enables bus logging when true and disables bus logging when false. The change takes effect afterveos_loadis executed.sim_log(boolean, optional): Enables simulation logging when true and disables simulation logging when false. The change takes effect afterveos_loadis executed.
- Read-only: false
System Build
-
veos_get_build_import_config_schema
- Title: Get Build Import Config Schema
- Description: Returns the path to the schema for configuring model/container build and import operations. Build configuration is supported from VEOS 26-B and is supplied in an
.icfg.yamlfile next to the FMU, SIC, BSC, or SSP container. - Parameters: None
- Read-only: true
-
veos_get_simulation_targets
- Title: Get all build/import targets for the build, and the currently set default.
- Description: Lists all available simulation targets for model build and import operations and identifies the currently configured default target.
- Parameters: None
- Read-only: true
-
veos_system_build
- Title: Building an osa file describing the simulation system
- Description: Builds or imports one or more models into a simulation system described by an osa file. Use
veos_get_build_import_config_schemafor non-default build configuration. - Parameters:
target_osa_path(string): Path of the osa simulation system file to create.models(array of strings): Paths of the models or containers to build or import.config_identifier(string, optional): Identifier selecting a<container>.<identifier>.icfg.yamlconfiguration file.log_file(string, optional): Path to the build log file.build_directory(string, optional): Path to the build directory.
- Read-only: false
Simulator Extension
-
veos_extension_import
- Title: Import VEOS extension or HSIL participant
- Description: Imports a VEOS extension (VEOS CoSim or Qemu) or HSIL configuration into an osa file. Import these extensions separately from
veos_system_build. - Parameters:
osa_path(string): Path to the osa simulation system file to update.json_path(string): Path to the JSON configuration file describing the extension or HSIL participant.
- Read-only: false
Use
veos_get_cosim_docs,veos_get_qemu_docs, orveos_get_hsil_docsfor the relevant schema and documentation before importing. -
veos_get_cosim_docs
- Title: Get VEOS CoSim documentation
- Description: Returns the VEOS CoSimulation schema file paths and a link to the GitHub documentation. Use this documentation for
DsVeosCoSiminstances imported withveos_extension_import. - Parameters: None
- Read-only: true
-
veos_get_qemu_docs
- Title: Get VEOS Qemu extension documentation
- Description: Returns the schema file paths and GitHub documentation reference for
DsVeosQemuextensions imported withveos_extension_import. - Parameters: None
- Read-only: true
-
veos_get_hsil_docs
- Title: Get VEOS HSIL CoSim documentation
- Description: Returns the HSIL simulation configuration schema file path. HSIL instances are imported with
veos_extension_import. - Parameters: None
- Read-only: true
System Extraction
-
veos_get_full_simulation_system_data_model
- Title: Export the full VEOS simulation system data model to a JSON file
- Description: Exports the complete data model of the given VEOS osa simulation system to a unique, pretty-printed JSON file in the VEOS MCP server's temp directory. Use
veos_get_veos_data_model_and_modify_schemato get the data model schema. - Parameters:
osa_path(string): Path to the osa simulation model file to export.
- Result: Structured content includes
JsonFilePath,SizeBytes, andTopLevelEntriesfor the exported data model. - Read-only: true
-
veos_get_all_signals_and_ports
- Title: Get a list of signals/ports from the VEOS osa simulation system
- Description: Gets the list of available signals/ports from the given osa file and existing connections between them. Signals and ports are often used interchangeably in the context of the VEOS simulation system.
- Parameters:
osa_path(string): Path to the osa simulation model file from which signals, ports, and existing connections are read.
- Read-only: true
System Modification
-
veos_get_veos_data_model_and_modify_schema
- Title: Get general schema file describing the structure of VEOS osa data model and how the JSON modifications work.
- Description: Returns the path to the schema that describes the VEOS osa data model and the JSON command shapes accepted by
veos_simulation_system_modify. - Parameters: None
- Read-only: true
-
veos_simulation_system_modify
- Title: Modify the VEOS simulation system via a JSON file.
- Description: Applies modifications from a JSON file to a VEOS osa simulation system. Use
veos_get_veos_data_model_and_modify_schemato get the modification schema first. - Parameters:
osa_path(string): Path to the osa simulation model file to modify.modification_json_path(string): Path to the JSON file containing the modifications.
- Read-only: false
-
veos_add_signal_connections
- Title: Connect signals given a JSON file
- Description: Adds signal connections that are specified in a list within the JSON file to the given VEOS osa file. The signal references are the signal paths.
- Parameters:
osa_path(string): Path to the osa simulation model file to modify.json_path(string): Path to the JSON file that contains the signal connections to add.
- Read-only: false
-
veos_remove_signal_connections
- Title: Disconnect signals given in a JSON file
- Description: Removes signal connections that are specified in a list within the JSON file from the given VEOS osa file. The signal references are the signal paths.
- Parameters:
osa_path(string): Path to the osa simulation model file to modify.json_path(string): Path to the JSON file that contains the signal connections to remove.
- Read-only: false
MCP tools are saved in src/veos_mcp/tools/ and registered with a shared FastMCP instance that is imported from the veos_mcp.runtime module.
To add an MCP tool, perform the following steps:
-
Add the tool implementation to an existing module in
src/veos_mcp/tools/or create a new module there. -
Register the tool with the shared
FastMCPinstance by using@mcp.tool(...). Provide a clear tool name, title, and description, and useToolAnnotationsto describe whether the tool is read-only, destructive, idempotent, or open-world. -
Use
get_cli().run_sim(...)orget_cli().run_model(...)to define VEOS CLI operations. -
If you create a new tool module, import it from
src/veos_mcp/tools/__init__.py:from veos_mcp.tools import new_module as new_module
Also add the new module to
__all__, otherwise the module is not imported when the server starts. -
Add or update tests under
tests/tools/to verify the direct Python function behavior. -
Add the new tool name to
expected_toolsintests/test_mcp_surface_smoketest.py. This ensures that the MCP stdio surface test verifies that the tool is registered. -
Run
pytestandruffto validate the implementation, format the code, and check for linting issues.
Here is a minimal tool example:
from veos_mcp.runtime import mcp
@mcp.tool(name="veos_new_tool", title="New tool", description="New tool extending the VEOS MCP server.")
def veos_new_tool() -> str:
return "Hello from the new VEOS MCP server tool!"For technical questions and issues related to the dSPACE MCP Servers and related GitHub repositories, please open a GitHub issue. As a valued dSPACE customer, you are always welcome to contact dSPACE Support directly via http://www.dspace.com/go/supportrequest.
