dymola-mcp-server
Modelica/Dymola 仿真工具的 MCP (Model Context Protocol) 服务器。让任何 MCP 兼容的 AI Agent 能够加载、翻译、仿真和分析 Dymola 中的 Modelica 模型。
Works with: Hermes Agent, Claude Desktop, Claude Code, Cline, Continue.dev and any MCP-compatible client.
Quick Start
git clone https://github.com/simonluke/dymola-mcp.git
cd dymola-mcp
pip install mcp fastmcp
python server/dymola_mcp_server.py
MCP Tools (12)
| Tool | Description |
|---|---|
load_model |
Load .mo file or package |
translate_model |
Compile model |
simulate |
Run simulation |
set_parameter |
Change parameter value |
close_dymola |
Release license |
list_variables |
List result variables (wildcard *) |
get_variable |
Get single variable value |
get_variable_trajectory |
Get time trajectory |
read_simulation_result_vars |
Read variables from .mat |
dymola_version |
Return Dymola version |
execute_command |
Arbitrary DymolaScript command |
plot_variables |
Plot and export PNG |
Configuration
Claude Desktop (claude_desktop_config.json):
{"mcpServers": {"dymola": {"command": "python", "args": ["path/to/dymola_mcp_server.py"]}}}
Environment: DYMOLA_INSTALL_DIR (default: C:\Program Files\Dymola 2023x)
License
MIT