MATLAB MCP Server 🔌 MCP server Free
Official MathWorks server to run, test and lint MATLAB code from AI agents (needs a MATLAB licence)
- GitHub stars
- 1.6k
- Stars this week
- +30
- Forks
- 130
- Licence
- –
- Last push
- 2026-09-25
- Maintainer
- matlab
claude mcp add --transport stdio matlab -- /fullpath/to/matlab-mcp-server-binaryThird-party MCP servers run with your permissions. Read the source before installing, and prefer pinned versions.
Works with
Built on the open MCP standard, so it works in every app that supports MCP.
About MATLAB MCP Server
What it does
The MATLAB MCP Server is MathWorks' official way to let AI coding agents use a local MATLAB installation. The agent can start or attach to MATLAB, run code snippets or whole .m scripts, run unit tests and check code with MATLAB's static analyser. It gets the real output back, so it can write MATLAB, execute it, read the errors and fix them itself. The server also provides MathWorks' coding guidelines and the rules for the plain-text Live Script format as MCP resources, so the generated code follows house style. You can connect it to a MATLAB session you already have open with shareMATLABSession(), which lets the agent work alongside you. MathWorks also publishes MATLAB and Simulink agentic toolkits with skills, and these can install the server for you.
Tools it gives your agent
detect_matlab_toolboxeslists the installed MATLAB version and toolboxescheck_matlab_coderuns read-only static analysis for style, errors, deprecated functions and performanceevaluate_matlab_coderuns a code string in a given project folderrun_matlab_fileruns a scriptrun_matlab_test_fileruns a MATLAB unit-test file and returns the results- Custom tools can be added through JSON extension files
Works with
It runs locally over stdio as a Go binary for Windows, Linux and macOS. The README has setup instructions for Claude Code, Claude Desktop (as an .mcpb bundle), GitHub Copilot in VS Code, and Codex. Any MCP client can run it.
How to connect
Download the release binary for your platform, then add it to Claude Code:
claude mcp add --transport stdio matlab -- /fullpath/to/matlab-mcp-server-binary
Cost and limits
The server costs nothing, but it needs a licensed MATLAB installation, R2021a or later. Connecting to an existing session needs R2023a or later, and plain-text Live Scripts need R2025a. Its licence restricts use to MathWorks products, and one server cannot be shared by several users.
Safety notes
The agent can run any MATLAB code with your permissions, including file and system calls. MathWorks advises reviewing each tool call and keeping a human in the loop for important actions. Use --initial-working-folder to start MATLAB in your project. Anonymous usage data is sent to MathWorks by default. Turn it off with --disable-telemetry=true.
Pros
- Official MathWorks server with code run, test and static-analysis tools
- Can attach to your open MATLAB session
- Ships MATLAB coding guidelines as MCP resources
Cons
- Requires a licensed local MATLAB install (R2021a or later); the server licence restricts use to MathWorks products and one user
- Agent can run arbitrary MATLAB code; usage telemetry on by default
Similar MCP servers
All developer tool MCP servers →GitHub MCP Server 🔌 MCP serverFree
GitHub's official MCP server: issues, pull requests, code, Actions and security alerts
XcodeBuildMCP 🔌 MCP serverOpen source
Build, run, test and debug iOS and macOS apps from AI agents, maintained by Sentry
Sentry MCP 🔌 MCP serverFreemium
Sentry's MCP server: pull errors, stack traces and issues into your agent
🔥 Sentry for Startups: up to $5,000 in credits (12-month expiry) for companies founded in the last 2 years with under $5M raisedMCP Reference Servers 🔌 MCP serverFree
The official reference MCP servers: fetch, filesystem, git, memory and more
Unity MCP 🔌 MCP serverOpen source
Lets AI agents drive the Unity Editor: scenes, C# scripts, assets, tests and builds
n8n-MCP 🔌 MCP serverFreemium
n8n node docs, templates and validation so agents build workflows that actually run
🔥 Startup Plan: 50% off the self-hosted Business plan (fewer than 20 employees, under €5M raised)