Skip to main content
Glama

MATLAB MCP Server

MATLAB MCP 服务器

GitHub 徽标

我们欢迎大家的贡献。

一个强大的 MCP 服务器,将 MATLAB 与 AI 集成在一起,允许您执行 MATLAB 代码,从自然语言描述生成 MATLAB 脚本,并直接通过您的 AI 助手访问 MATLAB 文档。

特征

资源

  • 通过matlab://documentation/getting-started URI 访问 MATLAB 文档
  • 包含示例和使用说明的入门指南

工具

  • execute_matlab_code - 执行 MATLAB 代码并获取结果
    • 运行任何 MATLAB 命令或脚本
    • 可选择保存脚本以供将来参考
    • 直接在对话中查看输出
  • generate_matlab_code - 从自然语言生成 MATLAB 代码
    • 用简单的语言描述你想要实现的目标
    • 获取可执行的 MATLAB 代码作为响应
    • 保存生成的脚本的选项

发展

安装依赖项:

npm install

构建服务器:

npm run build

对于使用自动重建的开发:

npm run watch

要求

  • 您的系统上已安装 MATLAB
  • Node.js(v14 或更高版本)

安装

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 MATLAB MCP 服务器:

npx -y @smithery/cli install @WilliamCloudQi/matlab-mcp-server --client claude

1. 安装软件包

npm install -g matlab-mcp-server

或者克隆存储库并自行构建:

git clone https://github.com/username/matlab-mcp-server.git cd matlab-mcp-server npm install npm run build

2.配置cline使用服务器

要与 cline 一起使用,请添加服务器配置:

在 MacOS 上: ~/Library/Application Support/Claude/claude_desktop_config.json在 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": [] } } }

/path/to/matlab/executable替换为您的 MATLAB 可执行文件的路径:

  • Windows:通常为C:\\Program Files\\MATLAB\\R2023b\\bin\\matlab.exe
  • macOS:通常为/Applications/MATLAB_R2023b.app/bin/matlab
  • Linux:通常为/usr/local/MATLAB/R2023b/bin/matlab

调试

由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们推荐使用MCP Inspector ,它以包脚本的形式提供:

npm run inspector

检查器将提供一个 URL 来访问浏览器中的调试工具。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

将 MATLAB 与 AI 相结合以执行代码、从自然语言生成脚本并无缝访问 MATLAB 文档。

  1. 我们欢迎大家的贡献。
    1. 一个强大的 MCP 服务器,将 MATLAB 与 AI 集成在一起,允许您执行 MATLAB 代码,从自然语言描述生成 MATLAB 脚本,并直接通过您的 AI 助手访问 MATLAB 文档。
      1. 特征
        1. 资源
        2. 工具
      2. 发展
        1. 要求
          1. 安装
            1. 通过 Smithery 安装
            2. 安装软件包
            3. 2.配置cline使用服务器
            4. 调试

          Related MCP Servers

          • -
            security
            F
            license
            -
            quality
            Allows interaction with MATLAB by creating and executing scripts and functions through Claude or other MCP clients, supporting script management and execution result retrieval with environment configuration capabilities.
            Last updated -
            10
            Python
            • Apple
          • -
            security
            F
            license
            -
            quality
            A smart documentation server that provides AI-assisted code improvement and documentation management through Claude Desktop integration.
            Last updated -
            7
            TypeScript
          • -
            security
            A
            license
            -
            quality
            Word document reading and writing MCP implemented in Node.js
            Last updated -
            64
            5
            TypeScript
            MIT License
            • Apple
            • Linux
          • A
            security
            F
            license
            A
            quality
            AI-driven tool that helps developers create beautiful UI components instantly through natural language descriptions, integrating with popular IDEs like Cursor, Windsurf, and VSCode.
            Last updated -
            3
            1

          View all related MCP servers

          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/WilliamCloudQi/matlab-mcp-server'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server