SuperAPIAI Directory

stella-mcp

github.com · AI developer platforms

Create, read, validate and save Stella system dynamics models (.stmx files in XMILE format) for scientific simulation and modeling.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Purpose: stella-mcp is a vendor-neutral Model Context Protocol (MCP) server for creating and manipulating Stella system dynamics models. Any compatible MCP client can build, read, validate, and save .stmx files in XMILE format, making it suitable for complex system simulation scenarios in ecology, biogeochemistry, economics, and engineering, as well as for teaching, rapid prototyping from natural language, batch modeling, or interpreting existing models.

Main capabilities: Build stock-flow diagrams from scratch; parse existing .stmx files; validate issues such as undefined variables, mass balance, missing connections, connector endpoint integrity, orphaned flows, and circular dependencies; incrementally add stocks, flows, auxiliary variables, and connectors; and export XMILE files that can be opened in Stella Professional. It also provides tools such as render_diagram (outputs an SVG diagram), simulate (time series and per-variable statistics), compare_scenarios (scenario comparison), sensitivity_analysis (single-parameter sweep), and calibrate (fits constant parameters based on observed data); the latter several require the optional PySD dependency (sim extra).

Usage: The published package can be run directly via uvx, with configuration written into claude_desktop_config.json or .claude/settings.json; it can also be run from source in development mode. The recommended workflow is: when creating a new model, first call create_workspace and carry the returned workspace_id, then use build_model to provide stocks, auxiliary variables, and flows all at once (connector synchronization and validation are performed by default), afterward use update_*, rename_variable, and delete_variable to correct errors, use add_variables for incremental expansion, use simulate for behavior checks, and finally save with save_model; when importing a model, first read it with compat_mode="permissive" to view warnings, use inspect_model to understand the structure, and switch to strict mode when round-trip fidelity is needed. The server also exposes resources (such as stella://templates/{name}) and build-stella-model prompts.

Limitations: Requires an MCP 2026-07-28 client carrying workspace_id; legacy stdio clients may omit it; simulation only supports Euler (models declaring RK4 will run with Euler and produce a warning); arrays, composite module instances, and additional top-level models are only retained in 0.14 and will return an unsupported_model_feature error; PySD and Stella output semantics are not fully consistent in some scalar cases; calibration only supports constant auxiliary variables and flows, and does not support fitting stock initial conditions; sensitivity analysis currently only supports single-parameter sweeps (oat), with full factorial and Monte Carlo reserved for future versions; details such as graphical functions and the template directory are subject to the repository documentation, and other information on pricing, platforms, and effects is not yet provided.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools