MATLAB MCP Tools
An MCP to develop MATLAB pipelines section by section and read figures one dimension at a time
What is MATLAB MCP Tools?
MATLAB MCP Tools is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp to develop matlab pipelines section by section and read figures one dimension at a time
An MCP to develop MATLAB pipelines section by section and read figures one dimension at a time
This server falls under the Data Science & ML category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- An MCP to develop MATLAB pipelines section by section and re
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx matlab-mcp-toolsConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use MATLAB MCP Tools
MATLAB MCP Tools bridges MATLAB and AI coding assistants by exposing 15 tools that let agents execute scripts section-by-section, inspect workspace variables, extract plot data, and lint MATLAB code — all without leaving the AI chat interface. It leverages the official MATLAB Python Engine so that each call runs inside a live MATLAB session, preserving workspace state across tool calls. Researchers and engineers who need AI assistance writing and debugging MATLAB pipelines can use this server to iterate on individual code sections and read figure data one dimension at a time.
Prerequisites
- Python 3.10 or newer
- MATLAB R2023b or later with the MATLAB Engine for Python installed
- uv package manager (https://github.com/astral-sh/uv)
- An MCP-compatible AI client such as Claude Desktop or Claude Code
Clone the repository
Download the source code from GitHub so the installer script is available locally.
git clone https://github.com/neuromechanist/matlab-mcp-tools.git
cd matlab-mcp-toolsRun the automated installer
The install script detects your MATLAB installation, creates a Python virtual environment with uv, installs the MATLAB Python Engine and all dependencies, and generates an mcp-pip.json config file ready for your client.
./install-matlab-mcp.sh(Optional) Set MATLAB_PATH manually
If the installer does not auto-detect your MATLAB installation, set the MATLAB_PATH environment variable to the MATLAB application bundle or executable directory before re-running the installer.
export MATLAB_PATH="/Applications/MATLAB_R2024b.app"
./install-matlab-mcp.shVerify the server starts correctly
Run the test script to confirm that MATLAB launches, the MCP server initialises, and all 15 tools are registered.
./scripts/test-matlab-mcp.shAdd the server to your MCP client
Copy the generated configuration into your client's MCP settings. The command points to the virtual-environment binary created by the installer.
{
"mcpServers": {
"matlab": {
"command": "/path/to/matlab-mcp-tools/.venv/bin/matlab-mcp-server",
"env": {
"MATLAB_PATH": "/Applications/MATLAB_R2024b.app"
}
}
}
}MATLAB MCP Tools Examples
Client configuration
Example .mcp.json entry for Claude Code pointing to the installed virtual-environment binary.
{
"mcpServers": {
"matlab": {
"command": "/Users/yourname/matlab-mcp-tools/.venv/bin/matlab-mcp-server",
"env": {
"MATLAB_PATH": "/Applications/MATLAB_R2024b.app"
}
}
}
}Prompts to try
Example prompts once the MATLAB MCP server is connected to your AI client.
- "Run the first section of my script analysis.m and show me the workspace variables"
- "Execute the section titled 'Preprocessing' in pipeline.m and return any figures generated"
- "Get the plot data from figure 1 and describe the trend you see"
- "Lint my script signal_filter.m and list all warnings with severity level 2 or higher"
- "Show me all variables in the MATLAB workspace and their sizes"Troubleshooting MATLAB MCP Tools
Installer fails with 'MATLAB not found'
Set the MATLAB_PATH environment variable to the full path of your MATLAB application directory (e.g., /Applications/MATLAB_R2024b.app on macOS or C:\Program Files\MATLAB\R2024b on Windows) before running install-matlab-mcp.sh.
MATLAB Engine import error when starting the server
The MATLAB Python Engine must be installed inside the same virtual environment used by the server. Inside your MATLAB installation run 'cd (fullfile(matlabroot,"extern","engines","python")); system("python setup.py install")' or follow MathWorks documentation for your MATLAB version.
Tools return stale results after modifying a script
The workspace persists across calls within a single server session. Use the get_workspace tool to inspect current state, or call execute_script to re-run the full script and reset variables before querying individual sections.
Frequently Asked Questions about MATLAB MCP Tools
What is MATLAB MCP Tools?
MATLAB MCP Tools is a Model Context Protocol (MCP) server that mcp to develop matlab pipelines section by section and read figures one dimension at a time It connects AI assistants to external tools and data sources through a standardized interface.
How do I install MATLAB MCP Tools?
Follow the installation instructions on the MATLAB MCP Tools GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with MATLAB MCP Tools?
MATLAB MCP Tools works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is MATLAB MCP Tools free to use?
Yes, MATLAB MCP Tools is open source and available under the BSD-3-Clause license. You can use it freely in both personal and commercial projects.
MATLAB MCP Tools Alternatives — Similar Data Science & ML Servers
Looking for alternatives to MATLAB MCP Tools? Here are other popular data science & ml servers you can use with Claude, Cursor, and VS Code.
Ultrarag
★ 5.6kA Low-Code MCP Framework for Building Complex and Innovative RAG Pipelines
RocketRide
★ 3.1k📇 🏠 - MCP server that exposes RocketRide AI pipelines as t
Aix Db
★ 2.1kAix-DB 基于 LangChain/LangGraph 框架,结合 MCP Skills 多智能体协作架构,实现自然语言到数据洞察的端到端转换。
NeMo Data Designer
★ 1.9k🎨 NeMo Data Designer: Generate high-quality synthetic data from scratch or from seed data.
PaperBanana
★ 1.7kOpen source implementation and extension of Google Research’s PaperBanana for automated academic figures, diagrams, and research visuals, expanded to new domains like slide generation.
MiniMax
★ 1.5kBridges MiniMax AI capabilities to the Model Context Protocol, enabling AI agents to perform image understanding, text-to-image generation, and speech synthesis. It provides a standardized interface for accessing MiniMax's core tools via JSON-RPC.
Browse More Data Science & ML MCP Servers
Explore all data science & ml servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up MATLAB MCP Tools in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use MATLAB MCP Tools?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.