Sandbox
@matlab/matlab-agentic-toolkit

MCP server and skills for MATLAB agents

This toolkit installs the MATLAB MCP Server and adds curated MATLAB skills to supported agents. The server gives agents tools like code execution, test running, static analysis, and toolbox detection, while the skills catalog supplies MATLAB-specific workflows and conventions. It is set up from MATLAB with the installer add-on and can be updated from the same path. The repo also includes plugin and template files for supported agents.

1,030 stars128 forksMATLABUpdated 7d ago
Who it's for

Builders who want their coding agent to use MATLAB with less setup and fewer wrong guesses.

What it delivers

You can have an agent write MATLAB code, run tests, and follow MATLAB workflows with the right context already in place.

What it does

MATLAB MCP Server setup

Installs and configures the MATLAB MCP Server so an agent can call MATLAB from the chat loop.

Curated MATLAB skills

Provides skill groups for core MATLAB work, app building, data analysis, programming, software development, and many toolbox areas.

Agent-specific packaging

Includes `.claude-plugin/marketplace.json` and template files for MCP and editor setups.

MATLAB session sharing

Lets an agent connect to an existing MATLAB session with `shareMATLABSession()` instead of starting fresh every time.

Tool-backed workflows

Gives agents tools for evaluating code, running files, running tests, checking code, and detecting installed toolboxes.

How to get it

  1. 1By default, your agent creates a new MATLAB session when you call it. To connect your…
    shareMATLABSession()

README

MATLAB Agentic Toolkit

Latest Release Release Date

The MATLAB® Agentic Toolkit allows you to use AI agents with MATLAB by giving your AI agent the knowledge and context to work efficiently with MATLAB and its toolboxes. Use this toolkit to provide trusted MATLAB capabilities to your agent. This toolkit can prevent your AI coding agent from hallucinating toolbox functions, missing new features, and wasting time with extra steps that experienced MATLAB users would skip.

Use this toolkit to:

  • Connect your AI agent to MATLAB. This toolkit does this by automatically installing the MATLAB MCP Server. You can then use your agent to write idiomatic code, generate and run tests, diagnose errors, build apps, and more.

  • Provide curated expertise, called skills, to your agent. These skills equip your agent with knowledge of MATLAB workflows, conventions, and best practices while minimizing token burn.

[!Note] To use AI agents with Simulink® only, install the Simulink Agentic Toolkit. To install both the toolkits, use the Agentic Toolkit Installer.

Requirements

  • MATLAB R2021a or later
  • AI coding agent that supports MCP servers and skills. Supported agents are configured automatically. Otherwise, refer to your agent’s documentation to manually configure the MCP server and install skills. Supported agents include:
    • Claude Code
    • GitHub® Copilot
    • OpenAI® Codex
    • Gemini™ CLI
    • Amp

Get Started with MATLAB Agentic Toolkit

These steps show you how to use the MATLAB Agentic Toolkit to install the MATLAB MCP Server and add skills to your agent.

Note: For instructions on installation from local files, installation in an offline environment, configuration options for this toolkit, platform-specific notes, verification steps, troubleshooting, and manual setup without the installer, see Configuration and Troubleshooting. If you already have the MCP server installed and only need to add skills, see Adding Skills Only.

Install MATLAB Agentic Toolkit

Follow these steps to set up the MATLAB Agentic Toolkit.

  1. To download the installer, click agenticToolkitInstaller.mltbx.
  2. Open the downloaded file with MATLAB to install the installer add-on.
  3. In MATLAB, run this command.
setupAgenticToolkit("install")
  1. Install only the skill groups relevant to your work. This helps your agent reliably trigger the right skills. To add more skill groups later, re-run the installer.
  2. By default, your agent creates a new MATLAB session when you call it. To connect your agent to the existing MATLAB session, run this command in the MATLAB command window.
shareMATLABSession()

If you are running multiple MATLAB sessions, the agent connects to the MATLAB session where you most recently ran this command.

