1. Conduid
  2. Developer Tools
  3. Matlab MCP Core Server
MCP server · Developer Tools

Matlab MCP Core Server

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.

Unclaimed BSD-3-Clause last commit 6 months ago engineering-toolsmcp-toolsmatlabmcp-servermatlab-mcp-serverdevtools
82Excellent

Scored 4 days ago · breakdown

About Matlab MCP Core Server

Matlab MCP Core Server is an MCP server published by matlab in the Developer Tools category: 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 been installed 0 times through Conduid.

The repository has 188 stars and 21 forks, with the last commit 6 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx matlab-mcp-core-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about Matlab MCP Core Server

Powered by Claude · Grounded in docs

I know everything about Matlab MCP Core Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.12.0v0.12.0 · 20 Aug 2026New Features Display a message in MATLAB to inform users when an agent connects using MATLAB MCP Server We encourage you to try this repository and provide feedback. If you encounter a technical issue or have an enhancement request, create…
v0.11.4v0.11.4 · 14 Aug 2026Issues Resolved 113: CoreDotNetAccessControl rejects DotNetFacade name-value argument on Windows. We encourage you to try this repository and provide feedback. If you encounter a technical issue or have an enhancement request, create an…
v0.11.3v0.11.3 · 6 Aug 2026Enhancements Added protection around calling restoredefaultpath Validate MATLAB file path before calling it using the run_matlab_file tool Update dependencies to resolve CVEs We encourage you to try this repository and provide feedback. If…
v0.11.2v0.11.2 · 10 Jul 2026[!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 | |:-------:|:---------------:| |…
v0.11.1v0.11.1 · 25 Jun 2026[!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 | |:-------:|:---------------:| |…

README

MATLAB MCP Core Server

Run MATLAB® using AI applications with the official MATLAB MCP Server from MathWorks®. The MATLAB MCP Core Server allows your AI applications to:

  • Start and quit MATLAB.
  • Write and run MATLAB code.
  • Assess your MATLAB code for style and correctness.

Table of Contents

Setup

  1. Install MATLAB (MathWorks) 2020b or later and add it to the system PATH.

  2. To set up the MATLAB MCP Core 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-core-server/cmd/matlab-mcp-core-server@latest).

    • For macOS, first download the latest release by running the following command in your terminal:

      • For Apple silicon processors, run:
        curl -L -o ~/Downloads/matlab-mcp-core-server https://github.com/matlab/matlab-mcp-core-server/releases/latest/download/matlab-mcp-core-server-maca64
        
      • For Intel processors, run:
        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
      
  3. 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.

Claude Code

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

Claude Desktop

You install the MATLAB MCP Core Server in Claude Desktop using the MATLAB MCP Core Server bundle.

  1. 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.

  2. Download the MATLAB MCP Core Server bundle matlab-mcp-core-server.mcpb from the Latest Release page.

  3. To install the MATLAB MCP Core Server bundle as a desktop extension, double click the downloaded matlab-mcp-core-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-core-server.mcpb file. Click Install).

    To customize the behaviour of the MATLAB MCP Core Server, navigate to Settings > Extensions > Configure, where you can modify the server's Arguments.

    • To use the --matlab-session-mode=existing argument, MATLAB needs to be set up by the MATLAB MCP Core Server. Download the MATLAB MCP Core Server binary for your platform following Setup and run ./matlab-mcp-core-server --setup-matlab.

GitHub Copilot in Visual Studio Code

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-core-server-win64.exe",
            "args": []
        }
    }
}

For more information about using MCP servers in VS Code, see Add and Manage MCP servers in VS Code (VS Code).

Arguments

Customize the behavior of the server by providing arguments in the args array when configuring your AI application.

Argument Description Example
help Displays help information for all arguments. "--help"
version Displays the version of the MATLAB MCP Core 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/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 (default) or connects to a MATLAB that is already running (supported for MATLAB R2023a onwards). To start a new MATLAB, use new mode. To connect to a running MATLAB, use existing mode:If you are using existing mode for the first time, run ./matlab-mcp-core-server --setup-matlab.This command installs an add-on named MATLAB MCP Core Server Toolbox in MATLAB. You can customize the command with other arguments from this table. For example, to specify which MATLAB to use to install the toolbox, you can use ./matlab-mcp-core-server --setup-matlab --matlab-root=/home/usr/MATLAB/R2026a.In the command window of a running MATLAB session, run shareMATLABSession(). The MCP server will connect to this MATLAB when you start the server with --matlab-session-mode=existing. If you are running multiple MATLAB sessions, the server connects to the MATLAB session where you most recently ran the command shareMATLABSession().As an alternative to running shareMATLABSession() manually, you can add the command to your MATLAB Startup Script (MathWorks). "--matlab-session-mode=existing"
extension-file To use custom tools, provide a path to a JSON file that defines your tools. For details, see Use Custom Tools with the MATLAB MCP Core Server. Windows: "--extension-file=C:\\Users\\name\\my-tools.json" Linux/macOS: "--extension-file=/path/to/my-tools.json"
log-folder Specify the folder where the MCP server stores log files. If not specified, the server uses the default temporary folder of your operating system. Windows: "--log-folder=C:\\Users\\name\\AppData\\Local\\Temp" Linux/macOS: "--log-folder=/tmp/my-logs"
log-level The log levels of the MCP server. Valid values, in order of decreasing verbosity, are 'debug', 'info', 'warn', and 'error'. "--log-level=debug"
disable-telemetry To disable anonymized data collection, set this argument to true. For details, see Data Collection. "--disable-telemetry=true"

