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-serverGuides for using ai agents skills like matlab-mcp-server.
Last scanned: 6/19/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-06-19T09:05:33.694Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}matlab-mcp-server is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built 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. It has 1,020 GitHub stars.
Yes. matlab-mcp-server passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/matlab/matlab-mcp-server" and add it to your Claude Code skills directory (see the Installation section above).
matlab-mcp-server is primarily written in Go. It is open-source under matlab on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh matlab-mcp-server against similar tools.
No comments yet. Be the first to share your thoughts!
[!WARNING] As of v0.11.0, MATLAB MCP Core Server has been renamed to MATLAB MCP Server. To use the latest version of the server after this change, you must update your settings.
Changes Action Required Binary namesNew format: matlab-mcp-server-<os>-<arch>[.exe]Example:matlab-mcp-server-windows-x64.exeUpdate the binary name in the configuration settings of your AI application, usually a .jsonfile.Toolbox Updated and renamed: MATLAB MCP Core Server Toolbox→MATLAB MCP Server ToolboxInstall the latest version of the toolbox by running ./matlab-mcp-server --setup-matlab. You require the toolbox to connect to existing MATLAB sessions. For details, seematlab-session-modein the Arguments section.Repository URL github.com/matlab/matlab-mcp-core-server→github.com/matlab/matlab-mcp-serverNone. GitHub redirects automatically. Go module github.com/matlab/matlab-mcp-core-server→github.com/matlab/matlab-mcp-serverIf you are using the MATLAB MCP Core Server module in a Go project, update the module name in go.modand your import declarations.
Run MATLAB® using AI applications with the official MATLAB MCP Server from MathWorks®. The MATLAB MCP Server allows your AI applications to:
To assist your agent in using MATLAB and Simulink, you can use skills from MATLAB Agentic Toolkit (GitHub) and Simulink Agentic Toolkit (GitHub), which can also install this MCP server for you.
Install MATLAB (MathWorks) R2021a or later and add it to the system PATH. The MATLAB MCP Server supports MATLAB releases from the past five years.
The server supports any AI application that uses Model Context Protocol. To set up the MATLAB MCP Server for Claude Desktop, skip to the instructions for Claude Desktop. To set up the server for other applications, follow these instructions:
For Windows or Linux, Download the Latest Release. (Alternatively, you can build from source: install Go and build the binary using go install github.com/matlab/matlab-mcp-server/cmd/matlab-mcp-server@latest).
For macOS, first download the latest release by running the following command in your terminal:
curl -L -o ~/Downloads/matlab-mcp-server https://github.com/matlab/matlab-mcp-server/releases/latest/download/matlab-mcp-server-macos-amd64
curl -L -o ~/Downloads/matlab-mcp-server https://github.com/matlab/matlab-mcp-server/releases/latest/download/matlab-mcp-server-macos-x64
Then grant executable permissions to the downloaded binary so you can run the MATLAB MCP Server:
chmod +x ~/Downloads/matlab-mcp-server
Add the MATLAB MCP 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-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-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
You install the MATLAB MCP Server in Claude Desktop using the MATLAB MCP Server bundle.
Install the Filesystem extension in Claude Desktop to allow Claude to read and write files on your system. In Claude Desktop, click Settings > Extensions > Browse extensions. Search for the Filesystem extension developed by Anthropic and click Install. Specify the folders you want to allow the MCP server to access, then toggle the Disabled button to Enable the Filesystem extension.
Download the MATLAB MCP Server bundle matlab-mcp-server.mcpb from the Latest Release page.
To install the MATLAB MCP Server bundle as a desktop extension, double click the downloaded matlab-mcp-server.mcpb file and click Install in Claude Desktop. (Alternatively, navigate in Claude to File menu > Settings > Extensions > Advanced Settings > Install Extension and select the matlab-mcp-server.mcpb file. Click Install).
To customize the behaviour of the MATLAB MCP Server, navigate to Settings > Extensions > Configure, where you can modify the server's Arguments.
In your VS Code workspace, create a file named .vscode/mcp.json. Insert the following JSON, remembering to specify the full path to the server binary you acquired in the setup, as well as any Arguments. Then save the file. (Note that on Windows, your paths require extra slashes as escape characters).
{
"servers": {
"matlab": {
"type": "stdio",
"command": "C:\\fullpath\\to\\matlab-mcp-server-windows-x64.exe",
"args": []
}
}
}
For more information about using MCP servers in VS Code, see Add and Manage MCP servers in VS Code (VS Code).
Customize the behavior of the server by specifying arguments in one of these ways:
.json file).MW_MCP_SERVER_, convert to uppercase, and replace hyphens (-) with underscores (_). For example, the argument --matlab-root becomes the environment variable MW_MCP_SERVER_MATLAB_ROOT. CLI flags take precedence over environment variables, if you use both.| Argument | Description | Example |
|---|---|---|
| help | Displays help information for all arguments. | --help |
| version | Displays the version of the MATLAB MCP Server. | --version |
| matlab-root | Full path specifying which MATLAB to start. Do not include /bin in the path. By default, the server tries to find the first MATLAB on the system PATH. |
Windows: --matlab-root=C:\\Program Files\\MATLAB\\R2026a Linux/macOS: --matlab-root=/home/usr/MATLAB/R2026aAs an environment variable: MW_MCP_SERVER_MATLAB_ROOT=/home/usr/MATLAB/R2026a |
| initialize-matlab-on-startup | To initialize MATLAB as soon as you start the server, set this argument to true. By default, MATLAB only starts when the first tool is called. |
--initialize-matlab-on-startup=true |
| initial-working-folder | Specify the folder where MATLAB starts. If you do not specify a value, MATLAB starts at the path of your AI application's first Root (MCP). If you have not defined a root, MATLAB starts in these locations: Linux: /home/username Windows: C:\Users\username\DocumentsMac: /Users/username/Documents |
Windows: --initial-working-folder=C:\\Users\\username\\MyProject Linux/macOS: --initial-working-folder=/Users/username/MyProject |
| matlab-display-mode | Specify whether to show the MATLAB desktop. Use desktop mode (default) to show the MATLAB desktop. Use nodesktop mode to use MATLAB only from your AI application, without the MATLAB desktop. Note that in nodesktop mode, commands requiring a graphical interface (such as edit, open, open_system, uifigure, and appdesigner) will still open MATLAB windows on your desktop. |
--matlab-display-mode=nodesktop |
| matlab-session-mode | Specify whether the MCP server starts a new MATLAB or connects to an existing MATLAB session (supported for MATLAB R2023a onwards). The default is auto mode. new mode: The MCP server starts a new MATLAB session. auto mode (default): The server tries to connect t |