
williamCloudqi/matlab-mcp-server 是从 https://github.com/williamcloudqi/matlab-mcp-server. 导入的 MCP 服务器候选
概览
williamCloudqi/matlab-mcp-server 是从 https://github.com/williamcloudqi/matlab-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
我们欢迎大家的贡献。
一个强大的MCP服务器,集成了MATLAB与AI的结合,允许你执行MATLAB代码,从自然语言描述生成MATLAB脚本,并通过AI助手直接访问MATLAB文档。
特色
资源
- 通过
matlab://documentation/getting-startedURI访问MATLAB文档 - 入门指南,含示例和使用说明
工具
-
execute_matlab_code- 执行MATLAB代码并获得结果 -
运行任何MATLAB命令或脚本
-
保存脚本以备将来参考的选项
-
直接在对话中查看输出
-
generate_matlab_code- 从自然语言生成MATLAB代码 -
用通俗易懂的语言描述你想要实现的目标
-
响应可执行的MATLAB代码
-
保存生成脚本的选项
发展
安装依赖:
搭建服务器:
关于自动重建的开发:
要求
- 已安装在你的系统上的MATLAB
- Node.js(v14或更高)
安装
通过Smithery安装
要通过 Smithery 自动安装 MATLAB MCP Server for Claude Desktop:
1.安装该软件包
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
MATLAB MCP Server

We welcome contributions from everyone.
A powerful MCP server that integrates MATLAB with AI, allowing you to execute MATLAB code, generate MATLAB scripts from natural language descriptions, and access MATLAB documentation directly through your AI assistant.
Features
Resources
- Access MATLAB documentation via
matlab://documentation/getting-startedURI - Get started guide with examples and usage instructions
Tools
-
execute_matlab_code- Execute MATLAB code and get results- Run any MATLAB commands or scripts
- Option to save scripts for future reference
- View output directly in your conversation
-
generate_matlab_code- Generate MATLAB code from natural language- Describe what you want to accomplish in plain language
- Get executable MATLAB code in response
- Option to save generated scripts
Development
Install dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
Requirements
- MATLAB installed on your system
- Node.js (v14 or higher)
Installation
Installing via Smithery
To install MATLAB MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @WilliamCloudQi/matlab-mcp-server --client claude
1. Install the package
npm install -g matlab-mcp-server
Or clone the repository and build it yourself:
git clone https://github.com/username/matlab-mcp-server.git
cd matlab-mcp-server
npm install
npm run build
2. Configure cline to use the server
To use with cline , add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"matlab-server": {
"command": "node",
"args": ["/path/to/matlab-server/build/index.js"],
"env": {
"MATLAB_PATH": "/path/to/matlab/executable"
},
"disabled": false,
"autoApprove": []
}
}
}
Replace /path/to/matlab/executable with the path to your MATLAB executable:
- Windows: Usually
C:\\Program Files\\MATLAB\\R2023b\\bin\\matlab.exe - macOS: Usually
/Applications/MATLAB_R2023b.app/bin/matlab - Linux: Usually
/usr/local/MATLAB/R2023b/bin/matlab
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspector
安装
npx -y @smithery/cli install @WilliamCloudQi/matlab-mcp-server --client claude配置
{
"mcpServers": {
"matlab-server": {
"command": "node",
"args": ["/path/to/matlab-server/build/index.js"],
"env": {
"MATLAB_PATH": "/path/to/matlab/executable"
},
"disabled": false,
"autoApprove": []
}
}
}