A
securityA
licenseA
qualityIntegrates MATLAB with AI to execute code, generate scripts from natural language, and access MATLAB documentation seamlessly.
Last updated -
2
11
JavaScript
Apache 2.0
This Model Context Protocol (MCP) server provides integration with MATLAB, allowing you to create and execute MATLAB scripts and functions through Claude or other MCP clients.
MATLAB_PATH
environment variable.matlab_server.py
: The main MCP server implementationmatlab_scripts/
: Directory where all MATLAB scripts and functions are saved (created automatically)pyproject.toml
: Python project configuration.python-version
: Specifies Python version for uvMake sure to:
/absolute/path/to/matlab-mcp
with the actual path to your project directoryMATLAB_PATH
points to your MATLAB installationThe server provides several tools:
create_matlab_script
: Create a new MATLAB script filematlab_scripts
directorycreate_matlab_function
: Create a new MATLAB function filematlab_scripts
directoryexecute_matlab_script
: Run a MATLAB script and get resultscall_matlab_function
: Call a MATLAB function with argumentsYou can test the server using the MCP Inspector:
Example test script:
matlab_scripts
directory<script_name>.m
or <function_name>.m
matlab_server.py
MATLAB_PATH
: Path to your MATLAB installation/Applications/MATLAB_R2024a.app
python --version
uv python pin 3.11
if neededmatlab_scripts
directory existsuv pip install --upgrade mcp[cli]
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Allows interaction with MATLAB by creating and executing scripts and functions through Claude or other MCP clients, supporting script management and execution result retrieval with environment configuration capabilities.