Alternatively, you can also add this command to your MATLAB Startup Script.

Verify

Ask your agent:

What version of MATLAB is running? List the installed toolboxes.

Run and Test MATLAB Code Using MCP Tools

After you install the MATLAB Agentic Toolkit, your agent can use these tools provided by the MATLAB MCP Server.

Tasks you can ask your agent to doTool used by agent
Run MATLAB code and return command window outputevaluate_matlab_code
Run a MATLAB programrun_matlab_file
Run tests via runtests with structured resultsrun_matlab_test_file
Static analysis with the Code Analyzercheck_matlab_code
List installed MATLAB version and toolboxesdetect_matlab_toolboxes

The server also provides two MCP resources: matlab_coding_guidelines (coding standards) and plain_text_live_code_guidelines (Live Script format rules). These resources provide reference information that agents can read as needed.

Run MATLAB Workflows Using Agent Skills

After you install the MATLAB Agentic Toolkit, your agent can use MathWorks® curated skills. For best results, install only the skill groups relevant to your work — agents are more reliable at triggering skills when fewer are loaded. You can also manually trigger a specific skill by name (e.g., /matlab-write-tests in Claude Code) to guarantee it loads. To read details about all the skills, see the skills catalog. Skill groups include:

MATLAB Skills

Skill GroupDescription
MATLAB CoreCreate, debug, test, review, and manage MATLAB code and installations
MATLAB App BuildingBuild MATLAB apps programmatically using UI components, layouts, callbacks, and web integration
MATLAB Data Import and AnalysisImport, export, and analyze data in MATLAB using tables, timetables, filtering, aggregation, and time-series operations
MATLAB Environment and SettingsDiff MATLAB settings between releases and migrate startup scripts to correct setting paths
MATLAB External Language InterfacesCall Python® libraries from MATLAB and upgrade MEX files to the interleaved complex API
MATLAB ProgrammingWrite robust MATLAB functions with validated inputs
MATLAB Software DevelopmentModernize legacy code, optimize performance and memory, document and create toolboxes, create projects, and develop build plans

Toolbox Skills

