Model or dataset
matlab/matlab-agentic-toolkit avatar
matlab/matlab-agentic-toolkit

MATLAB Agentic Toolkit: MCP Tools and Curated Skills for Coding Agents

The MATLAB Agentic Toolkit brings trusted MATLAB capabilities to AI agents, making engineering and scientific workflows agent-ready.

1,052 stars129 forksMATLABNOASSERTION

At a glance

What is it?
MathWorks ships an installer that wires the MATLAB MCP Server and a catalog of skill groups into Claude Code, Copilot, Codex, Gemini CLI and Amp. The pitch is fewer hallucinated toolbox functions and less token burn. The cost is that skills are opt-in per group, and the licence text is not stated in the repository metadata.
Who is it for?
Adopt it if your team already writes MATLAB in Claude Code, Copilot, Codex, Gemini CLI or Amp and you want the agent to call evaluate_matlab_code and run_matlab_test_file against a real session instead of guessing at toolbox APIs. Skip it if you work in Simulink only (the README points you to the separate Simulink Agentic Toolkit) or if you cannot run MATLAB R2021a or later, since the MCP server has nothing to talk to otherwise.
Can I use it commercially?
Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
Is it still maintained?
Yes. The repository received new commits within the last day.
What is it written in?
Mainly MATLAB, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on September 15, 2026, and from our analysis. They are not legal advice.

DEEP OPEN-SOURCE ANALYSIS

The failure mode this toolkit is aimed at

An AI coding agent asked to write MATLAB has no reliable way to know which functions exist in your installed toolboxes. It can produce plausible-looking calls to functions that were renamed, moved, or never existed, and it can miss features added in recent releases. The README names three symptoms directly: hallucinating toolbox functions, missing new features, and wasting time on extra steps that an experienced MATLAB user would skip. The toolkit addresses the first two by connecting the agent to a running MATLAB installation, and the third by shipping curated instructions the README calls skills. The audience is engineers and scientists who already use MATLAB and want an agent to write, test and debug code in it, not people looking for a general-purpose numerical computing assistant. The README also draws a boundary: for Simulink-only work it points to a separate Simulink Agentic Toolkit, and for teams using both there is an Agentic Toolkit Installer that handles the pair.

Two mechanisms: an MCP server and a skills catalog

The toolkit does not implement MATLAB access itself. It installs the MATLAB MCP Server, a separate repository, and registers it with your agent. That server exposes five tools according to the README table: evaluate_matlab_code runs code and returns command window output, run_matlab_file runs a program, run_matlab_test_file wraps runtests and returns structured results, check_matlab_code runs the Code Analyzer for static analysis, and detect_matlab_toolboxes lists the installed MATLAB version and toolboxes. Two MCP resources carry reference material the agent can read on demand: matlab_coding_guidelines for coding standards and plain_text_live_code_guidelines for Live Script format rules. The second mechanism is the skills catalog, which the README describes as curated expertise covering MATLAB workflows, conventions and best practices. Skill groups are split between general MATLAB topics (Core, App Building, Data Import and Analysis, Environment and Settings, External Language Interfaces, Programming, Software Development) and toolbox-specific groups such as Aerospace and AI and Statistics. The README frames the point of skills as minimizing token burn, which is a reasonable design goal: a short skill file loaded on demand costs less context than a long system prompt that is always present.

Session sharing is the part that changes behaviour

By default, the README states, the agent creates a new MATLAB session when you call it. That default matters because a fresh session starts without your workspace variables, your path additions, or your open figures. Running shareMATLABSession() in the MATLAB command window changes that, and the README notes that if multiple MATLAB sessions are open, the agent connects to whichever one most recently ran the command. It suggests adding the call to your MATLAB startup script so the behaviour is consistent across launches. This is a design with a sharp edge. Connecting to a live session means the agent can inspect and modify state you care about, and the README does not describe a sandbox, a confirmation step, or a dry-run mode for the tools it lists. Anyone planning to point an agent at a session holding production data or a long-running computation should treat that as an open question to resolve before enabling it, not as something the documentation settles.

Getting it running

