MD

matlab-deep-learning/mcphttpclient

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

19 stars 4 forks 品質 49 トレンド 22BSD-3-Clause

純粋なMATLABコードのMCPクライアント

概要

MCP クライアントを MATLAB® で LLM ワークフローで外部ツールを呼び出す モデルコンテキストプロトコル(MCP)は、AIエージェントと外部ツール間の通信のためのフレームワークです。 典型的には、MCP サーバーに接続する複数の MCP クライアントを 1 つ以上の MCP アプリケーションに設定します。 MCP サーバーは、LLM アプリケーションが使用できるコンテキストとツールを提供します。 このアドオンを使用すると、MCP クライアントが MATLAB から HTTP サーバをストリーミングできるようにします。 - 外部ツールの呼び出し - MATLABアドオンを使用して、大言語モデル(LLM)で外部ツールを使用します。 このアドオンを使用すると、MATLAB R2025a または newer が必要です。 MATLAB からツールコールを生成し、実行するには、MATLAB アドオンで大言語モデル (LLM) のバージョン 4.6.0 または新しいバージョンが必要です。 MATLABをインストールしたバージョンのアドオンを使用する推奨方法は、アドオンエクスプローラを使用することです。 1。 MATLABで、タブに移動し、セクションで、アイコンをクリックします。 2. アドオンエクスプローラで「MATLAB MCP HTTP Client」を検索します。 3.

概要(AI 翻訳)

MCP クライアントを MATLAB® で LLM ワークフローで外部ツールを呼び出す

モデルコンテキストプロトコル(MCP)は、AIエージェントと外部ツール間の通信のためのフレームワークです。 典型的には、MCP サーバーに接続する複数の MCP クライアントを 1 つ以上の MCP アプリケーションに設定します。 MCP サーバーは、LLM アプリケーションが使用できるコンテキストとツールを提供します。

このadd-onを使用すると、次のようになります。

  • MCP クライアントを作成すると、MATLAB から HTTP サーバをストリーミングできます。
  • 外部ツールの呼び出し
  • MATLAB add-on で大きな言語モデル(LLM)で外部ツールを使用します。

セットアップ

  • オンラインでMATLABを使用する
  • アドオンエクスプローラーを使用してインストール

事例紹介

  • MCP クライアントを作成する
  • LLMを使用して外部ツールを自動的に呼び出します

関数

  • mcpHTTPクライアント
  • コールツール

セットアップ

このadd-on を使用するには、MATLAB R2025a または newer が必要です。

MATLABからツールコールを生成し、実行するには、MATLAB add-on で大言語モデル(LLM)のバージョン 4.6.0 または新しいバージョンが必要です。

オンラインでMATLABを使用する

このリンクをクリックすると、MATLAB Onlineのadd-onを使用できます。

Add-On Explorer を使用するインストール

MATLABをインストールしたバージョンのadd-on を使用する推奨方法は、Add-On Explorer を使用する方法です。

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

MATLAB MCP HTTP Client

Create MCP client in MATLAB® to call external tools in LLM workflows

Model Context Protocol (MCP) is a framework for communication between AI agents and external tools. Typically, a large language model (LLM) application sets up one or more MCP clients that each connect to an MCP server. The MCP server provides context and tools the LLM application can use.

This add-on allows you to:

Setup

Examples

Functions

Setup

Using this add-on requires MATLAB R2025a or newer.

To generate and execute tool calls from MATLAB, you also need version 4.6.0 or newer of the Large Language Models (LLMs) with MATLAB add-on.

Use MATLAB Online

You can use the add-on in MATLAB Online by clicking this link:

Install Using Add-On Explorer

The recommended way of using the add-on in an installed version of MATLAB is to use the Add-On Explorer.

  1. In MATLAB, go to the Home tab, and in the Environment section, click the Add-Ons icon.
  2. In the Add-On Explorer, search for “MATLAB MCP HTTP Client”.
  3. Select Install.

Examples

Create MCP Client

Create an MCP client using the mcpHTTPClient function. Specify the URL of the MCP server to which you want to connect. For example, use the IO Aerospace MCP server to access aerospace and astrodynamics tools.

endpoint = "https://mcp.io-aerospace.org/";
client = mcpHTTPClient(endpoint);

The MCP client stores information about the available tools from the server in the ServerTools property.

serverTools = client.ServerTools;

The IO Aerospace MCP server provides a tool called get_celestial_body_properties that returns the geophysical properties of a celestial body.

toolGetCelestialBodyProperties = serverTools{23}
toolGetCelestialBodyProperties = struct with fields:
            name: 'get_celestial_body_properties'
           title: 'Get celestial body properties'
GitHub で README 全文を見る

インストール

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

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →