Connect AI agents to MATLAB for code execution, toolbox discovery, async jobs, progress reporting, custom tools, and interactive plots.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Matlab MCP Server Python.
execute_codeRun MATLAB code. Returns inline if fast (<30s), or a job ID if promoted to async
check_codeRun `checkcode`/`mlint`. Returns structured warnings/errors
get_workspaceShow variables in the current MATLAB workspace
get_job_statusStatus + progress percentage for running jobs
get_job_resultFull result of a completed job
cancel_jobCancel a pending or running job
Give any AI agent the power of MATLAB โ via the Model Context Protocol
Quick Start โข Examples โข Tools Reference โข Configuration โข Wiki
A Python MCP server that connects any AI agent (Claude, Cursor, Copilot, custom agents) to a shared MATLAB installation. Execute code, discover toolboxes, check code quality, get interactive Plotly plots, and run long simulations โ all through MCP.
| Feature | Description |
|---|---|
| Execute MATLAB code | Sync for fast commands, auto-async for long jobs |
| Elastic engine pool | Scales 2-10+ engines based on demand |
| Toolbox discovery | Browse installed toolboxes, functions, help text |
| Code checker | Run checkcode/mlint before execution |
| Interactive plots | Figures auto-converted to Plotly JSON |
| Multi-user (SSE) | Session isolation with per-user workspaces |
| Custom tools | Expose your .m functions as MCP tools via YAML |
| Progress reporting | Long jobs report percentage back to the agent |
| Cross-platform | Windows + macOS, MATLAB R2022b+ |
| One-click Windows install | Offline install.bat โ no admin rights needed |
Every MATLAB figure is automatically converted into an interactive Plotly chart โ no extra code needed. When your MATLAB code creates a plot, the server:
mcp_extract_props.m โ axes, line data, labels, colors, markers, legends, subplots-- โ dash), markers (o โ circle), legend positions, axis scales, colormapsPlotly.newPlot()Supported plot types: line, scatter, bar, area, subplots (subplot/tiledlayout), multiple axes, log/linear scales
Style fidelity: Line styles, marker shapes, colors (RGB), line widths, font sizes, axis labels, titles, legends, grid lines, axis limits, and background colors are all preserved.
...automatically becomes this interactive Plotly chart:

Line styles, colors, markers, legends, and axis labels are all preserved in the conversion.
Pixi (recommended, no admin needed):
Pixi installs Python + all dependencies into an isolated, per-project environment โ no venv wrangling, no admin rights, works the same on Windows/macOS/Linux.
pixi.lock is committed, so pixi run ... always reproduces the exact resolved
environment (Python 3.10โ3.12, fastmcp==3.4.4) on any machine โ no separate pip install
step needed. matlabengine is deliberately never a static dependency (its sdist build reads
the local MATLAB installation and fails on machines without a matching release); the
install-engine task installs it on demand, matched to your detected MATLAB release.
Windows (one-click, no admin needed):
The installer auto-detects MATLAB, creates a virtual environment, and installs everything from bundled wheels โ fully offline, no internet required. Works on Windows 10/11 with Python 3.10, 3.11, or 3.12.
macOS / Linux:
With Pixi, the equivalent tasks are pixi run start (stdio), pixi run http
(streamablehttp, preferred), and pixi run sse (legacy alias). streamablehttp is the
transport to reach for on new setups; sse continues to work unchanged so existing
integrations are never broken.
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
Add to .cursor/mcp.json in your project:
Note: The Docker image does not include MATLAB. You must mount your own MATLAB installation.
Upgrading? If you previously installed as
matlab-mcp-server, uninstall first:pip uninstall matlab-mcp-server && pip install matlab-mcp-python
Ask your AI agent:
"Calculate the eigenvalues of a 3x3 magic square in MATLAB"
The agent calls execute_code:
Result returned inline:
"Generate a 1kHz sine wave, add noise, then filter it with a low-pass Butterworth filter and plot both"
Returns: Interactive Plotly chart + static PNG + thumbnail.
"Run a Monte Carlo simulation with 1 million trials"
The agent gets a job ID immediately, polls progress ("Trial 500000/1000000 โ 50%"), and retrieves results when done.
Expose your proprietary MATLAB functions as first-class AI tools. Create custom_tools.yaml:
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/hansur94-matlab-mcp-server-python)<a href="https://allmcps.com/mcp/hansur94-matlab-mcp-server-python"><img src="https://allmcps.com/api/badge/hansur94-matlab-mcp-server-python?style=directory" alt="Matlab MCP Server Python on AllMCPs" /></a>