matlab-mcp-core-server
by matlab·★ 636·Score 53
Official MATLAB MCP Server enabling AI applications to execute MATLAB code and access MATLAB functionality.
Overview
The MATLAB MCP Core Server is the official implementation from MathWorks that allows AI coding assistants like Claude Code and GitHub Copilot in VS Code to interact with MATLAB. It provides tools to start/quit MATLAB, run MATLAB code, and analyze code for style and correctness. The server supports both standalone MATLAB sessions and connecting to existing MATLAB instances.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this when working with MATLAB environments and need AI assistance for code development, analysis, or execution within MATLAB ecosystem.
When NOT to choose this
Avoid if you don't have a MATLAB license as this server requires a valid MATLAB installation, and consider alternatives if you're concerned about vendor lock-in with MathWorks.
Tools this server exposes
5 tools extracted from the READMEdetect_matlab_toolboxesReturns information about installed MATLAB and toolboxes, including version numbers
check_matlab_codePerforms static code analysis on a MATLAB script to identify code quality issues
evaluate_matlab_codeEvaluates a string of MATLAB code and returns the output
run_matlab_fileExecutes a MATLAB script file and returns the output
run_matlab_test_fileExecutes a MATLAB test script and returns comprehensive test results
Comparable tools
Installation
Installation Steps
- Install MATLAB 2021a or later and add it to the system PATH
- Download the latest release for your platform or build from source:
``bash go install github.com/matlab/matlab-mcp-core-server/cmd/matlab-mcp-core-server@latest ``
- For Claude Desktop, install the Filesystem extension then download and install the
matlab-mcp-core-server.mcpbbundle
- For Claude Code, run:
``bash claude mcp add --transport stdio matlab -- /path/to/matlab-mcp-core-server ``
- For GitHub Copilot in VS Code, create
.vscode/mcp.jsonwith:
``json { "servers": { "matlab": { "type": "stdio", "command": "/path/to/matlab-mcp-core-server", "args": [] } } } ``
FAQ
- What MATLAB versions are supported?
- The server supports MATLAB releases from the past five years, starting from MATLAB 2021a.
- Can I connect to an existing MATLAB session?
- Yes, using the --matlab-session-mode=existing argument and shareMATLABSession() function in MATLAB.
Compare matlab-mcp-core-server with
Last updated · Auto-generated from public README + GitHub signals.