Using the COMSOL MCP Server with NVIDIA Nemotron

December 2, 2026

AI assistance in simulation software often begins with a question: “Which boundary condition should I use?”, or maybe “Why did this study fail to converge?” With generative AI tools, these questions can be answered in detail. With an AI agent, the solution or next step in the workflow can be automated, taking inquiries a step further.

Connecting AI Agents to Simulation Workflows

The upcoming release of the COMSOL Multiphysics software, v2027, will make it easier to connect AI agents with COMSOL Multiphysics. The release introduces the COMSOL MCP Server, which provides a standardized interface for connecting external AI agents to COMSOL Multiphysics through the Model Context Protocol (MCP). Additionally, NVIDIA has announced support for agentic simulation workflows combining its Nemotron family of open models, including NVIDIA Nemotron 3 Ultra, with the COMSOL MCP Server. In this blog post, we offer an overview of the connection and present two examples demonstrating how Nemotron can assist with building simulation models and automating visualization tasks.

NVIDIA Nemotron and the COMSOL MCP Server

NVIDIA Nemotron is a family of open models with open weights, training data, and recipes, designed for reasoning, tool use, and agentic workflows. These models can be deployed on NVIDIA AI infrastructure and accessed through compatible agent applications. Because the models are open, organizations can also run them on premises, keeping proprietary designs and simulation data within their own infrastructure.

The COMSOL MCP Server enables MCP-compatible agents to interact with COMSOL Multiphysics through its unified API. Once given a goal, the agents can create and modify models, assign materials, define physics, run studies, examine results, and carry out additional tasks based on what they learn. The connection is not restricted to particular physics interfaces, allowing the same approach to be applied to structural mechanics, fluid flow, electromagnetics, heat transfer, acoustics, and other application areas, including coupled multiphysics simulations.

The agent can work with a live model, with changes reflected in the COMSOL Desktop environment. Users can inspect the agent’s work, provide additional instructions, and make adjustments as needed.

The following two examples illustrate different aspects of this functionality: constructing a model from a mathematical description and automating the production of a simulation animation.

Example 1: Creating a Simulation Model from Mathematical Equations

The first example shows how to create a model from a mathematical description of a stationary heat transfer simulation.

The input consists of a set of handwritten notes describing a heat transfer equation on a square domain, together with a spatially varying thermal conductivity, a heat source term, and boundary conditions. The boundary conditions include prescribed values, prescribed fluxes, and a mixed condition.

The handwritten mathematical specification of a stationary heat transfer model. Mathematical specification of a stationary heat transfer model, including spatially varying properties and different types of boundary conditions.

Rather than manually defining these equations and conditions in COMSOL Multiphysics, the task was given to Nemotron, with the handwritten notes provided to the agent via an image attachment. Through the COMSOL MCP Server, the agent was able to use the COMSOL API to construct the model, implement the equations and boundary conditions, and compute the solution.

Nemotron successfully created and solved the model on its first attempt. The resulting model used one of the general-purpose equation interfaces in COMSOL Multiphysics (Coefficient Form PDE) and produced the expected spatial distribution of the temperature field.

A model file in COMSOL Multiphysics created and solved by Nemotron. Model created and solved by Nemotron using COMSOL Multiphysics.

This example demonstrates how an agent can translate a mathematical specification into a working simulation model, including the corresponding physics settings and boundary conditions. The approach can reduce the amount of manual model setup needed, particularly when working with custom equations or mathematical models that are not covered directly by predefined physics interfaces. The same approach would also work for a physics-based interface as well as for a 3D simulation.

Example 2: Automating the Creation of a Simulation Animation

The second example focuses on a different type of task: generating an animation from an existing time-dependent CFD simulation. In this example, fluid flow around a soccer ball is simulated, with streamlines illustrating the flow field. The objective was to create an MP4 animation in which the ball appeared to move past the viewer, similar to a comet passing an observer. Rather than manually positioning the camera and exporting individual frames, we instructed Nemotron to automate the process.

