Skip to content
Tresca

MATLAB MCP Tool (matlab-mcp-tools)

MCP serverCommunity

Runs MATLAB scripts section by section through the Python engine and lets the agent inspect variables and read figures. By neuromechanist.

19 starsUpdated 8 months agoGitHub data from 5 Nov 2026

At a glance

Type
MCP server
Works with
MATLAB
How it connects
Drives a running copy of the tool
Access
Can modify models
Tool versions
unknown (examples use MATLAB R2024b; needs the MATLAB Engine API for Python)
Operating systems
macOS, Windows
Needs a MATLAB licence
Yes
Transport
Local (stdio)
AI clients documented
Claude Code, Cursor
Licence
BSD-3-Clause
Language
Python

What it can do

  • Runs whole scripts or single sections by index, title or line range, keeping the workspace between calls.
  • Reads the workspace, single variables with depth and size limits, and struct metadata without pulling the data.
  • Extracts figure metadata and raw plot data, and prepares a figure image for the model to analyse.
  • Lints code with checkcode and creates new .m scripts; 15 tools in all.

Limitations

  • Needs the uv package manager and a working MATLAB Engine for Python.
  • On Windows the installer runs in Git Bash with admin rights.

Install

MCP servers and skills run code on your computer. Review the source before installing.

AI-generated models, drawings and results must be checked by a qualified engineer before use.