Skip to content

Matlab Agentic Toolkit

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

Install: git clone https://github.com/matlab/matlab-agentic-toolkit

Works with Claude Code, Codex, GitHub Copilot · 1,281 GitHub stars

Install

$git clone https://github.com/matlab/matlab-agentic-toolkit

Install command taken from the project's README or registry entry. Always review code before running it.

MATLAB Agentic Toolkit

English • Español • 日本語 • 한국어 • 简体中文

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 proven 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 efficiently with Simulink®, install Simulink Agentic Toolkit. When you install either toolkit, you can choose to install both toolkits.

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 from MATLAB

Follow these steps to set up the MATLAB Agentic Toolkit in MATLAB.

  1. To download the agentic toolkit installer package, 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.

Install MATLAB Agentic Toolkit from Command Line

Similar plugs

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local…

Why use many token when few token do trick. Viral skill + proxy for coding agents that cuts 65% of tokens by talking like a caveman.

Persistent Context Across Sessions for Every Agent, Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future…

Explore related