Matlab
Createdjigarbhoye04
Enables execution of MATLAB code from Large Language Models (LLMs) through a Model Context Protocol (MCP) server.
About
This tool implements a Model Context Protocol (MCP) server for MATLAB, enabling seamless interaction between LLM agents and MATLAB using the MATLAB Engine API for Python. It provides a structured way for LLMs to execute MATLAB code, retrieve variables, and manage a shared MATLAB session, facilitating complex computations and data analysis within the LLM workflow.
Key Features
- Communicates results and errors as structured JSON for programmatic use.
- Runs MATLAB engine calls asynchronously to prevent blocking the server.
- Executes arbitrary MATLAB code snippets via the `runMatlabCode` tool.
- Connects to an existing shared MATLAB session.
- Retrieves variables from the MATLAB workspace using the `getVariable` tool.
- 4 GitHub stars
Use Cases
- Leveraging MATLAB's data analysis and visualization capabilities within LLM applications.
- Controlling Simulink models through LLM agents (future functionality).
- Integrating MATLAB computations into LLM-driven workflows.