IT

iamcatobot/text2sim-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

25 stars 8 forks 质量 65 趋势 11MIT

Text2Sim MCP 服务器是一款对话式仿真引擎,能够将自然语言转化为可工作的仿真模型。

概览

一台模型上下文协议服务器,通过对话接口提供多范式仿真能力。该服务器支持通过SimPy实现离散事件仿真,并通过PySD和兼容PySD的JSON模式进行系统动力学建模。 Text2Sim MCP 服务器使大型语言模型能够通过自然语言接口创建、验证和执行仿真模型。服务器处理 JSON 结构化的仿真配置,并返回带有全面分析的执行结果。 - :使用 SimPy 引擎进行面向进程的建模- :使用 PySD 和兼容 PySD 的 JSON 模式进行库存与流程建模 Text2Sim MCP 服务器是由 Cato Bot Company Limited 开发的一个开源项目。我们相信透明、商业支持的开源开发,既惠及用户,也支持项目的可持续增长。社区贡献通过标准拉取请求程序接受。

概述(AI 翻译)

用于大型语言模型集成的多范式仿真引擎

一台模型上下文协议服务器,通过对话接口提供多范式仿真能力。该服务器支持通过SimPy实现离散事件仿真,并通过PySD和兼容PySD的JSON模式进行系统动力学建模。

概述

Text2Sim MCP 服务器使大型语言模型能够通过自然语言接口创建、验证和执行仿真模型。服务器处理 JSON 结构化的仿真配置,并返回带有全面分析的执行结果。

支持的仿真范式

  • 离散事件仿真(DES):使用SimPy引擎进行过程导向建模
  • 系统动力学(SD):使用PySD及其兼容JSON模式进行库存与流建模

")


关于

Text2Sim MCP 服务器是由 Cato Bot Company Limited 开发的一个开源项目。我们相信透明、商业支持的开源开发,既惠及用户,也支持项目的可持续增长。社区贡献通过标准拉取请求程序接受。


安装

先决条件

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Text2Sim MCP Server

Multi-paradigm Simulation Engine for LLM Integration

A Model Context Protocol server providing multi-paradigm simulation capabilities through conversational interfaces. The server supports Discrete-Event Simulation via SimPy and System Dynamics modeling via PySD and a PySD-compatible JSON schema.

Overview

Text2Sim MCP Server enables Large Language Models to create, validate, and execute simulation models through natural language interfaces. The server processes JSON-structured simulation configurations and returns execution results with comprehensive analytics.

Supported Simulation Paradigms

  • Discrete-Event Simulation (DES): Process-oriented modeling using SimPy engine
  • System Dynamics (SD): Stock-and-flow modeling using PySD and PySD-compatible JSON schema


About

The Text2Sim MCP Server is an open source project developed by The Cato Bot Company Limited. We believe in transparent, commercially-backed open source development that benefits both users and contributors while supporting sustainable project growth. Community contributions are accepted through standard pull request procedures.


Installation

Prerequisites

Install uv

On macOS and Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

On Windows (PowerShell):

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Learn more: astral-sh/uv


Quick Start

Clone the repository

git clone https://github.com/IamCatoBot/text2sim-MCP-server.git
cd text2sim-MCP-server

Install dependencies

uv sync

Integration with Claude Desktop

  1. Open:

Claude > Settings > Developer > Edit Config > claude_desktop_config.json

  1. Add the following block:
{
  "mcpServers": {
    "Text2Sim MCP Server": {
      "command": "uv",
      "args": [
        "--directory",
        "PATH_TO_TEXT2SIM_MCP_SERVER",
        "run",
        "python",
        "-m",
        "mcp_server"
      ],
      "env": {}
    }
  }
}

Note: Replace PATH_TO_TEXT2SIM_MCP_SERVER with the actual path to your cloned repository. If the uv command is not found, run which uv (Unix) or Get-Command uv (PowerShell) and use the full path in the "command" field.


Features

LLM Integration

  • Natural language to simulation model conversion
  • Multi-round conversation support for iterative model development
  • JSON Schema 2020-12 validation for configuration reliability
  • Contextual error messages with corrective guidance
  • Model persistence across conversation sessions
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "Text2Sim MCP Server": { "command": "uv", "args": [ "--directory", "PATH_TO_TEXT2SIM_MCP_SERVER", "run", "python", "-m", "mcp_server" ], "env": {} } } }