Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

systems-mcp

MCP.Pizza Chef: lethain

systems-mcp is an MCP server that integrates with the lethain:systems Python library to run and document systems models. It offers tools to execute systems model specifications and load related documentation and examples, enabling enhanced model writing and simulation. Designed for local use with tools like Claude Desktop, it facilitates interactive systems modeling workflows within the MCP ecosystem.

Use This MCP server To

Run systems model specifications with configurable simulation rounds Load systems modeling documentation into LLM context for better model writing Integrate systems modeling workflows into local MCP-enabled environments Generate and render outputs from systems model simulations Prime LLMs with systems examples for improved assistance in modeling

README

systems-mcp

systems-mcp is an MCP server for interacting with the lethain:systems library for systems modeling.

It provides two tools:

  • run_systems_model runs the systems specification of a systems model. Takes two parameters, the specification and, optionally, the number of rounds to run the model (defaulting to 100).
  • load_systems_documentation loads documentation and examples into the context window. This is useful for priming models to be more helpful at writing systems models.

It is intended for running locally in conjunction with Claude Desktop or a similar tool.

Usage

Here's an example of using systems-mcp to run and render a model.

Example of prompt for  using systems-mcp

Here is the artifact generated from that prompt, including the output from running the systems model.

Example of artifact for using the output of systems-mcp

Finally, here is an example of using the load_systems_documentation tool to prime the context window and using it to help generate a systems specification. This is loosely equivalent to including lethain:systems/README.md in the context window, but also includes a handful of additional examples (see the included files in ./docs/.

Example prompt of loading documentation into context window

Then you can render the model as before.

Example prompt of rendering the generated model

The most interesting piece here is that I've never personally used systems to model a social network, but the LLM was able to do a remarkably decent job at generating a specification despite that.

Installation

These instructions describe installation for Claude Desktop on OS X. It should work similarly on other platforms.

  1. Install Claude Desktop.

  2. Clone systems-mcp into a convenient location, I'm assuming /Users/will/systems-mcp

  3. Make sure you have uv installed, you can follow these instructions

  4. Go to Cladue Desktop, Setting, Developer, and have it create your MCP config file. Then you want to update your claude_desktop_config.json. (Note that you should replace will with your user, e.g. the output of whoami.

     cd /Users/will/Library/Application Support/Claude
     vi claude_desktop_config.json
    

    Then add this section:

     {
       "mcpServers": {
         "systems": {
           "command": "uv",
           "args": [
             "--directory",
             "/Users/will/systems-mcp",
             "run",
             "main.py"
           ]
         }
       }
     }
    
  5. Close Claude and reopen it.

  6. It should work...

systems-mcp FAQ

How do I run a systems model using systems-mcp?
Use the run_systems_model tool with your model specification and optionally set the number of simulation rounds (default 100).
Can systems-mcp provide documentation to help LLMs write better systems models?
Yes, the load_systems_documentation tool loads documentation and examples into the model context for improved assistance.
Is systems-mcp designed for cloud or local use?
It is intended for local use, often alongside tools like Claude Desktop for interactive modeling.
What programming language is the lethain:systems library written in?
The lethain:systems library is a Python library for systems modeling.
Can I customize the number of rounds when running a systems model?
Yes, you can specify the number of rounds to run the model; if omitted, it defaults to 100.
How does systems-mcp improve the interaction between LLMs and systems models?
By providing tools to run models and load documentation, it enables LLMs to simulate and understand systems models more effectively.
What kind of outputs can I expect from running a systems model with systems-mcp?
You get simulation results and rendered artifacts that represent the model's behavior over time.