Skip to main content
Glama
SethGame

FlexSim MCP Server

by SethGame

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
FLEXSIM_LOG_LEVELNoOverride logging levelINFO
FLEXSIM_CONFIG_PATHNoPath to an alternate config.toml file
FLEXSIM_INSTALL_PATHNoOverride FlexSim program path
FLEXSIM_PYTHON_VERSIONNoOverride Python version for FlexSimPy3.12

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
flexsim_open_modelB

Open a FlexSim model file.

Args:
    model_path: Path to .fsm or .fsx file

Example:
    model_path="C:/Models/warehouse.fsm"
flexsim_resetB

Reset simulation to initial state (time = 0).

flexsim_runB

Start running the simulation continuously.

flexsim_run_to_timeA

Run simulation until reaching target time.

Args:
    target_time: Target simulation time in seconds
    fast_mode: Run at maximum speed (default: True). Set to False for real-time GUI updates.

Example:
    target_time=3600  # Run for 1 hour
flexsim_stopA

Stop the running simulation.

flexsim_get_timeB

Get current simulation time.

flexsim_stepB

Step through simulation events.

Args:
    steps: Number of events to step (1-1000, default: 1)

Example:
    steps=10  # Advance 10 events
flexsim_evaluateB

Execute FlexScript code.

Args:
    script: FlexScript code to evaluate

Examples:
    script='Model.find("Queue1").subnodes.length'  # Get queue content
    script='getmodeltime()'  # Get simulation time
flexsim_get_node_valueC

Get value from FlexSim tree node.

Args:
    node_path: Path to node (e.g., "Model/Queue1/stats/input")
flexsim_set_node_valueB

Set value in FlexSim tree node.

Args:
    node_path: Path to node
    value: New value to set

Example:
    node_path="Model/Processor1/variables/processtime"
    value=5.0
flexsim_save_modelB

Save the current model.

Args:
    save_path: Path to save (optional, uses current if not provided)

Example:
    save_path="C:/Models/warehouse_v2.fsm"
flexsim_new_modelB

Create a new blank model.

flexsim_compileB

Compile the model (check for FlexScript errors).

flexsim_get_statisticsB

Get simulation statistics and performance metrics.

flexsim_export_resultsB

Export simulation results to file.

Args:
    export_path: Path to save results
    format: Export format (csv, xlsx, json)

Example:
    export_path="C:/Results/output.csv"
    format="csv"

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SethGame/mcp_flexsim'

If you have feedback or need assistance with the MCP directory API, please join our Discord server