Reported issues for MATLAB MCP Server
Pod holds 21 of 68 GitHub reports that passed its relevance review. This can include external user reports, maintainer-confirmed bugs, and concrete feature gaps. Treat them as evidence to inspect, not a count of distinct defects.
Back to MATLAB MCP Server.
Most discussed
Fresh install fails to connect: "x509: certificate signed by unknown authority" against local MATLAB connector
Description
Environment
- OS: Windows 11 Home (Build 26200)
- MATLAB: R2025b (25.2.0.2998904), Home License
- MATLAB MCP Server: v0.11.1 (freshly reinstalled from matlab-mcp-server.mcpb)
- Client: Claude Desktop
Summary
After a completely fresh reinstall of the MCP server extension (uninstall old "MATLAB MCP Core Server", full Claude Desktop restart, install new "MATLAB MCP Server" v0.11.1), every tool call still fails with "MATLAB session is not alive". Server logs show the…
Read the thread · 2026-07-08 · closed · external user · 32 comments
Toolbox installation fails when existing toolbox exist
Bug Report
For some users, not all, when installing the toolkit in Matlab with the following command:
matlab-mcp-server.exe --setup_matlab --matlab-root="C:/tools/MATLAB/R2024b"
an error is occurring. To fix it, the user has to open matlab, manually deinstall the AddOn and then run the command again.
The error log files provide the following:
{"time":"2026-08-18T13:52:56.2952575+02:00","level":"INFO","msg":"Installing MATLAB Add-On"}…
[Read the thread](https://github.com/matlab/matlab-mcp-server/issues/116) · 2026-08-19 · open · external user · 10 comments
### Connect to an existing MATLAB engine
The title of this issue is the main feature required to nicely integrate into VSCode, when the [MATLAB extension for VSCode](https://github.com/mathworks/MATLAB-extension-for-vscode) is installed.
This capability is also useful in other contexts (such as running in GitHub Codespaces) and called from other host applications (VSCode-forks such as Cursor or Windsurf).
The workflow is the following for a project that doesn't start from scratch:
- Open a m. file starts another session of MATLAB
-…
[Read the thread](https://github.com/matlab/matlab-mcp-server/issues/9) · 2025-11-16 · closed · external user · 10 comments
### Matlab mcp failed to connect in terminal-in-matlab, but successfully connects outside Matlab in PowerShell or CMD
### Description
I have shareMATLABSession() in startup.m. I open a terminal in matlab commnad window:
`t = terminal()`
In the terminal in matlab:
`D:\NICETOOLS>claude mcp list`
I get this:
`claude.ai Google Drive: https://drivemcp.googleapis.com/mcp/v1 - ✔ Connected
claude.ai Gmail: https://gmailmcp.googleapis.com/mcp/v1 - ✔ Connected
claude.ai Google Calendar: https://calendarmcp.googleapis.com/mcp/v1 - ✔ Connected
codebase-memory-mcp:…
[Read the thread](https://github.com/matlab/matlab-mcp-server/issues/108) · 2026-07-24 · closed · external user · 9 comments
### Server disconnected immediately after "initialize" — no response from server, no stderr output
### Description
The MATLAB MCP Server connects and starts successfully, but disconnects immediately after receiving the initialize request from the client (Claude Desktop). No response to initialize is ever sent, and no error is printed to stderr that would help diagnose the failure. I attach the log.
[MATLAB_claude.log](https://github.com/user-attachments/files/30050031/MATLAB_claude.log)
[Read the thread](https://github.com/matlab/matlab-mcp-server/issues/106) · 2026-07-15 · closed · external user · 9 comments
### Matlab Warning at every start-up
Hello everyone,
With, or without, `--initialise-matlab-on-startup=true` on version v0.4.0, this warning appears at every Matlab start-up:
> Warning: Name is nonexistent or not a directory: C:\Users\...\AppData\Local\Temp\matlab-mcp-core-server-1847849009\matlab-session-119285858
This is probably a warning related to residuals from previous temporary sessions.
It is not critical, the MCP is functioning correctly but even after cleaning the Temp folder from 'matlab-mcp-core-server-*' folders,…
[Read the thread](https://github.com/matlab/matlab-mcp-server/issues/27) · 2026-01-21 · closed · external user · 8 comments
### shareMATLABSession` fails on Windows — two .NET interop issues in `DefaultWindowsACLManager
A colleague brought the below information to my attention. This bug report was generated from Claude Sonnet. Claude Sonnet fixed these issues on the colleagues machine.
# Bug Report: `shareMATLABSession` fails on Windows — two .NET interop issues in `DefaultWindowsACLManager`
**Repository:** https://github.com/matlab/matlab-mcp-core-server
**Component:** `MATLABMCPCoreServerToolkit.mltbx` v0.1.0
**Affected file:**…
[Read the thread](https://github.com/matlab/matlab-mcp-server/issues/73) · 2026-05-05 · closed · external user · 7 comments
### Cannot connect to existing session with MATLAB R2024b
When trying to connect to an existing session with the `--matlab_session_mode=existing` flag using MATLAB 24b I get a "Forbidden" error: "request failed with status code 403".
The workflow works when switching to MATLAB 24a or 25a.
The issue affects all platforms (Windows, mac, Linux).
[Read the thread](https://github.com/matlab/matlab-mcp-server/issues/61) · 2026-04-21 · closed · 7 comments
## Most recent
### Server exits with no actionable error when directory cannot host an AF_UNIX socket
### Description
Claude-derived summary:
**Title:** Watchdog socket is created in `--log-folder` (default `%TEMP%`); when that
directory can't host an AF_UNIX socket the server exits with no actionable error
## Environment
- MATLAB MCP Server `v0.12.0` (Windows x64 binary)
- Windows 11 Pro 10.0.26200, Azure AD-joined (corporate endpoint security present)
- MATLAB R2022b (`C:\Program Files\MATLAB\R2022b`)
- Client: Claude Code (stdio transport)
## Summary
The server creates its watchdog…
[Read the thread](https://github.com/matlab/matlab-mcp-server/issues/120) · 2026-09-09 · closed · external user · 1 comment
### Long-running MATLAB eval/run_matlab_file calls fail with HTTP 500 while MATLAB keeps executing
### Description
When a script passed to `run_matlab_file` (or a long `evaluate_matlab_code` call) takes several minutes to execute — in our case a parameter sweep that repeatedly builds and compiles Simulink models — the tool call fails with `request failed with status code 500: 500 OK`. MATLAB itself is unaffected: the script keeps running to completion (confirmed via a MATLAB waitbar dialog and the resulting output .mat file being written with a correct, later timestamp).
I traced the error…
[Read the thread](https://github.com/matlab/matlab-mcp-server/issues/119) · 2026-09-04 · closed · external user · 5 comments
### The agent connects to the MCP server fine, but the server cannot attach to MATLAB.
### Description
Two things go wrong:
1. `shareMATLABSession()` runs with no error, but the session is **not** actually shared — `matlab.engine.engineName` returns an empty char array afterwards. Only the built-in `matlab.engine.shareEngine` actually shares it.
<img width="497" height="293" alt="Image" src="https://github.com/user-attachments/assets/07bdb1cf-9491-48b5-a8a1-fb8a8b0c081e" />
2. Even once the session is properly shared (`engineName` → `MATLAB_5328`), every tool call still…
[Read the thread](https://github.com/matlab/matlab-mcp-server/issues/118) · 2026-08-30 · closed · external user · 5 comments
### Server exits with "access denied for socket file" when the log folder defaults to a DOS 8.3 short temp path (Claude Desktop on Windows)
### Description
### Summary
On Windows, when the server is launched by Claude Desktop and no `--log-folder` is supplied, the server and its watchdog child cannot establish their Unix-domain socket connection. The server logs `access denied for socket file` and shuts down roughly 500 ms after receiving `initialize`, before MATLAB is ever contacted. The client only sees the stdio pipe close, and reports a generic "Server disconnected".
Passing `--log-folder` with an ordinary long path fixes it…
[Read the thread](https://github.com/matlab/matlab-mcp-server/issues/117) · 2026-08-21 · closed · external user · 1 comment
### # BUG-001: [MATLAB MCP Server] — TLS verification & IPv6 connection failure prevents attach to existing MATLAB session
### Description
**Reporter:** Kilo Code 7.4.17
**Date:** 2026-08-03
**Severity:** High
**Reproducibility:** Always
---
## Summary
The MATLAB MCP Server (v0.11.2) fails to connect to an **existing** MATLAB session on Windows due to two compounding issues: (1) Go's TLS client rejects the connector's self-signed certificate (`x509: certificate signed by unknown authority`), and (2) Go resolves `localhost` to IPv6 `[::1]` but the MATLAB connector listens on IPv4 `127.0.0.1` only, causing…
[Read the thread](https://github.com/matlab/matlab-mcp-server/issues/114) · 2026-08-03 · closed · external user · 3 comments
### CoreDotNetAccessControl rejects DotNetFacade name-value argument on Windows
### Description
## Description
`shareMATLABSession` can fail on Windows while initializing the MATLAB MCP Server
existing-session setup. The Windows ACL factory calls:
```matlab
CoreDotNetAccessControl(DotNetFacade=options.DotNetFacade)
but CoreDotNetAccessControl declares its constructor arguments using
options.?CoreDotNetAccessControl. Because the class does not expose matching
public settable properties, MATLAB rejects the DotNetFacade name-value input.
Observed error:…
Read the thread · 2026-07-29 · closed · external user · 2 comments
Codex CLI 0.145.0 tool calls return unsupported call despite successful MCP handshake with matlab-mcp-server v0.11.2
Title
Codex CLI 0.145.0 tool calls return unsupported call despite successful MCP handshake with matlab-mcp-server v0.11.2
Environment
- Client: Codex CLI
codex-cli 0.145.0(npm package), Windows 11 - Server:
matlab-mcp-server-windows-x64.exev0.11.2 (atD:\/AI\/matlab-mcp-server-windows-x64.exe) - MATLAB: R2024a at
D:\/Program Files\/MATLAB\/R2024a\/bin\/matlab.exe(onPATH) - Server session mode:
new(no toolbox dependency) - Display mode:…
Read the thread · 2026-07-22 · closed · external user · 3 comments
Allow the MATLAB MCP Server to be stopped without ending the MATLAB session
Use Case
Use Case
I regularly work with multiple installed MATLAB versions. After running satk_initialize in one MATLAB session, I would like to switch the active MCP connection to a different MATLAB version without closing either MATLAB session.
At present, the MCP server started by the first session remains active, so switching to another MATLAB version requires closing that MATLAB session first.
Relevant Skill or MCP Tool
satk_initialize / MATLAB MCP Server lifecycle
###…
Read the thread · 2026-07-17 · closed · external user · 4 comments
FEATURE REQUEST: Support system-wide MATLAB MCP toolbox installation for container images
Description
matlab-mcp-core-server --setup-matlab installs the required MATLAB toolbox per user. This does not work well for container images that create runtime users dynamically, because each user must repeat setup before MCP works.
Please add a supported system-wide installation option, for example: matlab-mcp-core-server --setup-matlab --system
It should install the MATLAB MCP toolbox into a shared location and register it through the MATLAB installation’s matlabrc.m, so MCP…
Read the thread · 2026-07-15 · open · external user · 2 comments
MATLABDisplayMode: desktop is ignored when MATLABSessionMode: auto spawns a new session
Setting MATLABDisplayMode to desktop in the extension config (confirmed correct in the settings JSON, and the matlab-mcp-server process itself relaunches with --matlab-display-mode desktop on its command line) does not change the MATLAB process it spawns -- the spawned MATLAB_maca64 process still includes -nodesktop on its command line.
Steps to reproduce:
- Set
MATLABDisplayMode: desktopin the extension's user config (withMATLABSessionMode: auto, the default). - Kill…
Read the thread · 2026-07-13 · closed · external user · 5 comments
MATLAB MCP Server v0.11.1 launches MATLAB with Network License Error 15 while manual launch succeeds on the same Windows session
Description
Environment
- OS: Windows 11
- MATLAB: R2026a
- MATLAB MCP Server: v0.11.1 (official .mcpb extension for Claude Desktop)
- License: University Network License (FAU Erlangen)
- Networks tested:
- eduroam
- eduVPN
Summary
The official MATLAB MCP Server cannot start or connect to MATLAB because MATLAB exits with Network License Error 15.
The confusing part is that the exact same MATLAB installation works perfectly when launched manually under the same…
Read the thread · 2026-07-10 · closed · external user · 4 comments
Claude Code (Bun Version) Segfault Crash due to MCP server
MATLAB Release
R2026a
Operating System
Windows
Agent Platform
Claude Code
Other Agent Platform
No response
MCP Server Version
0.11.1
Steps to Reproduce
Here is the process and solution,every time the MCP is installed, claude code can not launch. Claude code version has to be limited.
Issue: Claude Code (Bun native version) crashes with a segfault on startup, reporting panic(main thread): Segmentation fault, with the crash occurring in…
Read the thread · 2026-07-09 · closed · external user · 3 comments
MCP server v0.11.1 cannot connect to a manually opened MATLAB session
Description
Environment
- OS: Windows 10 Pro
- MATLAB: R2024b (24.2.0.2712019)
- MCP Server: v0.11.1 (
matlab-mcp-server-windows-x64.exe) - MATLAB MCP Server Toolbox: v0.2.1
- Config:
--matlab-session-mode=auto,--matlab-root=D:\Programs\MATLAB\R2024b - codex: Codex CLI 0.143.0
Summary
When MATLAB is launched manually (via desktop shortcut or matlab.exe), the MCP server cannot discover or connect to it. Instead, it falls back to launching a…
Read the thread · 2026-07-08 · closed · external user · 4 comments
The remaining reports are on the project's issue tracker.