把 MathWorks MATLAB/Simulink MCP 服务器注册进 dsh profile,让会话获得 mcp__matlab__* 工具,用于运行 MATLAB 代码以及读取、编辑与测试 Simulink 模型。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:James-web11/dsh-matlab-mcp
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
DeepSeek Harness (dsh) profile bundle that registers the MathWorks
MATLAB/Simulink MCP server into the dsh GUI, so agent sessions get native
mcp__matlab__* tools for controlling MATLAB and reading/building/testing
Simulink models.
| Kind | Tool name (in agent sessions) | What it does |
|---|---|---|
| MATLAB | mcp__matlab__evaluate_matlab_code |
Run any MATLAB code in the shared session |
| MATLAB | mcp__matlab__run_matlab_file / run_matlab_test_file |
Run a script / run unit tests |
| MATLAB | mcp__matlab__check_matlab_code |
Static Code Analyzer warnings for a .m file |
| MATLAB | mcp__matlab__detect_matlab_toolboxes |
MATLAB version + installed toolboxes |
| Simulink | mcp__matlab__model_overview |
Hierarchical model view |
| Simulink | mcp__matlab__model_read |
Block topology + expression notation |
| Simulink | mcp__matlab__model_edit |
Structural edits / parameter changes |
| Simulink | mcp__matlab__model_check |
Structural validation (unconnected ports, …) |
| Simulink | mcp__matlab__model_query_params |
Random access to any block/config parameter |
| Simulink | mcp__matlab__model_resolve_params |
Resolve workspace variables to values |
| Simulink | mcp__matlab__model_test |
Gherkin-based behavioral tests (needs Simulink Test) |
Prerequisites
- MATLAB R2021a or later (R2023a+ for the Simulink
model_*tools), with Simulink installed. - MATLAB Agentic Toolkit installed — it provides the MCP server binary
and the Simulink extension tools. In MATLAB:
(select MATLAB + Simulink toolkits). Manual download is documented in the Simulink Agentic Toolkit getting-started guide.setupAgenticToolkit("install") - pnpm (used by
dsh plugin):npm install -g pnpm - The dsh launcher on PATH (
dsh), ornpx(the installer falls back tonpx -y @deepseek-ai/dsh).
Install
From this repo (recommended)
git clone https://github.com/<your-account>/dsh-matlab-mcp.git
cd dsh-matlab-mcp
# Windows:
.\install.ps1
# macOS / Linux:
./install.sh
Directly from the git URL (no clone)
dsh plugin --profile web add github:<your-account>/dsh-matlab-mcp
Manually (no pnpm)
Append this to ~/.dsh/profiles/web/cordis.patch.yml (create the file with
content [] if missing), then restart the GUI:
- insert:
- id: mcp-matlab
name: '@deepseek-ai/dsh-mcp-client'
config:
serverName: matlab
transport: stdio
command: !!js "(process.env.USERPROFILE || process.env.HOME) + '/.matlab/agentic-toolkits/bin/matlab-mcp-server' + (process.platform === 'win32' ? '.exe' : '')"
args: !!js "['--matlab-session-mode=existing', '--extension-file=' + (process.env.USERPROFILE || process.env.HOME) + '/.matlab/agentic-toolkits/simulink/tools/tools.json']"
env:
WINDIR: 'C:\Windows'
toolCallTimeoutMs: 600000
failOnStartupError: true
New rows in a patch file must be added with an
insertlist without anid. A bareidtargets an existing entry and fails withentry "xxx" not found.
After install (required every MATLAB session)
- Restart the dsh GUI.
- Make sure MATLAB is running — the server attaches to a running session
(
--matlab-session-mode=existing), it does not start MATLAB. - In that MATLAB session, share it with the server once per session:
addpath('~/.matlab/agentic-toolkits/simulink') % Windows: use C:\Users\<you>\.matlab\... satk_initialize
Verify
After a GUI restart, ask the agent:
What version of MATLAB is running? List the installed toolboxes.
It should answer via mcp__matlab__detect_matlab_toolboxes. For Simulink:
Show me an overview of model MyModel.
Troubleshooting
| Symptom | Fix |
|---|---|
No mcp__matlab__* tools in the session |
GUI wasn't restarted after install; or failOnStartupError would have logged a loud error — check the GUI host console |
| Tools exist but calls fail / "not shared" | Run addpath('~/.matlab/agentic-toolkits/simulink'); satk_initialize in the running MATLAB session |
matlab-mcp-server binary missing |
Install the MATLAB Agentic Toolkit (setupAgenticToolkit("install")) |
| MATLAB version mismatch | The server attaches to whatever MATLAB is running; use the MATLAB you want to control |
| Tool calls time out on long simulations | Increase toolCallTimeoutMs (default 600000 = 10 min) in cordis.patch.yml |
| Simulink fails on Windows | WINDIR env var is injected by this bundle (required on Windows) |
Uninstall
dsh plugin --profile web remove dsh-matlab-mcp
Notes
- This repo contains only configuration — the MCP server itself is the
open-source MATLAB MCP Server
(Apache-2.0, © The MathWorks, Inc.), and the client plugin is
@deepseek-ai/dsh-mcp-clientshipped with DeepSeek Harness. - The bundle's paths are resolved at config time via
!!jsexpressions, so no per-machine editing is needed (Windows, macOS, Linux).
License
MIT
链接
同类插件
Tencent/WeKnora#dsh-weknora★ 34028
把 WeKnora 知识库接入 dsh 的四个只读工具:列出知识库、混合检索原文片段、按顺序还原单篇文档,以及直接取用 WeKnora 自己带引用的 RAG 或 ReAct agent 回答(含可续聊的 session id)。
superdesigndev/treg★ 5298
给 Agent 的工具目录:按「要做的事」检索约 2,600 个外部接口(SEO 与 SERP、外链、社交、人物与公司信息补全、广告库、抓取),查看参数与单次调用价格后直接调用,凭据由服务端注入。附带技能,MCP 行在未设置 TREG_TOKEN 前保持禁用。
TencentCloudBase/CloudBase-AI-Toolkit#dsh-plugin★ 1136
把腾讯云 CloudBase 后端接入 DeepSeek Harness——在对话里搭好并部署全栈应用,查询结果渲染为表格卡片(分页、排序、导出 CSV),部署后可预览真实域名,并提供 CloudBase MCP 工具集(`mcp__cloudbase__*`),登录走 device-code 流程。
gitroomhq/postiz-agent#dsh-postiz★ 517
通过 MCP 将 DeepSeek Harness 连接到 Postiz:列出已连接的社交媒体渠道、获取各平台发帖规则,并向 X、LinkedIn、Instagram、Facebook、Threads、TikTok、YouTube、Reddit、Bluesky、Mastodon、Discord、Slack、Telegram 等平台排期、存草稿或发布帖子;附带 postiz 工作流技能。
EthanYoQ/Invoice-Downloader#dsh-invoice-downloader★ 507
面向 DeepSeek Harness 的本地 IMAP 发票下载、OCR 识别、归档与 Excel 报销汇总。
anysearch-team/anysearch-dsh★ 461
基于 AnySearch 的实时网页与垂直搜索插件,为 DeepSeek Harness 提供搜索工具。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。