MM

matlab/mcp-framework-matlab-production-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

36 stars 11 forks 质量 67 趋势 32BSD-3-Clause

发布MATLAB功能作为使用MATLAB生产服务器的AI代理的MCP工具

概览

将您的MATLAB®函数发布到MATLAB生产服务器™,作为模型上下文协议(MCP)工具。这使得AI代理能够调用您的函数,增强其领域专长的能力。 除了该软件包外,你还需要:* MATLAB R2025b 或更高版本。* 与你的 MATLAB 版本兼容的 MATLAB 编译器 SDK™。* 访问 MATLAB 生产服务器 R2022a 或更高版本。* 一个不需要可流式 HTTP 的 MCP 客户端。使用该包创建的 MCP 服务器不支持可流式 HTTP 或 HTTP 服务器发送事件(SSE)。 要让 MATLAB 函数作为 MCP 工具向 LLM 开放,你: * 安装该包,让 MATLAB 能找到——并将顶层文件夹添加到 MATLAB 路径。* 从 MATLAB 函数构建 MCP 工具 * 配置你的 MCP 客户端,使该工具对你的 LLM 开放。 使用此插件需要 MATLAB R2025b 或更高版本。 使用附加资源管理器将此插件安装到 MATLAB: 1.

概述(AI 翻译)

将MATLAB®函数作为模型上下文协议工具发布在MATLAB生产服务器™上。AI代理调用你的函数,提供MATLAB的速度、可靠性和领域特定性能。

先修条件

  • MATLAB R2025b 或更高版本
  • MATLAB 编译器 SDK™
  • MATLAB 生产服务器 R2022a 或更高版本
  • MCP 客户端(Claude Desktop、Claude Code、带 Copilot 的 VS Code,或任何支持 HTTP 的客户端)

安装

在MATLAB中,打开插件资源管理器(主页→插件标签),搜索“MCP Framework for MATLAB Production Server”。选择安装。

如果你使用AI编码代理,注册构建技能,这样代理可以代你构建和部署工具:

快速启动

要将函数作为MCP工具部署到运行在localhost:9910上的MATLAB生产服务器实例中,请运行以下MATLAB代码。

你的功能现在对连接到该服务器的任何MCP客户端开放。完整攻略请参见入门指南。

主要特色

  • 构建MCP工具 — 该框架将你的函数打包并部署到MPS。支持单函数、多工具服务器、大数据和结构化输入。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

MCP Framework for MATLAB Production Server

Publish MATLAB® functions as Model Context Protocol tools on MATLAB Production Server™. AI agents call your functions, offering the speed, reliability, and domain-specific performance of MATLAB.

Prerequisites

Install

In MATLAB, open the Add-On Explorer (Home tab → Add-Ons) and search for “MCP Framework for MATLAB Production Server.” Select Install.

If you use an AI coding agent, register the build skill so the agent can build and deploy tools on your behalf:

prodserver.mcp.agent.setup

Quick Start

To deploy a function as an MCP tool to an instance of MATLAB Production Server running on localhost:9910, run the following MATLAB code.

% Build an MCP tool from a function — the framework runs your example to determine parameter types
ctf = prodserver.mcp.build("principalStress", ...
    example=@() principalStress([120 -50 80], "max"), ...
    server="http://localhost:9910");

% Verify deployment
prodserver.mcp.ping("http://localhost:9910/principalStress/mcp")

% Call the tool directly
prodserver.mcp.call("http://localhost:9910/principalStress/mcp", ...
    "principalStress", [120 -50 80], "maxShear")

Your function is now available to any MCP client connected to that server. See the Getting Started guide for a complete walkthrough.

Key Features

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →