Airsc miễn phí cho tất cả. Nếu nó giúp bạn, hãy ủng hộ $2–$20.

Ủng hộ
MCP serverCẩn thậnTính năng AI & LLMCần cài đặt chút

matlab-mcp-server

matlab · matlab/matlab-mcp-server

MATLAB MCP Server chính thức này cho phép các ứng dụng AI như Claude Code khởi động MATLAB, viết, chạy và đánh giá mã MATLAB.

Run MATLAB® using AI applications with the official MATLAB MCP Server from MathWorks®. This MCP server for MATLAB supports a wide range of coding agents like Claude Code® and Visual Studio® Code.

1.6k sao130Giấy phép: Không có giấy phépCập nhật 23 ngày trước0 lượt mở

Xem trước

▍

Bạn có thể làm gì với nó

  • Yêu cầu Claude Code viết các script MATLAB để thực hiện phân tích và trực quan hóa dữ liệu.
  • Sử dụng một AI agent để đánh giá mã MATLAB về kiểu dáng và tính đúng đắn, đảm bảo chất lượng.
  • Tự động hóa việc thực hiện các mô phỏng MATLAB phức tạp hoặc các tác vụ kỹ thuật thông qua các lệnh của AI agent.

Kiểm tra an toàn

Cẩn thận

Dùng được, nhưng nên đọc ghi chú trước.

  • ●Không có giấy phép rõ ràng: hỏi tác giả trước khi dùng cho sản phẩm thương mại.

Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.

Trích từ README

MATLAB MCP Server

English • Español • 日本語 • 한국어 • 简体中文

Run MATLAB® using AI applications with the official MATLAB MCP Server from MathWorks®. The MATLAB MCP Server allows your AI applications to:

  • Start and quit MATLAB.
  • Write and run MATLAB code.
  • Assess your MATLAB code for style and correctness.

To assist your agent in using MATLAB and Simulink, you can use skills from MATLAB Agentic Toolkit (GitHub) and Simulink Agentic Toolkit (GitHub), which can also install this MCP server for you.

Table of Contents

Setup

  1. Install MATLAB (MathWorks) R2021a or later and add it to the system PATH.

  2. The server supports any AI application that uses Model Context Protocol. To set up the MATLAB MCP Server for Claude Desktop, skip to the instructions for Claude Desktop. To set up the server for other applications, follow these instructions:

    • For Windows or Linux, Download the Latest Release. (Alternatively, you can build from source: install Go and build the binary using go install github.com/matlab/matlab-mcp-server/cmd/matlab-mcp-server@latest).

    • For macOS, first download the latest release by running the following command in your terminal:

      • For Apple silicon processors, run:
        curl -L -o ~/Downloads/matlab-mcp-server https://github.com/matlab/matlab-mcp-server/releases/latest/download/matlab-mcp-server-macos-arm64
        
      • For Intel processors, run:
        curl -L -o ~/Downloads/matlab-mcp-server https://github.com/matlab/matlab-mcp-server/releases/latest/download/matlab-mcp-server-macos-x64
        

      Then grant executable permissions to the downloaded binary so you can run the MATLAB MCP Server:

      chmod +x ~/Downloads/matlab-mcp-server
      
  3. Add the MATLAB MCP Server to your AI application. You can find instructions for adding MCP servers in the documentation of your AI application. For example instructions on using Claude Code®, Claude Desktop®, and GitHub Copilot in Visual Studio® Code, see below. Note that you can customize the server by specifying optional Arguments.

Claude Code

In your terminal, run the following, remembering to insert the full path to the server binary you acquired in the setup:

claude mcp add --transport stdio matlab -- /fullpath/to/matlab-mcp-server-binary

You can customize the server by specifying optional Arguments. Note the -- separator between Claude Code's options and the server arguments:

claude mcp add --transport stdio matlab -- /fullpath/to/matlab-mcp-server-binary --initial-working-folder=/home/username/myproject

For details on adding MCP servers in Claude Code, see Add a local stdio server (Claude Code). To remove the server later, run:

claude mcp remove matlab

Claude Desktop

You install the MATLAB MCP Server in Claude Desktop using the MATLAB MCP Server bundle.

  1. Install the Filesystem extension in Claude Desktop to allow Claude to read and write files on your system. In Claude Desktop, click Settings > Extensions > Browse extensions. Search for the Filesystem extension developed by Anthropic and click Install. Specify the folders you want to allow the MCP server to access, then toggle the Disabled button to Enable the Filesystem extension.

  2. Download the MATLAB MCP Server bundle matlab-mcp-server.mcpb from the Latest Release page.

  3. To install the MATLAB MCP Server bundle as a desktop extension, double click the downloaded matlab-mcp-server.mcpb file and click Install in Claude Desktop. (Alternatively, navigate in Claude to File menu > Settings > Extensions > Advanced Settings > Install Extension and select the matlab-mcp-server.mcpb file. Click Install).

To customize the behaviour of the MATLAB MCP Server, navigate to Settings > Extensions > Configure, where you can modify the server's Arguments.

GitHub Copilot in Visual Studio Code

In your VS Code workspace, create a file named .vscode/mcp.json. Insert the following JSON, remembering to specify the full path to the server binary you acquired in the setup, as well as any Arguments. Then save the file. (Note that on Windows, your paths require extra slashes as escape characters).

{
    "servers": {
        "matlab": {
            "type": "stdio",
            "command": "C:\\fullpath\\to\\matlab-mcp-server-windows-x64.exe",
            "args": []
        }
    }
}

For more information about using MCP servers in VS Code, see Add and Manage MCP servers in VS Code (VS Code).

Codex

In your terminal, run the following, remembering to insert the full path to the server binary you acquired in the setup:

codex mcp add matlab -- /fullpath/to/matlab-mcp-server-binary

You can customize the server by specifying optional Arguments. For example:

codex mcp add matlab -- /fullpath/to/mat
Xem mã nguồn trên GitHub