matlabmcp
MCP server to run MATLAB code from LLM via the Matlab Engine API.
Explore MatlabMCP deployment patterns: persistent server for high throughput vs on-demand execution to save resources. Optimize your MATLAB execution strategy.
find_matlab() vs connect_matlab() vs shareEngine: MATLAB Engine API Functions ExplainedUnderstand find_matlab, connect_matlab, and shareEngine in MatlabMCP. Discover shared sessions, establish connections, and execute MATLAB code from Python.
Where to Find MatlabMCP Server Logs in Claude Desktop (macOS & Windows)Easily locate MatlabMCP server logs in Claude Desktop on macOS and Windows. Find the exact log file path for quick troubleshooting.
How to Configure Environment Variables in Claude Desktop for MatlabMCPConfigure environment variables in Claude Desktop for MatlabMCP by adding an env object to your claude_desktop_config.json file. Learn how to inject custom variables for seamless server integration.
What Happens When Temp File Creation or Cleanup Fails in MatlabMCPDiscover what happens when temp file creation or cleanup fails in MatlabMCP. Learn how errors halt execution and warnings allow results to be returned.
How to Fix the "No shared MATLAB sessions found" Error in matlabmcp: MATLAB‑Side RequirementsFix the 'No shared MATLAB sessions found' error by understanding MATLAB side requirements. Ensure the engine sharing script executes and HTTP advertizer runs correctly for seamless integration.
How to Configure MatlabMCP in Claude Desktop with Absolute Paths and uvLearn to configure MatlabMCP in Claude Desktop using absolute paths and the uv executable. Follow our guide to integrate MATLAB code execution seamlessly and restart Claude Desktop for changes to take effect.
Security Implications of Executing Arbitrary MATLAB Code Through the MCP ServerDiscover the security risks of executing arbitrary MATLAB code via MCP server. Learn about RCE, data theft, and DoS attacks resulting from lack of validation.
How `asyncio.to_thread` Prevents Blocking When Calling Synchronous MATLAB Engine APIsLearn how asyncio.to_thread prevents blocking MATLAB engine calls by running them in a separate thread, keeping your asyncio application responsive during heavy computations.
MATLAB Data Types Supported by the `matlab_to_python` Conversion FunctionDiscover which MATLAB data types the matlab_to_python conversion function supports and which it doesn't. Understand supported types and Python fallback options.
How MatlabMCP Connects to a Shared MATLAB Session and Handles Missing InstancesLearn how MatlabMCP connects to shared MATLAB sessions using the MATLAB Engine API and handles missing instances by exiting cleanly with code 1.
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →