T
Tsuchijo/matlab-mcp
Write and run MATLAB scripts
View on GitHub ↗Link checked 2026-11-12 · HTTP 200 · opens the vendor's own site
We have neither an install command nor a public remote endpoint from this repository, so we do not print a config. A made-up one is worse than none. How each client wires MCP up →
- Source
- collected from the abordage/awesome-mcp list · type: MCP server
- Harvest history
- first seen 2026-11-05 · last seen 2026-11-14 · seen 10× · listed by 10 sources
- Score
- score 1,003 · 10 sources · mcp
FAQ (answers come from our records)
Who is it for?
We filed it under these tags: MCP 服务. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
first catalogued 2026-11-05;last seen 2026-11-14。There is no official certification or quality rating here — we record sources and dates only.
# MATLAB MCP Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
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.
## Setup Requirements
Python 3.11 (Python 3.13 and 3.12 are not currently supported by MATLAB Engine)
MATLAB R2024a (or compatible version)
uv package manager
## Installation
1. Create and set up the Python environment:
bash
# Pin Python version
uv python pin 3.11
# Create virtual environment
uv venv
# Activate virtual environment
source .venv/bin/activate
# Install MCP
uv add "mcp[cli]"
2. Install MATLAB Engine
The MATLAB Engine will be installed automatically when the server first runs, using the MATLAB installation specified in the MATLAB_PATH environment variable.
## Directory Structure
matlab_server.py: The main MCP server implementation
matlab_scripts/: Directory where all MATLAB scripts and functions are saved (created automatically)
pyproject.toml: Python project configuration
.python-version: Specifies Python version for uv
## Claude Desktop Integration
1. Open your Claude Desktop configuration:
bash
# On macOS
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
2. Add the MATLAB server configuration:
json
"mcpServers": {
"matlab": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/matlab-mcp",
"run",
"matlab_server.py"
],
"env": {
"MATLAB_PATH": "/Applications/MATLAB_R2024a.app"
Make sure to:
Replace /absolute/path/to/matlab-mcp with the actual path to your project directory
Verify the MATLAB_PATH points to your MATLAB installation
Use absolute paths (not relative)
## Features
The server provides several tools:
1. create_matlab_script: Create a new MATLAB script file
Scripts are saved in the matlab_scripts directory
File names must be valid MATLAB identifiers
2. create_matlab_function: Create a new MATLAB function file
Functions are saved in the matlab_scripts directory
Must include valid function definition
3. execute_matlab_script: Run a MATLAB script and get results
Returns output text, generated figures, and workspace variables
Can pass arguments to scripts
4. call_matlab_function: Call a MATLAB function with arguments
Returns function output and any generated figures
## Testing
You can test the server using the MCP Inspector:
bash
# Make sure you're in your virtual environment
source .venv/bin/activate
# Run the inspector
MATLAB_PATH=/Applications/MATLAB_R2024a.app mcp dev matlab_server.py
Example test script:
matlab
t = 0:0.01:2pi;
y = sin(t);
plot(t, y);
title('Test Plot');
xlabel('Time');
ylabel('Amplitude');
## Script Storage
All MATLAB scripts and functions are saved in the matlab_scripts directory
This directory is created automatically when the server starts
## Setup Requirements
Python 3.11 (Python 3.13 and 3.12 are not currently supported by MATLAB Engine)
MATLAB R2024a (or compatible version)
uv package manager
## Installation
1. Create and set up the Python environment:
bash
# Pin Python version
uv python pin 3.11
# Create virtual environment
uv venv
# Activate virtual environment
source .venv/bin/activate
# Install MCP
uv add "mcp[cli]"
2. Install MATLAB Engine
The MATLAB Engine will be installed automatically when the server first runs, using the MATLAB installation specified in the MATLAB_PATH environment variable.
## Directory Structure
matlab_server.py: The main MCP server implementation
matlab_scripts/: Directory where all MATLAB scripts and functions are saved (created automatically)
pyproject.toml: Python project configuration
.python-version: Specifies Python version for uv
## Claude Desktop Integration
1. Open your Claude Desktop configuration:
bash
# On macOS
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
2. Add the MATLAB server configuration:
json
"mcpServers": {
"matlab": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/matlab-mcp",
"run",
"matlab_server.py"
],
"env": {
"MATLAB_PATH": "/Applications/MATLAB_R2024a.app"
Make sure to:
Replace /absolute/path/to/matlab-mcp with the actual path to your project directory
Verify the MATLAB_PATH points to your MATLAB installation
Use absolute paths (not relative)
## Features
The server provides several tools:
1. create_matlab_script: Create a new MATLAB script file
Scripts are saved in the matlab_scripts directory
File names must be valid MATLAB identifiers
2. create_matlab_function: Create a new MATLAB function file
Functions are saved in the matlab_scripts directory
Must include valid function definition
3. execute_matlab_script: Run a MATLAB script and get results
Returns output text, generated figures, and workspace variables
Can pass arguments to scripts
4. call_matlab_function: Call a MATLAB function with arguments
Returns function output and any generated figures
## Testing
You can test the server using the MCP Inspector:
bash
# Make sure you're in your virtual environment
source .venv/bin/activate
# Run the inspector
MATLAB_PATH=/Applications/MATLAB_R2024a.app mcp dev matlab_server.py
Example test script:
matlab
t = 0:0.01:2pi;
y = sin(t);
plot(t, y);
title('Test Plot');
xlabel('Time');
ylabel('Amplitude');
## Script Storage
All MATLAB scripts and functions are saved in the matlab_scripts directory
This directory is created automatically when the server starts
Listed badge (optional)
Copy this line into the README if you want the listing mark. Optional, and it does not affect being listed.
[](https://anclum.com/en/s/tsuchijo-matlab-mcp/)
- Source
- awesome · https://github.com/Tsuchijo/matlab-mcp
- Browse by field
- MCP servers
- Listed by
- 10 independent sources
- added
- today
More like this
Filed under
Every tag opens the full list for that filter. Counts are the live catalogue figures.