1. Conduid
  2. Developer Tools
  3. bradleylab/stella-mcp
MCP server · Developer Tools

bradleylab/stella-mcp

MCP server for Stella

Unclaimed MIT devtools
56Fair

Scored yesterday · breakdown

About bradleylab/stella-mcp

bradleylab/stella-mcp is an MCP server published by bradleylab in the Developer Tools category: mCP server for Stella.

The repository has 4 stars and 2 forks, with the last commit 2 months ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/bradleylab/stella-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (5)

create_modelCreate a new model with name and time settings (start, stop, dt, method)

Parameters not published.

delete_modelRemove a model from the workspace (saved files untouched)

Parameters not published.

read_modelLoad an existing .stmx file

Parameters not published.

save_modelSave model to a .stmx file

Parameters not published.

set_sim_specsUpdate simulation time settings on an existing model

Parameters not published.

Ask AI

✦

Ask AI about bradleylab/stella-mcp

Powered by Claude · Grounded in docs

I know everything about bradleylab/stella-mcp. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

3 checks have not been run yet.

Releases

v0.14.0Stella MCP 0.14.0 · 10 Aug 2026Stella MCP 0.14.0 Stella MCP 0.14.0 is the cumulative public successor to 0.12.0. It combines the compatibility and evaluation hardening developed in the unpublished 0.13.0 candidate with the MCP v2 migration. Highlights Supports MCP…
v0.12.0Stella MCP 0.12.0 · 15 Jul 2026Stella MCP 0.12.0 This release adds a deterministic directed layout pipeline and reproducible evidence for the package's MCP, Stella desktop, simulation, and free-form tool-use workflows. Highlights Replace best-effort force placement with…
v0.11.0Stella MCP 0.11.0 · 13 Jul 2026Stella MCP 0.11.0 This behavior-preserving maintenance release separates the package's major responsibilities into focused modules while retaining the public interfaces and model behavior introduced through 0.10.0. Highlights Organize MCP…
v0.10.0v0.10.0 · 10 Jul 2026Stella MCP 0.10.0 This release adds parameter calibration to the PySD-backed simulation stack. Highlights Fit constant auxiliary and flow parameters from inline or CSV observations with local least-squares or seeded differential evolution.…
v0.9.0v0.9.0 · 12 Jun 2026Added `compare_scenarios` tool: run several named what-if scenarios (each a set of constant parameter overrides) against a baseline and report how each diverges — per-variable final/max absolute deltas and final percent change. Override…

README

Stella MCP Server

A Model Context Protocol (MCP) server for creating and manipulating Stella system dynamics models. This enables AI assistants like Claude to programmatically build, read, validate, and save .stmx files in the XMILE format.

What is this for?

Stella is a system dynamics modeling tool used for simulating complex systems in fields like ecology, biogeochemistry, economics, and engineering. This MCP server allows AI assistants to:

  • Create models from scratch - Build stock-and-flow diagrams programmatically
  • Read existing models - Parse and understand .stmx files
  • Validate models - Check for errors like undefined variables or missing connections
  • Modify models - Add stocks, flows, auxiliaries, and connectors
  • Save models - Export valid XMILE files that open in Stella Professional

This is particularly useful for:

  • Teaching system dynamics modeling
  • Rapid prototyping of models through natural language
  • Batch creation or modification of models
  • Documenting and explaining existing models

Installation

From PyPI

pip install stella-mcp

From source

git clone https://github.com/bradleylab/stella-mcp.git
cd stella-mcp
pip install -e .

Requirements

  • Python 3.10+
  • mcp>=1.0.0

Configuration

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "stella": {
      "command": "stella-mcp"
    }
  }
}

Claude Code

Add to your .claude/settings.json:

{
  "mcpServers": {
    "stella": {
      "command": "stella-mcp"
    }
  }
}

Development mode

If running from source:

{
  "mcpServers": {
    "stella": {
      "command": "python",
      "args": ["-m", "stella_mcp.server"],
      "cwd": "/path/to/stella-mcp"
    }
  }
}

Available Tools

Model Creation & I/O

Tool Description
create_model Create a new model with name and time settings (start, stop, dt, method)
read_model Load an existing .stmx file
save_model Save model to a .stmx file

Model Building

Tool Description
add_stock Add a stock (reservoir) with initial value and units
add_flow Add a flow between stocks with an equation
add_aux Add an auxiliary variable (parameter or calculation)
add_connector Add a dependency connector between variables

Model Inspection

Tool Description
list_variables List all stocks, flows, and auxiliaries
validate_model Check for errors (undefined variables, missing connections, etc.)
get_model_xml Preview the XMILE XML output

Example Usage

Creating a simple population model

User: Create a simple exponential growth model with a population starting at 100
      and a growth rate of 0.1 per year

Claude: [Uses create_model, add_stock, add_aux, add_flow, add_connector, save_model]
        Creates population_growth.stmx with:
        - Stock: Population (initial=100)
        - Aux: growth_rate (0.1)
        - Flow: growth (Population * growth_rate) into Population

Reading and analyzing an existing model

User: Read the carbon cycle model and explain what it does

Claude: [Uses read_model, list_variables]
        This model has 3 stocks (Atmosphere, Land Biota, Soil) and 6 flows
        representing carbon exchange through photosynthesis, respiration...

Building a biogeochemical model

User: Create a two-box ocean model with surface and deep nutrients

Claude: [Uses create_model, add_stock (x4), add_aux (x8), add_flow (x6), save_model]
        Creates a model with nutrient cycling between surface and deep ocean
        including upwelling, downwelling, biological uptake, and remineralization

Validation

The validate_model tool checks for:

  • Undefined variables - References to variables that don't exist
  • Mass balance issues - Stocks without flows, flows referencing non-existent stocks
  • Missing connections - Equations using variables without connectors (warning)
  • Orphan flows - Flows not connected to any stock
  • Circular dependencies - Infinite loops in auxiliary calculations

XMILE Compatibility

  • Output files use the XMILE standard
  • Compatible with Stella Professional 1.9+ and Stella Architect
  • Auto-layout positions elements reasonably; adjust manually in Stella if needed
  • Variable names with spaces are converted to underscores internally

Project Structure

stella-mcp/
├── README.md
├── LICENSE
├── pyproject.toml
└── stella_mcp/
    ├── __init__.py
    ├── server.py      # MCP server implementation
    ├── xmile.py       # XMILE XML generation and parsing
    └── validator.py   # Model validation logic

Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

License

MIT License - see LICENSE for details.

Acknowledgments

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About bradleylab/stella-mcp

How do I install bradleylab/stella-mcp?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is bradleylab/stella-mcp safe to use with an AI agent?

Its trust score is 56 out of 100 (fair). It passes 2 of the 3 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is bradleylab/stella-mcp still maintained?

Yes — the latest release is v0.14.0 (10 Aug 2026), and the last commit was 2 months ago. The repository has 4 stars.