simulink-agentic-toolkit
matlab · matlab/simulink-agentic-toolkit
Cung cấp cho AI agent các công cụ MCP và kỹ năng để đọc, chỉnh sửa và kiểm thử các mô hình Simulink hiệu quả bằng các thực hành Model-Based Design.
The Simulink Agentic Toolkit gives your AI agent both the tools and the expertise to work effectively with Simulink and Model-Based Design.
Xem trước
Bạn có thể làm gì với nó
- Yêu cầu agent tạo và mô phỏng một mô hình Simulink cho một nhà máy cụ thể
- Tự động hóa việc kiểm thử và kiểm tra các mô hình kỹ thuật thông qua Claude Code
- Chỉnh sửa các tham số khối và kiến trúc Simulink bằng hướng dẫn ngôn ngữ tự nhiên
Kiểm tra an toàn
Dùng được, nhưng nên đọc ghi chú trước.
- ●Không có giấy phép rõ ràng: hỏi tác giả trước khi dùng cho sản phẩm thương mại.
Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.
Trích từ README
Simulink Agentic Toolkit
The Simulink® Agentic Toolkit allows you to use AI agents with Simulink by giving your AI agent the knowledge and context to read, build, edit, and test Simulink® models using Model-Based Design best practices. It connects agents to Simulink through the MATLAB MCP Server, giving them the ability (tools) and the knowledge (skills) to work with Simulink models effectively. Use this toolkit to provide trusted Simulink capabilities to your agent. This toolkit prevents your AI coding agent from hallucinating, missing new features, and wasting time with extra steps that experienced Simulink users would skip.
The toolkit provides:
- MCP tools for reading, editing, querying, testing, and checking Simulink models
- Agent skills encoding Model-Based Design best practices for model building, simulation, plant specification, testing, requirements, project management, and architecture modeling
- Automated setup using a MATLAB® function that installs the MATLAB MCP Server, configures your agent, and registers skills
- Supports Claude Code, Copilot, Codex, Amp, and Gemini CLI
To use AI agents with MATLAB, install the MATLAB Agentic Toolkit. Use the automated setup option to install both the toolkits in one step.
How the Simulink Agentic Toolkit Works
┌───────────┐ ┌───────────┐ ┌──────────┐
│ AI Agent │◄─MCP─►│MCP Server │◄─────►│ MATLAB / │
│ (Claude, │ │ (MATLAB │ │ Simulink │
│ Codex, │ │ MCP Core) │ └──────────┘
│ Copilot) │ └───────────┘
└───────────┘
▲
│ reads
┌─────┴─────┐
│ Skills │
│ (MBD best │
│ practices)│
└───────────┘
Your agent reads skills for domain knowledge, then calls MCP tools to interact with MATLAB and Simulink. The MATLAB MCP Server bridges the connection (downloaded during setup).
Requirements
- MATLAB R2023a or later with Simulink
- A supported AI coding agent (see Supported Platforms)
- Simulink Test (optional) — required only for the
model_testtool - Some skills require additional toolboxes (e.g., System Composer, Simscape, Stateflow). Check the
requires-productsfield in each skill'smanifest.yamlunderskills-catalog/for additional requirements.
Supported Platforms
The Simulink Agentic Toolkit works with any AI coding agent that supports skills and MCP. The automated setup has been verified on the platforms listed below. Performance may vary with other coding agents.
| Platform | Setup |
|---|---|
| Claude Code | Automated |
| GitHub Copilot | Automated |
| OpenAI Codex | Automated |
| Gemini CLI | Automated |
| Sourcegraph Amp | Automated |
Get Started with the Simulink Agentic Toolkit
These steps show you how to use the Simulink Agentic Toolkit to install the MATLAB MCP Server and add skills to your agent.
Note: For detailed instructions on configuration options for this toolkit, platform-specific notes, verification steps, and troubleshooting, see Configuration and Troubleshooting.
Install Simulink Agentic Toolkit (Automated Setup)
You can use the Agentic Toolkit installer to set up the Simulink Agentic Toolkit. The installer:
- Supports both the MATLAB and Simulink Agentic Toolkits.
- Supports connecting to an existing MATLAB session (--matlab-session-mode="auto" or "existing").
- Provides the option to configure your agent for individual projects or globally.
Follow these steps to set up the Simulink Agentic Toolkit.
-
Download agenticToolkitInstaller.mltbx.
-
Open the downloaded file to install the installer add-on. If the Add-On Manager fails to launch (common on headless machines, corporate proxies/antivirus, or older MATLAB versions — you may see this error ERR_CERT_AUTHORITY_INVALID or "Unable to open the requested feature"), install programmatically instead:
matlab.addons.toolbox.installToolbox("agenticToolkitInstaller.mltbx") -
After installing, in MATLAB, run:
setupAgenticToolkit("install")
To uninstall the toolkit, run setupAgenticToolkit("uninstall").
Existing users: If you previously set up the toolkit using the agent-driven workflow, you must uninstall that custom installation and global configuration setup. See Migrating from a Previous Installation.
Alternative Manual Installation Workflow
If you prefer to manage your own MATLAB MCP server installation and agent configuration, or if you are using an agent that is not listed under Supported Platforms, you can set up the toolkit manually, following these steps.
-
Download the latest MATLAB MCP server from the MCP server release.
-
Install the MATLAB MCP Server Toolbox by running:
./matlab-mcp-server --setup-matlabNote: If you downloaded the binary manually from GitHub releases, the asset name includes a platform suffix that depends on the release version:
Platform New asset name Legacy asset name (pre-6/18) Linux x86_64 matlab-mcp-server-linux-x64matlab-mcp-core-server-glnxa64macOS arm64 matlab-mcp-server-macos-arm64matlab-mcp-core-server-maca64macOS x86_64 matlab-mcp-server-macos-x64matlab-mcp-core-server-maci64Windows