Introducing the MATLAB Agentic Toolkit
Short version: MathWorks have released the MATLAB Agentic Toolkit which will significantly improve the life of anyone who is using MATLAB and Simulink with agentic AI systems such as Claude Code or OpenAI Codex. Go and get it from here: https://github.com/matlab/matlab-agentic-toolkit
Long version: On The MATLAB Blog Introducing the MATLAB Agentic Toolkit » The MATLAB Blog - MATLAB & Simulink
5 Comments
Time DescendingHappy to help test workflows, Hans — and sharing something relevant that came out of using the toolkit in production.
While building Simscape models for powertrain simulation (PMSM FOC, quarter-car suspension) with Claude Code and the SATK, I ran into two friction points:
1. Verbose output filling Claude's context window. A single whos call returns a 1,800-character aligned table. Repeated solver warnings fire once per timestep. A Simulink build log repeats ### Starting build procedure for: for every referenced model. None of that is useful to the LLM — it's just token waste.
2. The simulink server failing to attach (--matlab-session-mode=existing). The root cause: matlab-mcp-core-server starts MATLAB lazily (on first tool call), but by then the simulink server's 30-second discovery window has expired. Fix: add --initialize-matlab-on-startup=true to the matlab server args — MATLAB boots at Claude Code launch and the simulink server finds it within the window.
I built an open-source proxy that sits between Claude Code and matlab-mcp-core-server to address both: 14 domain-specific compression rules (48–66% token reduction on Simscape output) and session ordering fixed. Validated on a 2-DOF quarter-car Simscape model — 61.7% lower peak chassis velocity with active vs passive PD control, model built entirely via model_edit.
Happy to share more about the Simscape workflows if useful for testing.
Hot on the heels of this release is the Simulink Agentic Toolkit - https://github.com/simulink/simulink-agentic-toolkit. I've added a link in the right colum of the Generative AI channel page.
What does your roadmap look like.Thoughts on toolbox specific skills?
Sign in to participate