matlab-mcp
16
The MATLAB MCP Server allows users to integrate and execute MATLAB scripts and functions through the Model Context Protocol, providing tools to create and manage MATLAB files remotely. It supports additional features like script execution with argument passing and function calls, making it a versatile tool for MATLAB automation.
MATLAB MCP Server
This Model Context Protocol (MCP) server facilitates integration with MATLAB, enabling users to create and execute MATLAB scripts and functions through Claude or other MCP clients.
Setup Requirements
- Python 3.11
- MATLAB R2024a
- uv package manager
Features
- Create MATLAB Script: Save in
matlab_scripts
directory, must be valid MATLAB identifiers. - Create MATLAB Function: Valid function definitions, saved in
matlab_scripts
. - Execute MATLAB Script: Get output, figures, and workspace variables.
- Call MATLAB Function: Returns function output and figures.
Testing
Use the MCP Inspector to test the server and ensure correct setup.
Troubleshooting
- Ensure correct
MATLAB_PATH
. - Check Python version.
- Verify script directory and syntax.
Updates
Regular updates recommended for MATLAB installation and Python packages.