matlab avatar

MATLAB MCP Core Server

matlab/matlab-mcp-core-server

The MATLAB MCP Core Server enables AI applications to control MATLAB by providing tools to start and quit MATLAB instances, write and execute MATLAB code, and perform code style and correctness assessments. It integrates with Claude, GitHub Copilot, and other AI platforms through the Model Context Protocol, allowing developers to leverage MATLAB's computational capabilities within AI-driven workflows. The server requires MATLAB 2020b or later installed on the system and is available as a pre-built binary or can be built from source.

GitHub stars
636
tools
5
last updated
Dec 15, 2025

Tools

5 tools

Public tool metadata for what this MCP can expose to an agent.

detect_matlab_toolboxesReturns information about installed MATLAB and toolboxes, including version numbers.

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

No parameter schema in public metadata yet.

check_matlab_codePerforms static code analysis on a MATLAB script. Returns warnings about coding style, potential errors, deprecated functions, performance issues, and best practice violations.

Performs static code analysis on a MATLAB script. Returns warnings about coding style, potential errors, deprecated functions, performance issues, and best practice violations.

No parameter schema in public metadata yet.

evaluate_matlab_codeEvaluates a string of MATLAB code and returns the output.

Evaluates a string of MATLAB code and returns the output.

No parameter schema in public metadata yet.

run_matlab_fileExecutes a MATLAB script and returns the output.

Executes a MATLAB script and returns the output.

No parameter schema in public metadata yet.

run_matlab_test_fileExecutes a MATLAB test script and returns comprehensive test results.

Executes a MATLAB test script and returns comprehensive test results.

No parameter schema in public metadata yet.

Sponsors

Readme

MATLAB MCP Server

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:

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

If you use Claude Code®, GitHub® Copilot CLI, or OpenAI® Codex, MathWorks recommends you install this MCP server using the Agentic Toolkit Installer (GitHub), which is the easiest way to configure these AI coding agents to use MATLAB and Simulink.

Otherwise, you can install this MCP server manually using the instructions for Manual Setup.

Table of Contents


View the full README on GitHub

Details

Repository
github.com/matlab/matlab-mcp-core-server