The MATLAB Agentic Toolkit brings trusted MATLAB capabilities to AI agents, making engineering and scientific workflows agent-ready.
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.
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.
| Platform | Setup | Notes |
|---|---|---|
| Claude Code | Automated | Also supports no-clone marketplace install (skills only) |
| GitHub® Copilot | Automated | |
| OpenAI® Codex | Automated | |
| Gemini™ CLI | Automated | |
| Sourcegraph Amp | Automated | |
| Cursor | Manual | Untested |
Automated setup has been verified with basic workflows on each platform except Cursor. The toolkit is under active development — please report issues if you encounter problems.
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.
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-toolkitLaunch 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-toolkitThis installs skills only. Your existing MCP configuration is not modified. See the Getting Started guide for details.
If you installed the MATLAB MCP Core Server yourself, you just need skills. See Adding Skills Only in the Getting Started guide.
Ask your agent:
What version of MATLAB is running? List the installed toolboxes.
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 |
The server also provides two MCP resources: matlab_coding_guidelines (coding standards) and plain_text_live_code_guidelines (Live Script format rules).
Skills are organized in the skills catalog.
Toolkit — setup and configuration:
| Skill | What it teaches your agent |
|---|---|
matlab-agentic-toolkit-setup |
Install and configure the toolkit — detect MATLAB, install MCP server, register plugin |
matlab-core — foundational MATLAB skills:
| Skill | What it teaches your agent |
|---|---|
matlab-testing |
Generate and run unit tests with matlab.unittest. Parameterized tests, fixtures, coverage |
matlab-creating-live-scripts |
Create plain-text Live Scripts with rich text, equations, and inline figures (R2025a+) |
matlab-building-apps |
Build apps programmatically with uifigure, uigridlayout, components, and uihtml |
matlab-reviewing-code |
Review code for quality, performance, and adherence to MathWorks coding standards |
matlab-debugging |
Diagnose errors via MCP eval. Programmatic breakpoints, diagnostic instrumentation |
matlab-modernizing-code |
Replace deprecated MATLAB functions and anti-patterns with modern equivalents |
MATLAB and Simulink are registered trademarks of The MathWorks, Inc. See mathworks.com/trademarks for a list of additional trademarks. Other product or brand names may be trademarks or registered trademarks of their respective holders.
We welcome feedback through GitHub Issues. Pull requests are reviewed for ideas and feedback but are not merged from external contributors. See CONTRIBUTING.md for details.
MathWorks encourages you to use this repository and provide feedback. To request technical support or submit an enhancement request, create a GitHub issue or email genai-support@mathworks.com. For MATLAB MCP Core Server issues and support, see the MATLAB MCP Core Server repository.
When using the MATLAB Agentic Toolkit and MATLAB MCP Core 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).
The MATLAB MCP Core server may only be used with MATLAB installations that are used as a Personal Automation Server. Use with a central Automation Server is not allowed. Please contact MathWorks if Automation Server use is required. For more information see the Program Offering Guide (MathWorks).
Copyright 2025-2026 The MathWorks, Inc.