Connect AI coding agents to MATLAB. Run code, tests, and analysis via MCP.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
One-click editor setup isn’t available for this listing yet — we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.
English • Español • 日本語 • 한êµì–´ • ç®€ä½“ä¸æ–‡
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 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:
Then grant executable permissions to the downloaded binary so you can run the 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:
You can customize the server by specifying optional Arguments. Note the -- separator between Claude Code's options and the server arguments:
For details on adding MCP servers in Claude Code, see Add a local stdio server (Claude Code). To remove the server later, run:
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).
For more information about using MCP servers in VS Code, see Add and Manage MCP servers in VS Code (VS Code).
In your terminal, run the following, remembering to insert the full path to the server binary you acquired in the setup:
You can customize the server by specifying optional Arguments. For example:
[!NOTE] Windows users: Codex does not forward the
WINDIRenvironment variable, which you need to run MATLAB and Simulink (see #32).To add the variable, open your Codex config file at
C:\Users\<username>\.codex\config.toml, and addenv_vars = ["WINDIR"]to the[mcp_servers.matlab]section:
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.No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/matlab-mcp-server)<a href="https://allmcps.com/mcp/matlab-mcp-server"><img src="https://allmcps.com/api/badge/matlab-mcp-server?style=directory" alt="MATLAB MCP Server on AllMCPs" /></a>