The initial and final camera positions were specified using the camera settings in COMSOL Multiphysics. Nemotron was then asked to interpolate between these positions while advancing through the simulation time steps, creating a sequence of frames showing the corresponding flow solution.

A CFD simulation of flow around a soccer ball with camera settings used to define the animation. CFD simulation of flow around a soccer ball, with camera settings used to define the animation. (Note: The modeled ball is inspired by the Adidas Trionda. These investigations were performed independently of Adidas, and we do not claim any cooperation with Adidas.)

The agent used the COMSOL API to adjust the camera position and select the solution time for each frame. The images were then exported as PNG files and combined into an MP4 animation.

Some iteration was needed to achieve the desired visual effect. For example, the initial camera interpolation placed the viewpoint too close to the ball at an intermediate position. Additional instructions were given to adjust the camera trajectory before producing the final animation.

A screenshot of the COMSOL Multiphysics UI showing the COMSOL MCP server and the interaction between the NVIDIA Nemotron and OpenCode agent to adjust camera position during animation creation. Interaction with NVIDIA Nemotron through the OpenCode® agent harness to adjust the camera position during animation creation.

The resulting soccer ball CFD animation illustrates how an agent can coordinate a sequence of operations involving camera positioning, solution visualization, image export, and video generation.

Producing the same animation manually would have required substantial scripting or repetitive interaction with the software. By using an agentic workflow, we could instead describe the intended visual effect, review intermediate results, and provide corrections until the desired animation was obtained.

This example also highlights an important aspect of agentic workflows: The user does not need to specify every implementation detail in advance. The agent can perform intermediate steps, and the user can provide guidance when adjustments are needed.

Additional Applications of Agentic Simulation Workflows

Beyond the two examples presented here, AI agents can assist with inspecting existing models, modifying parameters, performing iterative design studies, evaluating results, and adjusting solver settings. For example, this recent blog post highlights an example of how an agent can tune the nonlinear solver settings for a CFD model. The example shows that after nine trials, the agent identified a setting that reduced the number of nonlinear iterations by 25% and computation time by 30%.

A Nemotron-powered agent connected through the COMSOL MCP Server could follow the same general approach, inspecting the model, selecting candidate changes, running simulations, and comparing results. Such workflows can involve sequences of operations where each step depends on the outcome of previous steps, rather than following a predefined parameter sweep.

It’s important to also note that engineering judgment is still required when utilizing agentic workflows. A converged solution does not guarantee that the model or its underlying assumptions are correct. As mentioned previously, with the COMSOL MCP Server, the changes made by an agent can be seen in the COMSOL Desktop, so users are able to review settings, equations, and results and make modifications as needed.

NVIDIA Acceleration for AI and Simulation

NVIDIA technology can accelerate AI-driven simulation workflows as well as the simulations themselves. Nemotron provides the AI capabilities, and COMSOL Multiphysics supports NVIDIA GPU acceleration for computationally intensive simulation tasks. This support includes:

  • Sparse linear system solves using the NVIDIA CUDA direct sparse solver (cuDSS)
  • Time-explicit pressure acoustics simulations using NVIDIA CUDA-X libraries, including NVIDIA cuBLAS
  • Training deep neural network (DNN) surrogate models

Both cuDSS and time-explicit pressure acoustics support multiple GPUs.

These capabilities complement the use of AI agents to automate simulation tasks. With the introduction of the COMSOL MCP Server in v2027, users will be able to combine AI models such as Nemotron with COMSOL Multiphysics through a standardized interface, opening up new possibilities for simulation automation.

For more information, see GPU Acceleration in COMSOL Multiphysics.

NVIDIA, CUDA, CUDA-X, and Nemotron are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and/or other countries. Trionda and Adidas is a registered trademark of adidas AG.

Comments (0)

Leave a Comment
Log In | Registration
Loading...
EXPLORE COMSOL BLOG