Skill GroupSupported Products
AerospaceMATLAB, Aerospace Toolbox™
AI and StatisticsMATLAB, Simulink, Curve Fitting Toolbox™, Deep Learning Toolbox™, Embedded Coder™, Fixed-Point Designer™, MATLAB Coder™, MATLAB Compiler SDK™, MATLAB Report Generator™, Optimization Toolbox™, Parallel Computing Toolbox™, Statistics and Machine Learning Toolbox™, Deep Learning Toolbox Converter for ONNX Model Format™, Deep Learning Toolbox Converter for PyTorch Models™, and Deep Learning Toolbox Converter for TensorFlow Models™
AutomotiveMATLAB, Simulink, Automated Driving Toolbox™, Computer Vision Toolbox™, RoadRunner, RoadRunner Scenario, RoadRunner Scene Builder, Sensor Fusion and Tracking Toolbox™, Automated Driving Toolbox Interface for Eclipse SUMO Traffic Simulator™, and Scenario Builder for Automated Driving Toolbox™
Cloud SolutionsMATLAB, MATLAB Drive™
Code GenerationMATLAB, Embedded Coder, Fixed-Point Designer, GPU Coder™, MATLAB Coder, MATLAB Test™, Parallel Computing Toolbox, and MATLAB Coder Support Package for PyTorch and LiteRT Models™
Computational BiologyMATLAB, SimBiology™, and Statistics and Machine Learning Toolbox
Computational FinanceMATLAB, Datafeed Toolbox™, Financial Instruments Toolbox™, Financial Toolbox™, and Spreadsheet Link™
Control SystemsMATLAB, Control System Toolbox™, Predictive Maintenance Toolbox™, Signal Processing Toolbox™, Statistics and Machine Learning Toolbox, and System Identification Toolbox™
Image Processing and Computer VisionMATLAB, Computer Vision Toolbox, Deep Learning Toolbox, Image Processing Toolbox™, Lidar Toolbox™, Medical Imaging Toolbox™, and Optical Design and Simulation Library for Image Processing Toolbox™
Math and OptimizationMATLAB, Optimization Toolbox, Partial Differential Equation Toolbox™, and Symbolic Math Toolbox™
Parallel ComputingMATLAB, Parallel Computing Toolbox, and MATLAB Parallel Server™
RadarMATLAB, Mapping Toolbox™, Phased Array System Toolbox™, Radar Toolbox™, Sensor Fusion and Tracking Toolbox, and Signal Processing Toolbox
Reporting and Database AccessMATLAB, Database Toolbox™, MATLAB Report Generator, Parallel Computing Toolbox, and Simulink Report Generator™
RF and Mixed SignalMATLAB, Simulink, Antenna Toolbox™, Mixed-Signal Blockset™, RF Blockset™, RF PCB Toolbox™, RF Toolbox™, SerDes Toolbox™, Signal Integrity Toolbox, Signal Processing Toolbox, and Statistics and Machine Learning Toolbox
Robotics and Autonomous SystemsMATLAB, Navigation Toolbox™, UAV Toolbox™, and Robotics System Toolbox™
Signal ProcessingMATLAB, Simulink, Audio Toolbox™, DSP HDL Toolbox™, DSP System Toolbox™, Fixed-Point Designer, HDL Coder™, Signal Processing Toolbox, and Wavelet Toolbox™
Test and MeasurementMATLAB, Data Acquisition Toolbox™, Image Acquisition Toolbox™, Image Processing Toolbox, Industrial Communication Toolbox™, Vehicle Network Toolbox™, and MATLAB Support Package for Arduino Hardware™
Wireless CommunicationsMATLAB, 5G Toolbox™, Bluetooth® Toolbox™, Communications Toolbox™, Satellite Communications Toolbox™, Wireless Network Toolbox™, Wireless Testbench™, WLAN Toolbox™, and Wireless Testbench Support Package for NI USRP Radios™

Update MATLAB 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.

setupAgenticToolkit("update")

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


Security Considerations

When using the MATLAB 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).


Data Collection

The MATLAB MCP Server collects anonymized usage data by default. For full details, see Data Collection in the MCP server documentation. To opt out, see Disable Data Collection.


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


Support and Contributions

MathWorks encourages you to use this repository and provide feedback. Pull requests are not enabled on this repository. To request technical support or submit an enhancement request, create a GitHub issue or contact technical support.


Copyright 2026 The MathWorks, Inc.


Files in the repo

Repository payload13 top-level entries
  • .claude-plugin
  • .github
  • skills-catalog
  • templates
  • .gitattributes
  • CITATION.cff
  • Configuration_and_Troubleshooting.md
  • CONTRIBUTING.md
  • LICENSE.md
  • manifest.yaml
  • README.md
  • SECURITY.md
  • SUPPORT.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More connectors

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

43k

Universal provider proxy for OpenAI Codex & Claude Code — use any LLM (Claude, Gemini, Grok, DeepSeek, Ollama…) with Codex CLI, App, SDK, and Claude Code

14k
okf-memory/
okf-agent-memory

Git-native persistent memory for AI coding agents. Implements Google OKF v0.2 with sub-300µs in-memory BM25 search, embedded MCP server, and progressive disclosure. Slashes token bloat by 80% with zero external databases or dependencies. Built in pure Go.

547
tirth8205/
code-review-graph

Local-first code intelligence graph for MCP and CLI. Builds a persistent map of your codebase so AI coding tools read only what matters, with benchmarked context reductions on reviews and large-repo workflows.

31k
2akouwu/
reverify

Stop your AI from making things up — it proposes, deterministic tools decide, every claim checked against ground truth with evidence. Grounded facts and context survive resets. Reverse engineering is the proving ground. MCP server + CLI.

1.1k
t8y2/dbxConnectors

20 MB lightweight cross-platform database client for 90+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 90+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP Server。

19k