Skip to main content
Glama

MATLAB MCP 服务器

GitHub 徽标

我们欢迎大家的贡献。

Related MCP server: MATLAB MCP Tool

一个强大的 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 来访问浏览器中的调试工具。

铁匠徽章

Install Server
A
license - permissive license
B
quality
F
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity
Issues opened vs closed

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    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.
    39
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables interactive MATLAB development by allowing users to execute scripts and specific code sections, manage workspace variables, and capture generated plots. It integrates with the MATLAB Python Engine to provide persistent execution context for MCP-compatible clients.
    18
    BSD 3-Clause
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI assistants to control MATLAB Simulink models through natural language, providing tools for model creation, block management, wiring, simulation, and more via a local MCP backend.
    3
    MIT

View all related MCP servers

Related MCP Connectors

  • Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

  • Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…

  • Create and manage AI agents that collaborate and solve problems through natural language interacti…

View all MCP Connectors

Latest Blog Posts

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