Step-by-step guide to connecting MATLAB/Simulink R2024b with Claude Desktop via the official MathWorks MCP Server — includes debugging notes and a working example: an AI-generated Simulink counter mod
View on GitHub ↗MATLAB + Simulink + Claude Desktop (MCP) Setup Guide
Connecting a local MATLAB R2024b installation to Claude Desktop using the official MathWorks MATLAB MCP Server — with a full debugging log and a working example: an AI-generated Simulink counter model.
Debugging Log: Filesystem Extension Failure
Example: Building a Simulink Counter Model
This repository documents the complete process of connecting MATLAB R2024b to Claude Desktop via the official MATLAB MCP Server (Model Context Protocol), including every error encountered and how it was diagnosed and resolved.
Detect the local MATLAB installation and its toolboxes
Statically analyze (lint) MATLAB .m scripts
Evaluate MATLAB code and execute scripts directly
Programmatically build and run Simulink models via the MATLAB Engine
As a hands-on validation, this guide walks through generating a simple Simulink counter model (1 → 255, wrapping via uint8 overflow) entirely through natural-language prompts.
Only use the official, MathWorks-maintained repository:
text https://github.com/matlab/matlab-mcp-server
Every release asset there ships with a published SHA-256 checksum. Verify it before running anything:
powershell Get-FileHash "C:\path\to\downloaded-file" -Algorithm SHA256
System Requirements Requirement Detail OS Windows 10/11 (Linux/macOS also supported by the server) MATLAB R2021a or later — supports releases from the past five years MATLAB install path used here C:\Program Files\MATLAB\R2024b (added to system PATH) Claude Desktop Installed and signed in Node.js Required for the companion Filesystem extension
From the project README.
Add the radar badge to your README — it shows your project was picked up by MCP Radar and links to this page:
[](https://mcp.liqiwa.com/s/Mohamed-Fouad-1991--matlab-simulink-claude-mcp-guide.html)
Community-built Codex–COMSOL bridge using officially supported MATLAB MCP and LiveLink integration layers, with native multiphysics API access, task-level execution, same-model Desktop observation, an
The top new MCP servers of the week, every Monday. No spam, unsubscribe anytime.