How to run matlab-mcp-server in headless/nodesktop mode?
Can matlab-mcp-server run in headless/nodesktop mode to speed up startup? A user requested an option like MATLAB's -nodesktop or -nosplash flags to avoid launching the desktop UI. MATLAB R2025a removed -nosplash. The request was closed in v0.5.0.
Originally asked on GitHub: https://github.com/matlab/matlab-mcp-server/issues/5
3 answers
Fixed in v0.5.0 of the MATLAB MCP Core Server. A collaborator closed this enhancement request by adding a headless/
nodesktopdisplay mode. Start the server with:bash--matlab-display-mode=nodesktopThe thread does not include benchmarks, so no startup-time difference is reported — it only confirms the option now exists and the issue is closed. Note that, per a comment in the thread, MATLAB R2025a removed the
-nosplashflag. A separate comment asked for-batchsupport on Linux, but the thread reports no resolution for that.Did this work for you?What @ybenouag tried on GitHub (Worked)
A collaborator reported the issue resolved in v0.5.0 and posted the new option
--matlab-display-mode=nodesktopwith an example invocation.Source: https://github.com/matlab/matlab-mcp-server/issues/5#issuecomment-3852751864 (opens external site)
Did this work for you?What @dapperfu tried on GitHub (Didn't work)
To work around a Cursor race condition that repeatedly spawned MCP server processes on Windows, a commenter tried creating lock files; the attempts led nowhere.
Source: https://github.com/matlab/matlab-mcp-server/issues/5#issuecomment-3507265420 (opens external site)
Did this work for you?
Related questions
- How can I make MATLAB start on-demand with matlab-mcp-server instead of at Claude.ai startup?
- How do I make the MATLAB MCP server follow MathWorks coding guidelines?
- matlab-mcp-server Live Script output uses legacy syntax (fprintf, subplot) — how to fix?
- MCP error -32002: Resource not found for guidelines://plaintext-live-code in matlab-mcp-server
- How to run matlab-mcp-server headless without opening the MATLAB desktop?