Tools

  1. detect_matlab_toolboxes

    • Returns information about installed MATLAB and toolboxes, including version numbers.
  2. check_matlab_code

    • Performs static code analysis on a MATLAB script. Returns warnings about coding style, potential errors, deprecated functions, performance issues, and best practice violations. This is a non-destructive, read-only operation that helps identify code quality issues without executing the script.
    • Inputs:
      • script_path (string): Absolute path to the MATLAB script file to analyze. Must be a valid .m file. The file is not modified during analysis. Example: C:\Users\username\matlab\myFunction.m or /home/user/scripts/analysis.m.
  3. evaluate_matlab_code

    • Evaluates a string of MATLAB code and returns the output.
    • Inputs:
      • code (string): MATLAB code to evaluate.
      • project_path (string): Absolute path to your project directory. MATLAB sets this directory as the current working folder. Example: C:\Users\username\matlab-project or /home/user/research.
  4. run_matlab_file

    • Executes a MATLAB script and returns the output. The script must be a valid .m file.
    • Inputs:
      • script_path (string): Absolute path to the MATLAB script file to execute. Must be a valid .m file. Example: C:\Users\username\projects\analysis.m or /home/user/matlab/simulation.m.
  5. run_matlab_test_file

    • Executes a MATLAB test script and returns comprehensive test results. Designed specifically for MATLAB unit test files that follow MATLAB testing framework conventions.
    • Inputs:
      • script_path (string): Absolute path to the MATLAB test script file. Must be a valid .m file containing MATLAB unit tests. Example: C:\Users\username\tests\testMyFunction.m or /home/user/matlab/tests/test_analysis.m.

Resources

The MCP server provides Resources (MCP) to help your AI application write MATLAB code. To see instructions for using this resource, refer to the documentation of your AI application that explains how to use resources.

  1. matlab_coding_guidelines

    • Provides comprehensive MATLAB coding standards for improving code readability, maintainability, and collaboration. The guidelines encompass naming conventions, formatting, commenting, performance optimization, and error handling.
    • URI: guidelines://coding
    • MIME Type: text/markdown
    • Source: MATLAB Coding Standards (GitHub)
  2. plain_text_live_code_guidelines

    • Provides rules and guidelines for generating live scripts using the plain text Live Code .m file format, suitable for version control and AI-assisted development. Note that to run plain text live scripts you need MATLAB R2025a or newer. For details, see Live Code File Format (MathWorks).
    • URI: guidelines://plain-text-live-code
    • MIME Type: text/markdown
    • Source: Plain Text Live Code Generation (GitHub)

Data Collection

The MATLAB MCP Core Server may collect fully anonymized information about your usage of the server and send it to MathWorks. This data collection helps MathWorks improve products and is on by default. To opt out of data collection, set the argument --disable-telemetry to true.

Contact Support

MathWorks encourages you to use this repository and provide feedback. To request technical support or submit an enhancement request, create a GitHub issue or email genai-support@mathworks.com.

When using the MATLAB MCP Core Server, you should thoroughly review and validate all tool calls before you run them. Always keep a human in the loop for important actions and only proceed once you are confident the call will do exactly what you expect. For more information, see User Interaction Model (MCP) and Security Considerations (MCP).

The MATLAB MCP Core server may only be used with MATLAB installations that are used as a Personal Automation Server. Use with a central Automation Server is not allowed. Please contact MathWorks if Automation Server use is required. For more information see the Program Offering Guide (MathWorks).


Copyright 2025-2026 The MathWorks, Inc.


README mirrored from the source repository 4 days ago. The original is authoritative.

Questions

About Matlab MCP Core Server

How do I install Matlab MCP Core Server?

Run npx matlab-mcp-core-server, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is Matlab MCP Core Server safe to use with an AI agent?

Its trust score is 82 out of 100 (excellent). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Matlab MCP Core Server still maintained?

Yes — the latest release is v0.12.0 (20 Aug 2026), and the last commit was 6 months ago. The repository has 188 stars and 0 open issues.