The README gives a four-step path. Download agenticToolkitInstaller.mltbx from the latest release, open the downloaded file with MATLAB to install the installer add-on, then run setupAgenticToolkit("install") in the MATLAB command window. Step four is choosing skill groups: the README advises installing only the groups relevant to your work and says you can re-run the installer later to add more. MATLAB R2021a or later is required. Supported agents are configured automatically, and the README lists Claude Code, GitHub Copilot, OpenAI Codex, Gemini CLI and Amp. For anything else, the README says to consult your agent's documentation and configure the MCP server and skills manually. Verification is deliberately low-tech: ask the agent what version of MATLAB is running and to list the installed toolboxes, which exercises the detect_matlab_toolboxes tool. The README also points to a Configuration and Troubleshooting document covering offline installation, local-file installation, platform notes, manual setup without the installer, and an Adding Skills Only path for people who already have the MCP server.

The skill-loading trade-off the README admits

The most useful sentence in the README is the one about reliability: install only the skill groups relevant to your work, because agents are more reliable at triggering skills when fewer are loaded. That is an admission that the mechanism is probabilistic. A skill only helps if the agent decides to load it, and adding more groups dilutes that decision. The README offers a workaround: trigger a skill manually by name, giving /matlab-write-tests in Claude Code as the example. That guarantees the load but puts the routing decision back on the human. There is a real tension here. A team that installs everything to avoid missing a capability is working against the design. A team that installs narrowly gets better triggering but has to notice when a task falls outside its installed groups and re-run the installer. The README does not describe any automatic fallback when a needed skill group is absent, so the failure mode is an agent that simply does not know a workflow exists.

What it does not do, and what to use instead

The toolkit is not a MATLAB execution engine and it does not replace MATLAB. Every tool in the README table ultimately runs inside a MATLAB installation you already have licensed and configured, which is why R2021a or later is a hard requirement. If your goal is to run MATLAB code from a Python or Java application, the relevant path is the MATLAB Engine API for that language, not an MCP server; the difference is that the Engine API is a direct programmatic interface you call from your own code, while this toolkit exists so that a language model can decide which calls to make. If you work only in Simulink, the README explicitly redirects you to the Simulink Agentic Toolkit. And if your agent platform is not among the five listed, you are in manual-configuration territory, which the README acknowledges by pointing at the troubleshooting document rather than claiming universal support.

Release cadence, licence and what to check first

The release list shows three versions in roughly a month: 2026.08.13, 2026.08.27, and MATK-2026.09.a on 2026-09-10. The version scheme mixes a date-style tag with a MATK-prefixed tag, which suggests the project is still settling its numbering. A cadence that fast is good for keeping pace with MATLAB releases and with agent platforms that change their extension formats often, but it also means the installer and the skill files can move under you. The repository metadata reports the licence as NOASSERTION, meaning no licence was detected from the repository files. That is not the same as having no licence, and it is not the same as a permissive one. Anyone planning to redistribute the installer, vendor the skill files into an internal agent configuration, or ship them inside a product needs to read the actual licence file in the repository rather than trusting the metadata field. The README's own note about the Simulink Agentic Toolkit and the Agentic Toolkit Installer is also worth reading before you commit to a layout, since teams that later add Simulink work may need to reinstall through the combined installer rather than layering the two independently.

Editorial conclusion

Adopt it if your team already writes MATLAB in Claude Code, Copilot, Codex, Gemini CLI or Amp and you want the agent to call evaluate_matlab_code and run_matlab_test_file against a real session instead of guessing at toolbox APIs. Skip it if you work in Simulink only (the README points you to the separate Simulink Agentic Toolkit) or if you cannot run MATLAB R2021a or later, since the MCP server has nothing to talk to otherwise. Before rolling it out, confirm two things yourself: which skill groups your workflow actually needs, because the README states agents trigger skills less reliably as more are loaded, and what the repository licence actually permits, because the metadata reports NOASSERTION rather than a named licence.

Official sources

  1. Issues
  2. matlab/matlab-agentic-toolkit on GitHub
  3. Project website
  4. README
  5. Releases
Community notes

Community notes