MATLAB Workflow MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MATLAB Workflow MCP Serverrun the UAV path planning experiment"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MATLAB MCP Server
跨平台 MATLAB 远程实验执行服务。在 Mac 端通过 Qoder/QoderWork 用自然语言驱动 Windows 端 MATLAB 执行 UAV 路径规划实验。
架构
Mac (Qoder IDE) Windows (MATLAB R2022b)
┌───────────────────┐ ┌──────────────────────────────┐
│ MCP Client (SSE) │ ─── Tailscale ──►│ matlab_mcp_server.py │
│ Syncthing │ ◄── P2P Sync ───►│ MATLAB Engine (持久会话) │
│ Git │ │ 21 个 MCP 工具 │
└───────────────────┘ └──────────────────────────────┘执行层: MCP over SSE (:8080),支持 Bearer Token + query param 认证
同步层: Syncthing P2P (:22000),代码实时双向同步
网络层: Tailscale (WireGuard),局域网/公网自动切换
Related MCP server: MATLAB MCP Server
快速开始
Windows 端
# 1. 安装 MATLAB Engine API
cd "C:\Program Files\MATLAB\R2022b\extern\engines\python"
python setup.py install
# 2. 安装依赖
pip install -r requirements.txt
# 3. 修改 .env 配置(MATLAB_WORKING_DIR 等)
# 4. 启动服务
python matlab_mcp_server.py
# 或双击 start_server.batMac 端 (Qoder MCP 配置)
{
"mcpServers": {
"matlab": {
"type": "sse",
"url": "http://100.x.y.z:8080/sse?token=YOUR_TOKEN"
}
}
}工具清单 (21 个)
类别 | 工具 | 说明 |
执行 |
| 执行代码(自动捕获图形,含耗时统计) |
执行 |
| 运行 .m 脚本或指定段落 |
执行 |
| 提交异步后台任务(>30分钟实验) |
实验 |
| 参数化实验 + raw_code 双模式 |
任务 |
| 后台任务生命周期管理 |
工作区 |
| 查看工作区/变量值/struct 结构 |
工作区 |
| 设置变量 |
图形 |
| 导出图形 / 获取元数据 |
文件 |
| 文件传输与管理 |
质量 |
| MATLAB checkcode 静态检查 |
诊断 |
| 系统诊断(quick/full) |
管理 |
| 同步/重置/切换/重启 |
工具选择指南
实验时长 | 推荐工具 |
< 10 分钟 |
|
10 - 30 分钟 |
|
> 30 分钟 |
|
论文标准实验 |
|
项目结构
├── matlab_mcp_server.py # 主服务(21 个 MCP 工具,~1879 行)
├── mcp_run_experiment.m # MATLAB 实验执行器(含 manifest + 种子管理)
├── cleanup_and_start.py # 安全启动器(清理残留进程)
├── config.py # 配置兜底
├── .env # 环境变量配置(优先级最高)
├── requirements.txt # Python 依赖
├── test_smoke.py # 冒烟测试(19 个用例)
│
├── start_server.bat # Windows 快速启动
├── install_service.bat # NSSM 服务安装(开机自启)
├── setup_firewall.ps1 # Windows 防火墙配置
├── setup_syncthing_mac.sh # Mac Syncthing 配置
├── setup_syncthing_win.ps1 # Windows Syncthing 配置
├── sync_and_run.sh # Mac 一键同步+运行
├── fetch_results.sh # Mac 结果拉取
├── test_connection.py # 连接测试
│
├── DEPLOYMENT_GUIDE.md # 部署操作手册(16 章)
├── SOLUTION_REPORT.md # 方案讲解报告
├── .qoder/skills/ # Qoder AI Skill(工具选择指导)
└── .gitattributes # Git LFS 配置配置优先级
环境变量 > .env 文件 > config.py > 代码默认值
关键配置项(在 .env 中设置):
变量 | 默认值 | 说明 |
|
| MATLAB 工作目录 |
|
| 监听地址 |
|
| 监听端口 |
| (空) | Bearer Token 认证 |
|
| 默认执行超时(秒) |
|
| 最大排队任务数 |
|
| CPU 拒绝阈值 (%) |
|
| 内存拒绝阈值 (%) |
| 脚本所在目录 | 日志输出目录 |
运行测试
python test_smoke.py技术栈
Python 3.8-3.10 + MATLAB Engine API (R2022b)
MCP SDK (FastMCP) + SSE transport
Tailscale (WireGuard) + Syncthing
NSSM (Windows 服务) + Git LFS
文档
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/will-bw/matlab-workflow-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server