MATLAB MCP Server
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.
Why?
- Your AI agent can now write and run MATLAB code directly
- Long-running jobs (hours!) run async — the agent keeps working while MATLAB computes
- Multiple users share one MATLAB server via an elastic engine pool
- Interactive plots come back as Plotly JSON — renderable in any web UI
- Custom MATLAB libraries become first-class AI tools with zero code changes
Features
| 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 |






