Logo Simulink Agentic Toolkit

Simulink Agentic Toolkit

Tổ chứcPhổ biến
matlab

The Simulink Agentic Toolkit gives your AI agent both the tools and the expertise to work effectively with Simulink and Model-Based Design.

Nhà phát hànhmatlab
Kho mãsimulink-agentic-toolkit
Ngôn ngữHTML
Bản fork
119
Sao
1.3K
Công cụ có sẵn
0
Phương thức truyền tảistdio
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Simulink Agentic Toolkit cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    1.3K sao và 119 bản fork từ kho mã được liên kết.

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_test tool
  • Some skills require additional toolboxes (e.g., System Composer, Simscape, Stateflow). Check the requires-products field in each skill's manifest.yaml under skills-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.

PlatformSetup
Claude CodeAutomated
GitHub CopilotAutomated
OpenAI CodexAutomated
Gemini CLIAutomated
Sourcegraph AmpAutomated

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.

  1. Download agenticToolkitInstaller.mltbx.

  2. 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
    matlab.addons.toolbox.installToolbox("agenticToolkitInstaller.mltbx")
  3. After installing, in MATLAB, run:

    matlab
    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.

  1. Download the latest MATLAB MCP server from the MCP server release.

  2. Install the MATLAB MCP Server Toolbox by running:

    bash
    ./matlab-mcp-server --setup-matlab

    Note: If you downloaded the binary manually from GitHub releases, the asset name includes a platform suffix that depends on the release version:

    PlatformNew asset nameLegacy asset name (pre-6/18)
    Linux x86_64matlab-mcp-server-linux-x64matlab-mcp-core-server-glnxa64
    macOS arm64matlab-mcp-server-macos-arm64matlab-mcp-core-server-maca64
    macOS x86_64matlab-mcp-server-macos-x64matlab-mcp-core-server-maci64
    Windows x86_64matlab-mcp-server-windows-x64.exematlab-mcp-core-server-win64.exe

    Rename the downloaded file to matlab-mcp-server (or matlab-mcp-server.exe on Windows) and place it in ~/.matlab/agentic-toolkits/bin/. The automated setup handles this automatically.

  3. Connect the MATLAB MCP Server to a running MATLAB session. In the command window of the running MATLAB session, run shareMATLABSession().

  4. Clone the Simulink Agentic Toolkit repository, then add toolkit flags to your agent's MCP server configuration:

    --matlab-session-mode=existing
    --extension-file=/path/to/simulink-agentic-toolkit/tools/tools.json
  5. Register skills by pointing your agent's skill or prompt directory at each non-empty group under skills-catalog/ — model-based-design-core/, model-based-system-engineering/, verification-validation-and-test/, simulink-simulation/, simulink-modeling/, control-systems/, simulink-environment-fundamentals/, signal-processing/, physical-modeling/, code-generation/, and real-time-simulation-and-testing/. Each skill is a self-contained SKILL.md with a manifest.yaml.

    For platforms that discover skills from ~/.agents/skills/, create symlinks:

    bash
    mkdir -p ~/.agents/skills
    for group in model-based-design-core model-based-system-engineering verification-validation-and-test simulink-simulation simulink-modeling control-systems simulink-environment-fundamentals signal-processing physical-modeling code-generation real-time-simulation-and-testing; do
      for skill in /path/to/simulink-agentic-toolkit/skills-catalog/$group/*/; do
        ln -s "$skill" ~/.agents/skills/$(basename "$skill")
      done
    done

MATLAB Setup

The MATLAB MCP Server connects to a running MATLAB session. For each session, add the Simulink Agentic Toolkit to the path and initialize it.

On Linux and macOS, use:

matlab
addpath("~/.matlab/agentic-toolkits/simulink")
satk_initialize

On Windows, use:

matlab
addpath(fullfile(getenv('USERPROFILE'), '.matlab', 'agentic-toolkits', 'simulink'))
satk_initialize

This does three things:

  1. Adds the toolkit's tool directories to the MATLAB path
  2. Calls shareMATLABSession so that the MATLAB MCP server can connect to running MATLAB session
  3. Runs validate_installation to check that everything is configured correctly

If you installed the MCP server binary to a non-default location (e.g., a network share), pass its path explicitly:

matlab
satk_initialize(MCPServerPath="//server/share/bin/matlab-mcp-server")

Note: satk_initialize must run once per MATLAB session. To run it automatically in future sessions, add the block below to your startup.m.

Finding or creating your startup.m:

  1. List existing startup files:
    matlab
    which('startup', '-all')
  2. If any are listed, edit the first entry — MATLAB runs the one it finds first on the path.
  3. If none are listed, create one under userpath:
    matlab
    edit(fullfile(userpath, 'startup.m'))
    If that errors because userpath has multiple folders, run userpath, copy the first folder, and use it explicitly: edit(fullfile('<thatFolder>', 'startup.m')).

Add this block to startup.m:

matlab
% Initialize the Simulink Agentic Toolkit (adjust version/path as needed)
if contains(version, 'R2026a')
    if ispc
        addpath(fullfile(getenv('USERPROFILE'), '.matlab', 'agentic-toolkits', 'simulink'))
    else
        addpath("~/.matlab/agentic-toolkits/simulink")
    end
    satk_initialize
end

Verify

Check that your agent has loaded skills or plugins on its path (e.g., Claude Code's /skills command), confirm the Simulink Agentic Toolkit skills are listed. Open any Simulink model — your own, or a shipped example.

matlab
openExample('simulink_general/sldemo_househeatExample')

This opens the shipped example model sldemo_househeat. Ask your agent:

Describe the structure of the currently open model.

Library Configuration

Toolbox Libraries

Use satk.Configuration.setToolboxes to activate pre-built knowledge bases for installed MathWorks toolboxes:

matlab
satk.Configuration.setToolboxes('all')                                 % Activate all installed toolbox KBs
satk.Configuration.setToolboxes({'Aerospace Blockset', 'Simscape'})    % Activate specific toolboxes by name
satk.Configuration.setToolboxes('none')                                % Deactivate all toolbox KBs

Custom Libraries

To use your own custom Simulink block libraries with the toolkit, register them in MATLAB once:

matlab
satk.Configuration.setCustomLibraries("C:\path\to\customLibs")

This declares your custom libraries. By default (GenerateKB=false), the knowledge base is not built immediately — on the next model-building task or on invocation of the 'setup-custom-libraries' skill, the agent indexes the libraries into a knowledge base (~3–5 min to complete), enabling usage of custom blocks alongside built-in ones.

Options

setCustomLibraries accepts the following options:

matlab
% Build the knowledge base deterministically from block metadata present in the libraries. 
satk.Configuration.setCustomLibraries("C:\path\to\customLibs", GenerateKB=true)
% Choose where the KB and configuration folder is written.
% Omitted  -> MATLAB prefdir (default): per-user, global, paths stored absolute.
% <dir>    -> an existing directory: library paths on the same drive are
%             stored relative to this root (so the .satk folder can be
%             committed and shared); paths on a different drive are stored
%             absolute.
satk.Configuration.setCustomLibraries("libs", Location="C:\repo\myProject")

Custom libraries anchor the location. Once you register custom libraries with a Location, activating toolbox knowledge bases with setToolboxes writes them into that same .satk.

If you activate toolbox KBs globally first and later register custom libraries with a Location, the toolbox KBs are moved alongside the custom libraries automatically.

Clearing Configuration

To remove the global (prefdir) library configuration:

matlab
satk.Configuration.clearConfig()

To remove a project-local configuration (its .satk/ folder and any satk-libraries.json at the project root) — for example when a project config is shadowing the global one and you want the global config to win:

matlab
satk.Configuration.clearConfig("C:\repo\myProject")

Both forms are destructive and not reversible.

Update Simulink Agentic Toolkit

To update the toolkit, download the latest installer add-on by clicking agenticToolkitInstaller.mltbx. Open the downloaded file with MATLAB, and run this command in MATLAB:

matlab
setupAgenticToolkit("update")

This updates the skills, configurations, and MCP server binary for both the MATLAB and Simulink Agentic Toolkits.

MCP Tools

After you install the Simulink Agentic Toolkit, your agent can use the following tools.

ToolWhat your agent can do
model_overviewExplore model architecture. Review subsystem hierarchy, interfaces, and how major components connect
model_readUnderstand model behavior. Inspect blocks, algorithmic expressions, signal flow, and parameter values
model_editBuild and modify models. Add blocks, wire signals, create subsystems, and configure parameters as needed
model_checkValidate model structure. Detect unconnected ports, dangling lines, and Edit-Time Checks on States and Subcharts
model_read_diagnosticsRead diagnostics. Retrieve errors, warnings, and info messages from the Diagnostic Viewer after compilation, simulation, or code generation
model_testVerify requirements. Run human-readable Gherkin tests with automatic harness generation (requires Simulink Test)
model_query_paramsInspect any parameter. Query block settings, signal properties, solver config, and logging flags
model_resolve_paramsGet actual values. Resolve workspace variables like Kp to their numeric values across all scopes
model_scanFind something specific, fast. Regex-search the saved .slx file on disk for a block name, parameter value, or string without loading the model

Agent Skills

After you install the Simulink Agentic Toolkit, your agent can use the skills in the following groups. To see lists of available skills, see skills catalog.

Skill GroupDescription
Model-Based Design CoreCore Model-Based Design (MBD) skills for building, testing, and specifying Simulink models
Model-Based System EngineeringModel-Based System Engineering skills for System Composer architecture models
Verification, Validation, and TestAuthor custom Model Advisor checks, run compliance reviews against industry standards (MISRA, MAB, ISO 26262, DO-178C, etc.), fix SLDV incompatibilities, and explain missing coverage
Simulink SimulationSkills for constructing simulation input datasets and configuring simulation workflows
Simulink ModelingConfigure and integrate C/C++ code into Simulink models via C Function blocks
Control SystemsControl system design and analysis skills for Simulink models
Simulink Environment FundamentalsCore Simulink environment capabilities, including discovering shipped example models
Signal ProcessingFrame-based streaming DSP models in Simulink using DSP System Toolbox
Physical ModelingModel, simulate, and analyze multidomain physical systems with the Simscape product family
Code GenerationPrepare Simulink models for production code generation, including single-precision conversion, optimizing generated embedded code, configuring Embedded Coder deployment settings, and customizing A2L calibration files
Real-Time Simulation and TestingConfigure, deploy, and run Simulink models on real-time target computers with Simulink Real-Time

Security Considerations

When using the Simulink Agentic Toolkit and MATLAB MCP Server, you should thoroughly review and validate all tool calls before you run them. Always keep a human in the loop for important actions and only proceed once you are confident the call will do exactly what you expect. For more information, see User Interaction Model (MCP) and Security Considerations (MCP).

Licensing and Usage

The license is available in the LICENSE.md file in this GitHub repository.

MCP servers are only permitted to be used with MATLAB and Simulink in accordance with the MathWorks Software License Agreement, and must not be shared by multiple users. Contact MathWorks if you need to support shared or centralized server use.

Research Preview: Agentic Task Explorer

The Agentic Task Explorer provides curated, multi-step tasks that show what agents can do with Simulink — model understanding, creation, modification, testing, bug fixing, and verification. Each task includes Simulink models and supporting files, ready to go.

matlab
slAgenticTaskExplorer

Select a task from the interactive UI. The explorer stages it into an isolated workspace with all required files, then opens your coding agent. Each task presents step-by-step prompts — copy each prompt into your coding agent and watch it work.

This is a research preview. Behavior and interfaces might change.


Report Bugs

If you encounter a bug, use the filing-bug-reports skill to generate a report before opening a GitHub issue. Ask your agent:

File a bug report for this issue

The skill automatically captures environment details, reproduction steps, and error output. Run the skill in the same session where the bug occurred, because it uses conversation context to reconstruct what happened. Then open a bug report and paste the generated report.


Support and Contributions

MathWorks encourages you to use this repository and provide feedback. To request technical support or submit an enhancement request, create a GitHub issue or contact technical support. For MATLAB MCP Server issues, see the MATLAB MCP Server repository.

Pull requests are not enabled on this repository. See CONTRIBUTING.md for details.

Copyright 2025-2026 The MathWorks, Inc.

Dùng MCP Simulink Agentic Toolkit với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Simulink Agentic Toolkit, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Simulink Agentic Toolkit làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Simulink Agentic Toolkit.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "simulink-agentic-toolkit": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Simulink Agentic Toolkit, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Simulink Agentic Toolkit.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Simulink Agentic Toolkit giúp tôi làm việc này không?
Simulink Agentic Toolkit
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Simulink Agentic Toolkit.

Câu hỏi thường gặp

Máy chủ MCP Simulink Agentic Toolkit dùng để làm gì?

Simulink Agentic Toolkit là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Simulink Agentic Toolkit với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Simulink Agentic Toolkit với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Simulink Agentic Toolkit với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Simulink Agentic Toolkit, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Simulink Agentic Toolkit với TypingMind?

Simulink Agentic Toolkit hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Simulink Agentic Toolkit cung cấp những công cụ nào trong TypingMind?

Simulink Agentic Toolkit cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Simulink Agentic Toolkit không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Simulink Agentic Toolkit yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