matlab-mcp-core-server
by matlab·★ 636·综合分 53
官方 MATLAB MCP 服务器,让 AI 应用程序能够执行 MATLAB 代码并访问 MATLAB 功能。
概述
MATLAB MCP 核心服务器是 MathWorks 官方实现的协议,允许 Claude Code 和 VS Code 中的 GitHub Copilot 等 AI 编码助手与 MATLAB 交互。它提供启动/退出 MATLAB、运行 MATLAB 代码以及检查代码风格和正确性的工具。服务器支持独立的 MATLAB 会话和连接到现有的 MATLAB 实例。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
在使用 MATLAB 环境并需要 AI 辅助进行代码开发、分析或执行时选择此服务器。
什么时候不要选它
如果没有 MATLAB 许可证应避免使用此服务器,因为需要有效的 MATLAB 安装;如果担心与 MathWorks 的供应商锁定问题,请考虑替代方案。
此 server 暴露的工具
从 README 抽取出 5 个工具detect_matlab_toolboxesReturns information about installed MATLAB and toolboxes, including version numbers
check_matlab_codePerforms static code analysis on a MATLAB script to identify code quality issues
evaluate_matlab_codeEvaluates a string of MATLAB code and returns the output
run_matlab_fileExecutes a MATLAB script file and returns the output
run_matlab_test_fileExecutes a MATLAB test script and returns comprehensive test results
可对比工具
安装
安装步骤
- 安装 MATLAB 2021a 或更高版本并添加到系统 PATH
- 为您的平台下载最新版本或从源代码构建:
``bash go install github.com/matlab/matlab-mcp-core-server/cmd/matlab-mcp-core-server@latest ``
- 对于 Claude Desktop,先安装 Filesystem 扩展,然后下载并安装
matlab-mcp-core-server.mcpb包
- 对于 Claude Code,运行:
``bash claude mcp add --transport stdio matlab -- /path/to/matlab-mcp-core-server ``
- 对于 VS Code 中的 GitHub Copilot,创建
.vscode/mcp.json文件,内容如下:
``json { "servers": { "matlab": { "type": "stdio", "command": "/path/to/matlab-mcp-core-server", "args": [] } } } ``
FAQ
- 支持哪些 MATLAB 版本?
- 该服务器支持过去五年内的 MATLAB 版本,从 MATLAB 2021a 开始。
- 我可以连接到现有的 MATLAB 会话吗?
- 是的,使用 --matlab-session-mode=existing 参数和 MATLAB 中的 shareMATLABSession() 函数。
matlab-mcp-core-server 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。