by matlab
Run MATLAB® using AI applications with the official MATLAB MCP Server from MathWorks®. This MCP server for MATLAB supports a wide range of coding agents like Claude Code® and Visual Studio® Code.
# Add to your Claude Code skills
git clone https://github.com/matlab/matlab-mcp-core-serverRun MATLAB® using AI applications with the official MATLAB MCP Server from MathWorks®. The MATLAB MCP Core Server allows your AI applications to:
Install MATLAB (MathWorks) 2020b or later and add it to the system PATH.
For Windows or Linux, download the Latest Release from GitHub®. Alternatively, you can install Go and build the binary from source using
go install github.com/matlab/matlab-mcp-core-server/cmd/matlab-mcp-core-server@latest
For macOS, first download the latest release by running the following command in your terminal:
curl -L -o ~/Downloads/matlab-mcp-core-server https://github.com/matlab/matlab-mcp-core-server/releases/latest/download/matlab-mcp-core-server-maca64
curl -L -o ~/Downloads/matlab-mcp-core-server https://github.com/matlab/matlab-mcp-core-server/releases/latest/download/matlab-mcp-core-server-maci64
Then grant executable permissions to the downloaded binary so you can run the MATLAB MCP Core Server:
chmod +x ~/Downloads/matlab-mcp-core-server
Add the MATLAB MCP Core Server to your AI application. You can find instructions for adding MCP servers in the documentation of your AI application. For example instructions on using Claude Code®, Claude Desktop®, and GitHub Copilot in Visual Studio® Code, see below. Note that you can customize the server by specifying optional Arguments.
In your terminal, run the following, remembering to insert the full path to the server binary you acquired in the setup:
claude mcp add --transport stdio matlab -- /fullpath/to/matlab-mcp-core-server-binary
You can customize the server by specifying optional Arguments. Note the -- separator between Claude Code's options and the server arguments:
claude mcp add --transport stdio matlab -- /fullpath/to/matlab-mcp-core-server-binary --initial-working-folder=/home/username/myproject
For details on adding MCP servers in Claude Code, see Add a local stdio server (Claude Code). To remove the server later, run:
claude mcp remove matlab
Foll...