Matlab MCP Server

This Model Context Protocol (MCP) server provides integration with MATLAB, allowing you to create and execute MATLAB scripts and functions through

Local serverstdioPython

What is the Matlab MCP Server?

Matlab MCP lets Claude, Cursor and other MCP clients work with Matlab MCP directly. This Model Context Protocol (MCP) server provides integration with MATLAB, allowing you to create and execute MATLAB scripts and functions through Claude or other MCP clients.

What Matlab MCP does

This Model Context Protocol (MCP) server provides integration with MATLAB, allowing you to create and execute MATLAB scripts and functions through Claude or other MCP clients.

Key capabilities

  • Scripts are saved in the matlab_scripts directory
  • File names must be valid MATLAB identifiers
  • Functions are saved in the matlab_scripts directory
  • Must include valid function definition
  • Returns output text, generated figures, and workspace variables
  • Can pass arguments to scripts
  • Returns function output and any generated figures

Practical notes

  • Maintained by Tsuchijo, written in Python.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
matlab_server.pyThe main MCP server implementation
pyproject.tomlPython project configuration

How to install the Matlab MCP Server

{
  "mcpServers": {
    "matlab": {
      "command": "uv",
      "args": [
        "--directory",
        "/absolute/path/to/matlab-mcp",
        "run",
        "matlab_server.py"
      ],
      "env": {
        "MATLAB_PATH": "/Applications/MATLAB_R2024a.app"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
MATLAB_PATHDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Matlab MCP to matlab server.py.”
  • “Use Matlab MCP to pyproject.toml.”
  • “Use Matlab MCP to MATLAB PATH.”

Frequently asked questions

This Model Context Protocol (MCP) server provides integration with MATLAB, allowing you to create and execute MATLAB scripts and functions through Claude or other Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.