code
(string): MATLAB code to evaluate.
How to use it
code is exposed by the Matlab MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the code tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Matlab MCP Server
claude mcp add --transport stdio matlab -- /fullpath/to/matlab-mcp-server-binaryOther tools in Matlab MCP Server (2)
(string): Absolute path to your project directory. MATLAB sets this directory as the current working folder. Example: C:\Users\username\matlab-project or /home/user/research.
(string): Absolute path to the MATLAB script file to analyze. Must be a valid .m file. The file is not modified during analysis. Example: C:\Users\username\matlab\myFunction.m or /home/user/scripts/analysis.m.