MATLAB® Agentic Toolkit
The MATLAB Agentic Toolkit brings trusted MATLAB capabilities to AI agents, making engineering and scientific workflows agent-ready.
What It Does
AI coding agents are increasingly capable with MATLAB — but capability isn't expertise. Without guidance, agents reinvent what toolbox functions already provide, miss features they don't know about, and burn through extra steps that an experienced MATLAB user would skip. The MATLAB Agentic Toolkit gives your agent the knowledge and context to work efficiently from the start.
The toolkit connects your AI agent to MATLAB and equips it with expert knowledge — the workflows, conventions, and best practices to make the best use of MATLAB while minimizing token burn. Your agent learns to write idiomatic code, generate and run tests, diagnose errors, build apps, and more.
The toolkit works with today's leading AI coding agents and is designed to evolve as the landscape changes.
[!IMPORTANT]
To use AI agents with Simulink, install the Simulink Agentic Toolkit.
How It Works
The toolkit has two jobs. First, it gives your agent a live connection to MATLAB — so it can run code, execute tests, and analyze results, not just read and write files. Second, it provides curated expertise (called skills) that teach your agent how an experienced MATLAB engineer would approach a task. Your agent reads the relevant skill, then uses the MATLAB connection to do the work.
The toolkit ships automated setup for all supported platforms. Clone the repository, launch your agent, and ask it to set up the toolkit.
Supported Platforms
Automated setup has been verified with basic workflows on each platform. The toolkit is under active development — please report issues if you encounter problems.
Quick Start
Full walkthrough: See the Getting Started guide for detailed instructions, platform-specific notes, verification steps, and troubleshooting.
Prerequisites:
- MATLAB R2020b or later
- Supported AI coding agent
- Git™
The MATLAB Agentic Toolkit helps you install and configure the MATLAB MCP Core Server, or can be configured to use your existing installation.
Full Setup (recommended)
Clone the repository, launch your agent from the toolkit directory, and ask it to set up the toolkit.
git clone https://github.com/matlab/matlab-agentic-toolkit.git
cd matlab-agentic-toolkit
Launch your agent (claude, codex, gemini, etc.) and ask:
Set up the MATLAB Agentic Toolkit
Setup looks for your MATLAB installation(s), downloads the MCP server, writes your agent's global configuration, and registers skills. Once complete, start a new session in any project directory — MATLAB tools and skills are available everywhere.
Claude Code — no clone required: If you already have the MCP server configured, you can add skills directly without cloning:
claude plugin marketplace add "https://github.com/matlab/matlab-agentic-toolkit"
claude plugin install matlab-core@matlab-agentic-toolkit
This installs skills only. Your existing MCP configuration is not modified. See the Getting Started guide for details.
Already Have the MCP Server?
If you installed the MATLAB MCP Core Server yourself, you just need skills. See Adding Skills Only in the Getting Started guide.
Verify
Ask your agent:
What version of MATLAB is running? List the installed toolboxes.
MCP Tools
Provided by the MATLAB MCP Core Server:
| Tool | What your agent can do |
|---|
evaluate_matlab_code | Run MATLAB code and return command window output |
run_matlab_file | Run a MATLAB program |
run_matlab_test_file | Run tests via runtests with structured results |
check_matlab_code | Static analysis with the Code Analyzer |
detect_matlab_toolboxes | List installed MATLAB version and toolboxes |