MCP server to run MATLAB code from LLM via the Matlab Engine API.
Overview
what is MatlabMCP?
MatlabMCP is a server that allows users to run MATLAB code from Python using the MATLAB Engine API, facilitating integration between Python applications and MATLAB functionalities.
how to use MatlabMCP?
To use MatlabMCP, clone the repository, set up a Python virtual environment, ensure MATLAB is installed with the MATLAB Engine API, and configure the server settings in your application.
key features of MatlabMCP?
- Execute MATLAB code directly from Python.
- Share a single MATLAB session across multiple requests.
- Future support for complex Simulink models and feeding whole code files to MATLAB.
use cases of MatlabMCP?
- Running MATLAB scripts from Python applications.
- Integrating MATLAB functionalities into data analysis workflows.
- Developing applications that require real-time MATLAB computations.
FAQ from MatlabMCP?
- What are the requirements to run MatlabMCP?
You need Python 3.12 or higher and MATLAB 2025a or higher with the MATLAB Engine API for Python installed.
- Can I run Simulink models with MatlabMCP?
Support for Simulink models is planned for future releases.
- How do I configure MatlabMCP?
You need to adjust the claude_desktop_config.json file to include the MatlabMCP server configuration.