{"id":14330,"date":"2025-12-19T08:59:21","date_gmt":"2025-12-18T23:59:21","guid":{"rendered":"https:\/\/blogs.mathworks.com\/japan-community\/?p=14330"},"modified":"2025-12-19T10:36:06","modified_gmt":"2025-12-19T01:36:06","slug":"matlab-mcp-client-on-github-jp","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/japan-community\/2025\/12\/19\/matlab-mcp-client-on-github-jp\/","title":{"rendered":"MATLAB MCP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f"},"content":{"rendered":"<div class=\"rtcContent\">\n<p><span style=\"color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-size: 14px; white-space-collapse: preserve;\">\u203b\u3053\u306e\u6295\u7a3f\u306f 2025 \u5e74 12 \u6708 10 \u65e5\u306b <\/span><a style=\"font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-size: 14px; white-space-collapse: preserve;\" href=\"https:\/\/blogs.mathworks.com\/deep-learning\/2025\/12\/10\/matlab-mcp-client-on-github\/?from=jp\"> Artificial Intelligence \u3078 \u6295\u7a3f<\/a><span style=\"color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-size: 14px; white-space-collapse: preserve;\">\u3055\u308c\u305f\u3082\u306e\u306e\u6284\u8a33\u3067\u3059\u3002<\/span><\/p>\n<h6>&#8212;<\/h6>\n<h6><\/h6>\n<table style=\"background-color: #e2f0ff;\">\n<tbody>\n<tr>\n<td style=\"width: 120px; padding: 3px; vertical-align: middle;\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-18998 size-full\" src=\"https:\/\/blogs.mathworks.com\/deep-learning\/files\/2025\/12\/shweta.jpg\" alt=\"\" width=\"100\" height=\"100\" \/><\/td>\n<td style=\"vertical-align: middle; padding: 3px;\"><strong>\u30b2\u30b9\u30c8\u30e9\u30a4\u30bf\u30fc: <a href=\"https:\/\/www.linkedin.com\/in\/shweta-kapdoskar\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external\">Shweta Pujari<\/a><\/strong><\/p>\n<h6><\/h6>\n<p>Shweta Pujari \u306f AI \u3068\u751f\u6210 AI \u306e\u30d7\u30ed\u30c0\u30af\u30c8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3067\u3059\u3002\u3053\u306e\u30d6\u30ed\u30b0\u8a18\u4e8b\u3067\u306f\u3001Shweta \u304c\u79c1\u3068\u4e00\u7dd2\u306b\u3001\u65b0\u3057\u3044 MATLAB MCP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f7f\u3063\u3066 MATLAB \u8a00\u8a9e\u3067\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u578b\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>MathWorks \u306f GitHub \u4e0a\u3067\u65b0\u3057\u3044\u6a5f\u80fd\u300cMATLAB MCP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u300d\u3092\u516c\u958b\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u306f MATLAB \u30d9\u30fc\u30b9\u306e AI \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092 HTTP \u7d4c\u7531\u3067\u5916\u90e8\u30b5\u30fc\u30d3\u30b9\u3084\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30c4\u30fc\u30eb\u306b\u7c21\u5358\u306b\u63a5\u7d9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h6><\/h6>\n<p><a href=\"https:\/\/github.com\/matlab-deep-learning\/mcpHTTPClient\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external\">https:\/\/github.com\/matlab-deep-learning\/mcpHTTPClient<\/a><\/p>\n<h6><\/h6>\n<h6><\/h6>\n<p><em>Note:<\/em> \u304a\u3088\u305d1\u304b\u6708\u524d\u3001MathWorks \u306f GitHub \u4e0a\u3067 <a href=\"https:\/\/blogs.mathworks.com\/japan-community\/2025\/11\/07\/releasing-the-matlab-mcp-core-server-on-github-jp\/?from=jp\">MATLAB MCP \u30b3\u30a2\u30b5\u30fc\u30d0\u30fc<\/a>\u3082\u516c\u958b\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u3001\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306e AI \u30c1\u30e3\u30c3\u30c8\u3084\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304b\u3089 MATLAB \u3092\u547c\u3073\u51fa\u3059\u305f\u3081\u306e MCP \u5b9f\u88c5\u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<h6><\/h6>\n<h6><\/h6>\n<p>\u3053\u306e\u6295\u7a3f\u3067\u306f\u3001MCP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u306f\u4f55\u304b\u3001\u3069\u306e\u3088\u3046\u306b\u52d5\u4f5c\u3059\u308b\u306e\u304b\u3001\u305d\u3057\u3066 MATLAB \u3067 AI \u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3059\u308b\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u3068\u3063\u3066\u306a\u305c\u91cd\u8981\u306a\u306e\u304b\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h6><\/h6>\n<h6><\/h6>\n<h6><\/h6>\n<h2><strong>MATLAB MCP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u306f\uff1f<\/strong><\/h2>\n<p>Model Context Protocol\uff08MCP\uff09\u306f\u3001AI \u30e2\u30c7\u30eb\u304c\u5916\u90e8\u30c4\u30fc\u30eb\u3084\u30b5\u30fc\u30d3\u30b9\u3068\u901a\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u5b9a\u7fa9\u3059\u308b\u65b0\u3057\u3044\u6a19\u6e96\u3067\u3059\u3002MCP \u306f\u3001AI \u30e2\u30c7\u30eb\u3068\u30c4\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u4e21\u65b9\u304c\u7406\u89e3\u3067\u304d\u308b\u300c\u8a00\u8a9e\u300d\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3001\u5229\u7528\u53ef\u80fd\u306a\u30c4\u30fc\u30eb\u306e\u4e00\u89a7\u53d6\u5f97\u3084\u3001\u7279\u5b9a\u306e\u5165\u529b\u3067\u30c4\u30fc\u30eb\u3092\u547c\u3073\u51fa\u3057\u3001\u69cb\u9020\u5316\u3055\u308c\u305f\u7d50\u679c\u3092\u8fd4\u3059\u65b9\u6cd5\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u73fe\u5728\u3001\u591a\u304f\u306e\u9ad8\u5ea6\u306a LLM \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u5916\u90e8\u95a2\u6570\u3092\u547c\u3073\u51fa\u305b\u308b\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\uff08\u4f8b\uff1a\u5929\u6c17 API \u3084\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30af\u30a8\u30ea\u3092\u547c\u3073\u51fa\u3059 AI \u30a2\u30b7\u30b9\u30bf\u30f3\u30c8\uff09\u3002MCP \u306f\u3001\u3053\u306e\u3088\u3046\u306a\u30c4\u30fc\u30eb\u547c\u3073\u51fa\u3057\u3092\u6b63\u5f0f\u306a\u67a0\u7d44\u307f\u3067\u63d0\u4f9b\u3057\u3001MCP \u306b\u5bfe\u5fdc\u3059\u308b\u30c4\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u3068 AI \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u76f8\u4e92\u306b\u901a\u4fe1\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<div>\u3053\u306e\u6a5f\u80fd\u306b\u3088\u308a\u3001MCP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u5b8c\u5168\u306b MATLAB \u30b3\u30fc\u30c9\u3067\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002\u5b9f\u969b\u306b\u306f\u3001\u3053\u306e\u30a2\u30c9\u30aa\u30f3\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001MATLAB \u306f HTTP \u7d4c\u7531\u3067 MCP \u4e92\u63db\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3057\u3001\u305d\u306e\u30b5\u30fc\u30d0\u30fc\u304c\u63d0\u4f9b\u3059\u308b\u30c4\u30fc\u30eb\u3092\u5229\u7528\u3067\u304d\u307e\u3059\u3002\u63a5\u7d9a\u5f8c\u3001MATLAB\u306f\u30b5\u30fc\u30d0\u30fc\u4e0a\u306e\u5229\u7528\u53ef\u80fd\u306a\u30c4\u30fc\u30eb\u3092\u4e00\u89a7\u8868\u793a\u3057\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u305d\u308c\u3089\u3092\u547c\u3073\u51fa\u305b\u307e\u3059\u3002\u91cd\u8981\u306a\u306e\u306f\u3001\u3053\u306e\u7d71\u5408\u304c\u300c<a href=\"http:\/\/mathworks.com\/matlabcentral\/fileexchange\/163796-large-language-models-llms-with-matlab\">Large Language Models (LLMs) with MATLAB<\/a>\u300d\u30a2\u30c9\u30aa\u30f3\u3068\u9023\u643a\u3059\u308b\u3088\u3046\u8a2d\u8a08\u3055\u308c\u3066\u304a\u308a\u3001\u8a00\u8a9e\u30e2\u30c7\u30eb\u304c\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u81ea\u52d5\u7684\u306b\u3053\u308c\u3089\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3067\u304d\u308b\u70b9\u3067\u3059\u3002<\/div>\n<h6><\/h6>\n<h6><\/h6>\n<h6><\/h6>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-19033\" src=\"https:\/\/blogs.mathworks.com\/deep-learning\/files\/2025\/12\/mcp-client-thumbnail.png\" alt=\"\" width=\"400\" height=\"309\" \/><\/p>\n<h6><\/h6>\n<h6><\/h6>\n<h2><strong>MATLAB MCP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u4e3b\u306a\u6a5f\u80fd<\/strong><\/h2>\n<div>\n<ul>\n<li><strong>MCP \u30b5\u30fc\u30d0\u30fc\u7d4c\u7531\u3067\u30c4\u30fc\u30eb\u306b\u63a5\u7d9a<\/strong>\uff1aMATLAB \u3067 MCP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3001URL\uff08\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\uff09\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u4efb\u610f\u306e\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u5bfe\u5fdc HTTP MCP \u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3067\u304d\u307e\u3059\u3002\u63a5\u7d9a\u3059\u308b\u3068\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u5229\u7528\u53ef\u80fd\u306a\u30c4\u30fc\u30eb\u4e00\u89a7\u3092\u81ea\u52d5\u7684\u306b\u53d6\u5f97\u3057\u307e\u3059\u3002\u3064\u307e\u308a\u3001MATLAB \u306f\u30b5\u30fc\u30d0\u30fc\u304c\u5b9f\u884c\u3067\u304d\u308b\u6a5f\u80fd\uff08\u4f8b\uff1a<em>get_weather, run_simulation, query_database <\/em>\u306a\u3069\uff09\u3068\u3001\u305d\u308c\u305e\u308c\u306e\u30c4\u30fc\u30eb\u306e\u5165\u529b\u30fb\u51fa\u529b\u306e\u8a73\u7d30\u3092\u5373\u5ea7\u306b\u628a\u63e1\u3067\u304d\u307e\u3059\u3002<\/li>\n<li><strong>\u5916\u90e8\u30c4\u30fc\u30eb\u306e\u547c\u3073\u51fa\u3057<\/strong>\uff1aMCP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f7f\u3048\u3070\u3001\u5916\u90e8\u30c4\u30fc\u30eb\u306e\u547c\u3073\u51fa\u3057\u306f\u30ed\u30fc\u30ab\u30eb\u306e MATLAB \u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u306e\u3068\u540c\u3058\u304f\u3089\u3044\u7c21\u5358\u3067\u3059\u3002\u3053\u306e\u30a2\u30c9\u30aa\u30f3\u306b\u306f\u3001\u9ad8\u30ec\u30d9\u30eb\u95a2\u6570 <em>callTool<\/em> \u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30c4\u30fc\u30eb\u540d\u3068\u5fc5\u8981\u306a\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6e21\u3059\u3060\u3051\u3067\u3001<em>callTool<\/em> \u304c\u30b5\u30fc\u30d0\u30fc\u3068\u306e\u901a\u4fe1\u3092\u51e6\u7406\u3057\u3001\u7d50\u679c\u3092 MATLAB \u306b\u8fd4\u3057\u307e\u3059\u3002HTTP \u30ea\u30af\u30a8\u30b9\u30c8\u3092\u624b\u52d5\u3067\u4f5c\u6210\u3057\u305f\u308a JSON \u3092\u89e3\u6790\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u88cf\u3067\u51e6\u7406\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u3001\u5916\u90e8 API \u3084\u30b5\u30fc\u30d3\u30b9\u3068\u306e\u7d71\u5408\u304c\u5287\u7684\u306b\u7c21\u5358\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<li><strong>LLM \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3068\u306e\u7d71\u5408<\/strong>\uff1a\u6700\u3082\u6ce8\u76ee\u3059\u3079\u304d\u6a5f\u80fd\u306f\u3001<em>\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u578b<\/em> AI \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u5b9f\u73fe\u3067\u304d\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u306eMCP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068 LLMs with MATLAB \u30a2\u30c9\u30aa\u30f3\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001MATLAB \u5185\u306e\u5927\u898f\u6a21\u8a00\u8a9e\u30e2\u30c7\u30eb\u304c\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u8981\u6c42\u3092\u6e80\u305f\u3059\u305f\u3081\u306b\u5916\u90e8\u30c4\u30fc\u30eb\u3092\u547c\u3073\u51fa\u3059\u3079\u304d\u304b\u3069\u3046\u304b\u3092\u81ea\u5f8b\u7684\u306b\u5224\u65ad\u3067\u304d\u307e\u3059\u3002MCP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u30b5\u30fc\u30d0\u30fc\u306e\u30c4\u30fc\u30eb\u3092 LLM \u306b\u516c\u958b\u3057\u307e\u3059\u3002\u30c4\u30fc\u30eb\u4e00\u89a7\u3092\u30e2\u30c7\u30eb\u304c\u7406\u89e3\u3067\u304d\u308b\u5f62\u5f0f\uff08OpenAI \u306e function-calling \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u7528\u306e <em>openAIFunction<\/em> \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09\u306b\u5909\u63db\u3057\u3001LLM \u30bb\u30c3\u30b7\u30e7\u30f3\u306b\u6e21\u3057\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001LLM \u306b\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u4e0e\u3048\u308b\u3068\u3001\u5fc5\u8981\u3068\u5224\u65ad\u3057\u305f\u5834\u5408\u3001\u30c4\u30fc\u30eb\u540d\u3068\u5f15\u6570\u3092\u542b\u3080\u30c4\u30fc\u30eb\u547c\u3073\u51fa\u3057\u3092\u51fa\u529b\u3067\u304d\u307e\u3059\u3002MATLAB \u306f\u3053\u306e\u95a2\u6570\u547c\u3073\u51fa\u3057\u306e\u610f\u56f3\u3092\u30ad\u30e3\u30d7\u30c1\u30e3\u3057\u3001<em>callTool(client, toolRequest)<\/em> \u3092\u4f7f\u3063\u3066\u5b9f\u884c\u3057\u3001\u7d50\u679c\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002\u8981\u3059\u308b\u306b\u3001MCP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u3088\u3063\u3066\u3001MATLAB \u306e AI \u30a2\u30b7\u30b9\u30bf\u30f3\u30c8\u306f\u5916\u90e8\u30c7\u30fc\u30bf\u3084\u30a2\u30af\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u8a71\u3059\u3060\u3051\u3067\u306a\u304f\u3001\u5b9f\u969b\u306b\u30b5\u30fc\u30d3\u30b9\u3092\u547c\u3073\u51fa\u3057\u3066\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/div>\n<h6><\/h6>\n<h2><strong>MATLAB MCP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u307f\u308b<\/strong><\/h2>\n<div class=\"S1\">\n<p>&nbsp;<\/p>\n<div>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001MATLAB \u3067 MCP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u7c21\u5358\u306b\u69cb\u7bc9\u3057\u3001MCP \u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3057\u3066 LLM \u3092\u4f7f\u3063\u3066\u30b5\u30fc\u30d0\u30fc\u30c4\u30fc\u30eb\u3092\u547c\u3073\u51fa\u3059\u65b9\u6cd5\u3092\u793a\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001<a href=\"https:\/\/production-server-demo.mathworks-workshop.com\/~files\/mcp-production-server\/index.html\" class=\"external\" rel=\"nofollow\" target=\"_blank\">prime sequence MCP \u30b5\u30fc\u30d0\u30fc<\/a>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3 id=\"TMP_3b5c\" class=\"S7\"><strong>OpenAI LLM \u3092\u547c\u3073\u51fa\u3059\u305f\u3081\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/strong><\/h3>\n<div class=\"S1\">\n<div>\n<p>\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306e <a href=\"https:\/\/github.com\/matlab-deep-learning\/llms-with-matlab\" class=\"external\" rel=\"nofollow\" target=\"_blank\">LLM-with-MATLAB<\/a> \u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u53d6\u5f97\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>.env \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057 OPENAI_API_KEY \u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<\/div>\n<div>\n<div class=\"preformatted-plain\">\n<pre class=\"S18\">OPENAI_API_KEY=sk-proj-xxxxx<\/pre>\n<\/div>\n<div style=\"position: relative; background: #f9fafb; border: 1px solid #d1d5db; border-radius: 6px; padding: 1rem; font-family: Consolas,monospace; color: #111827;\">\n<pre id=\"matlab-snippet\" style=\"margin: 0; padding: 0; border: none; background: none; color: inherit; white-space: pre; line-height: 1.4;\">gitclone(\"https:\/\/github.com\/matlab-deep-learning\/llms-with-matlab\")\r\naddpath(\"llms-with-matlab\")\r\nloadenv '.env'\r\n<\/pre>\n<\/div>\n<\/div>\n<h6><\/h6>\n<p>&nbsp;<\/p>\n<h3 id=\"TMP_004e\" class=\"S8\"><strong>MCP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u69cb\u7bc9\u3059\u308b<\/strong><\/h3>\n<div class=\"S1\">\n<div>\n<p>MATLAB \u304b\u3089 MCP \u30b5\u30fc\u30d0\u30fc\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306b\u63a5\u7d9a\u3059\u308b\u65b9\u6cd5\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<\/div>\n<\/div>\n<div style=\"position: relative; background: #f9fafb; border: 1px solid #d1d5db; border-radius: 6px; padding: 1rem; font-family: Consolas,monospace; color: #111827;\">\n<pre id=\"matlab-snippet\" style=\"margin: 0; padding: 0; border: none; background: none; color: inherit; white-space: pre; line-height: 1.4;\">endpoint = \"https:\/\/production-server-demo.mathworks-workshop.com\/primeSequence\/mcp\";\r\nclient = mcpHTTPClient(endpoint)<\/pre>\n<\/div>\n<pre style=\"background: none;\">client = \r\n  mcpHTTPClient with properties:\r\n\r\n       Endpoint: \"https:\/\/production-server-demo.mathworks-workshop.com\/primeSequence\/mcp\"\r\n    ServerTools: {[1\u00d71 struct]}\r\n<\/pre>\n<h6><\/h6>\n<div class=\"S1\">\n<div>\u6700\u521d\u306e\u30b9\u30c6\u30c3\u30d7\u306f\u3001MCP \u30b5\u30fc\u30d0\u30fc\u3067\u5229\u7528\u53ef\u80fd\u306a\u30c4\u30fc\u30eb\u306e\u78ba\u8a8d\u3067\u3059\u3002\u3059\u3079\u3066\u306e\u30c4\u30fc\u30eb\u3092\u4e00\u89a7\u8868\u793a\u3059\u308b\u306b\u306f\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u4f7f\u3044\u307e\u3059\u304c\u3001\u3053\u3053\u3067\u306f\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u30c4\u30fc\u30eb\u306f 1 \u3064\u3060\u3051\u3067\u3059\u3002<\/div>\n<\/div>\n<div class=\"CodeBlock\">\n<div class=\"inlineWrapper\"><\/div>\n<\/div>\n<div style=\"position: relative; background: #f9fafb; border: 1px solid #d1d5db; border-radius: 6px; padding: 1rem; font-family: Consolas,monospace; color: #111827;\">\n<pre id=\"matlab-snippet\" style=\"margin: 0; padding: 0; border: none; background: none; color: inherit; white-space: pre; line-height: 1.4;\">serverTools = client.ServerTools;\r\nfor i = 1:length(serverTools)\r\n    disp(serverTools{i}.name)\r\n    disp(serverTools{i}.description)\r\n    disp('---')\r\nend\r\n<\/pre>\n<\/div>\n<pre style=\"background: none;\">primeSequence\r\nReturn the first N primes of the given sequence type. Four sequence types supported: Eisenstein, Balanced, Isolated and Gaussian.\r\n---\r\n<\/pre>\n<h6><\/h6>\n<div class=\"S1\">\n<div>\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u306f\u3001\u30c4\u30fc\u30eb\u3092\u547c\u3073\u51fa\u3059\u305f\u3081\u306b\u5fc5\u8981\u306a\u5f15\u6570\u306e\u78ba\u8a8d\u3067\u3059\u3002<\/div>\n<\/div>\n<h6><\/h6>\n<div style=\"position: relative; background: #f9fafb; border: 1px solid #d1d5db; border-radius: 6px; padding: 1rem; font-family: Consolas,monospace; color: #111827;\">\n<pre id=\"matlab-snippet\" style=\"margin: 0; padding: 0; border: none; background: none; color: inherit; white-space: pre; line-height: 1.4;\">tool1 = serverTools{1};\r\ntoolName = tool1.name;\r\nclient.ServerTools{1}.inputSchema\r\n<\/pre>\n<\/div>\n<h6><\/h6>\n<div>\u5165\u529b\u30b9\u30ad\u30fc\u30de\u306f\u3001\u3069\u306e\u5f15\u6570\u3084\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u5fc5\u8981\u304b\u3092\u793a\u3057\u307e\u3059\u3002<\/div>\n<h6><\/h6>\n<div style=\"position: relative; background: #f9fafb; border: 1px solid #d1d5db; border-radius: 6px; padding: 1rem; font-family: Consolas,monospace; color: #111827;\">\n<pre id=\"matlab-snippet\" style=\"margin: 0; padding: 0; border: none; background: none; color: inherit; white-space: pre; line-height: 1.4;\">client.ServerTools{1}.inputSchema.properties<\/pre>\n<\/div>\n<h6><\/h6>\n<pre style=\"background: none;\">ans = struct with fields:\r\n       n: [1\u00d71 struct]\r\n    type: [1\u00d71 struct]\r\n<\/pre>\n<h6><\/h6>\n<div style=\"position: relative; background: #f9fafb; border: 1px solid #d1d5db; border-radius: 6px; padding: 1rem; font-family: Consolas,monospace; color: #111827;\">\n<pre id=\"matlab-snippet\" style=\"margin: 0; padding: 0; border: none; background: none; color: inherit; white-space: pre; line-height: 1.4;\">client.ServerTools{1}.inputSchema.properties.n\r\n<\/pre>\n<\/div>\n<h6><\/h6>\n<pre style=\"background: none;\">ans = struct with fields:\r\n           type: 'number'\r\n    description: 'Length of the generated sequence'\r\n<\/pre>\n<h6><\/h6>\n<div style=\"position: relative; background: #f9fafb; border: 1px solid #d1d5db; border-radius: 6px; padding: 1rem; font-family: Consolas,monospace; color: #111827;\">\n<pre id=\"matlab-snippet\" style=\"margin: 0; padding: 0; border: none; background: none; color: inherit; white-space: pre; line-height: 1.4;\">client.ServerTools{1}.inputSchema.properties.type<\/pre>\n<\/div>\n<h6><\/h6>\n<pre style=\"background: none;\">ans = struct with fields:\r\n           type: 'string'\r\n    description: 'Name of the sequence to generate'\r\n<\/pre>\n<h6><\/h6>\n<div style=\"position: relative; background: #f9fafb; border: 1px solid #d1d5db; border-radius: 6px; padding: 1rem; font-family: Consolas,monospace; color: #111827;\">\n<pre id=\"matlab-snippet\" style=\"margin: 0; padding: 0; border: none; background: none; color: inherit; white-space: pre; line-height: 1.4;\">client.ServerTools{1}.inputSchema.required<\/pre>\n<\/div>\n<h6><\/h6>\n<pre style=\"background: none;\">ans = 2\u00d71 cell array\r\n'n'       \r\n'type'    \r\n<\/pre>\n<h6><\/h6>\n<h6><\/h6>\n<p>&nbsp;<\/p>\n<h3 id=\"TMP_4afe\" class=\"S12\"><strong>MCP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u30e2\u30c7\u30eb\u306b\u7d71\u5408\u3059\u308b<\/strong><\/h3>\n<div class=\"S1\">\n<p>\u6b21\u306e\u95a2\u6570\u306f LLMs with MATLAB \u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u4f8b\u3067\u306f\u3001OpenAI \u30b5\u30fc\u30d3\u30b9\u3092\u4f7f\u7528\u3057\u3066\u5927\u898f\u6a21\u8a00\u8a9e\u30e2\u30c7\u30eb\uff08LLM\uff09\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<div><\/div>\n<div>\n<div>\n<h6><\/h6>\n<div style=\"position: relative; background: #f9fafb; border: 1px solid #d1d5db; border-radius: 6px; padding: 1rem; font-family: Consolas,monospace; color: #111827;\">\n<pre id=\"matlab-snippet\" style=\"margin: 0; padding: 0; border: none; background: none; color: inherit; white-space: pre; line-height: 1.4;\">f = openAIFunction(serverTools)<\/pre>\n<\/div>\n<h6><\/h6>\n<pre style=\"background: none;\">f = \r\n  openAIFunction with properties:\r\n\r\n    FunctionName: \"primeSequence\"\r\n     Description: \"Return the first N primes of the given sequence type. Four sequence types supported: Eisenstein, Balanced, Isolated and Gaussian.\"\r\n      Parameters: [1\u00d71 struct]\r\n<\/pre>\n<\/div>\n<\/div>\n<h6><\/h6>\n<div>\n<h6><\/h6>\n<div style=\"position: relative; background: #f9fafb; border: 1px solid #d1d5db; border-radius: 6px; padding: 1rem; font-family: Consolas,monospace; color: #111827;\">\n<pre id=\"matlab-snippet\" style=\"margin: 0; padding: 0; border: none; background: none; color: inherit; white-space: pre; line-height: 1.4;\">model = openAIChat(Model=\"gpt-5-mini\",Tools=f)<\/pre>\n<\/div>\n<h6><\/h6>\n<pre style=\"background: none;\">model = \r\n  openAIChat with properties:\r\n\r\n           ModelName: \"gpt-5-mini\"\r\n         Temperature: 1\r\n                TopP: 1\r\n       StopSequences: [0\u00d70 string]\r\n             TimeOut: 10\r\n        SystemPrompt: []\r\n      ResponseFormat: \"text\"\r\n     PresencePenalty: 0\r\n    FrequencyPenalty: 0\r\n       FunctionNames: \"primeSequence\"\r\n<\/pre>\n<\/div>\n<h6><\/h6>\n<h6><\/h6>\n<p>\u30e2\u30c7\u30eb\u306b\u3069\u306e\u30c4\u30fc\u30eb\u3092\u547c\u3073\u51fa\u3059\u304b\u9078\u3070\u305b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u3053\u3053\u3067\u306f\u3001\u9078\u629e\u3067\u304d\u308b\u30c4\u30fc\u30eb\u306f1\u3064\u3060\u3051\u3067\u3059\u3002<\/p>\n<h6><\/h6>\n<div>\n<div style=\"position: relative; background: #f9fafb; border: 1px solid #d1d5db; border-radius: 6px; padding: 1rem; font-family: Consolas,monospace; color: #111827;\">\n<pre id=\"matlab-snippet\" style=\"margin: 0; padding: 0; border: none; background: none; color: inherit; white-space: pre; line-height: 1.4;\">[~,completeOutput] = generate(model,\"generate a sequence of 10 prime numbers\")<\/pre>\n<\/div>\n<h6><\/h6>\n<pre style=\"background: none;\">completeOutput = struct with fields:\r\n           role: 'assistant'\r\n        content: []\r\n     tool_calls: [1\u00d71 struct]\r\n        refusal: []\r\n    annotations: []\r\n<\/pre>\n<\/div>\n<h6><\/h6>\n<div>\n<h6><\/h6>\n<div style=\"position: relative; background: #f9fafb; border: 1px solid #d1d5db; border-radius: 6px; padding: 1rem; font-family: Consolas,monospace; color: #111827;\">\n<pre id=\"matlab-snippet\" style=\"margin: 0; padding: 0; border: none; background: none; color: inherit; white-space: pre; line-height: 1.4;\">completeOutput.tool_calls<\/pre>\n<\/div>\n<h6><\/h6>\n<pre style=\"background: none;\">ans = struct with fields:\r\n          id: 'call_5TOPVJ5zftW3WWydHQ0fmpyR'\r\n        type: 'function'\r\n    function: [1\u00d71 struct]\r\n<\/pre>\n<\/div>\n<h6><\/h6>\n<h6><\/h6>\n<div>\u5f8c\u306f\u3053\u306e\u30ed\u30b8\u30c3\u30af\u3092\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u578b\u30eb\u30fc\u30d7\u306b\u7d71\u5408\u3059\u308b\u3060\u3051\u3067\u3059\uff1a<\/div>\n<div>\n<div style=\"position: relative; background: #f9fafb; border: 1px solid #d1d5db; border-radius: 6px; padding: 1rem; font-family: Consolas,monospace; color: #111827;\">\n<pre id=\"matlab-snippet\" style=\"margin: 0; padding: 0; border: none; background: none; color: inherit; white-space: pre; line-height: 1.4;\">toolRequest = completeOutput.tool_calls(1).function<\/pre>\n<\/div>\n<h6><\/h6>\n<pre style=\"background: none;\">toolRequest = struct with fields:\r\n         name: 'primeSequence'\r\n    arguments: '{\"n\":10,\"type\":\"Eisenstein\"}'\r\n<\/pre>\n<\/div>\n<h6><\/h6>\n<div>\n<h6><\/h6>\n<div style=\"position: relative; background: #f9fafb; border: 1px solid #d1d5db; border-radius: 6px; padding: 1rem; font-family: Consolas,monospace; color: #111827;\">\n<pre id=\"matlab-snippet\" style=\"margin: 0; padding: 0; border: none; background: none; color: inherit; white-space: pre; line-height: 1.4;\">output = callTool(client,toolRequest)<\/pre>\n<\/div>\n<h6><\/h6>\n<pre style=\"background: none;\">output = \"[2,5,11,17,23,29,41,47,53,59]\"<\/pre>\n<\/div>\n<h6><\/h6>\n<p>&nbsp;<\/p>\n<div>\u4ee5\u4e0a\u306e\u6d41\u308c\u3092\u5b9f\u884c\u3057\u3066\u307f\u305f\u52d5\u753b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002MATLAB \u3067 MCP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3001\u63a5\u7d9a\u3055\u308c\u305f MCP \u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30c4\u30fc\u30eb\u3092\u547c\u3073\u51fa\u3059\u305f\u3081\u306b LLM \u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/div>\n<p>&nbsp;<\/p>\n<h6><\/h6>\n<p><div class=\"row\"><div class=\"col-xs-12 containing-block\"><div class=\"bc-outer-container add_margin_20\"><videoplayer><div class=\"video-js-container\"><video data-video-id=\"6386236146112\" data-video-category=\"blog\" data-autostart=\"false\" data-account=\"62009828001\" data-omniture-account=\"mathwgbl\" data-player=\"rJ9XCz2Sx\" data-embed=\"default\" id=\"mathworks-brightcove-player\" class=\"video-js\" controls><\/video><script src=\"\/\/players.brightcove.net\/62009828001\/rJ9XCz2Sx_default\/index.min.js\"><\/script><script>if (typeof(playerLoaded) === 'undefined') {var playerLoaded = false;}(function isVideojsDefined() {if (typeof(videojs) !== 'undefined') {videojs(\"mathworks-brightcove-player\").on('loadedmetadata', function() {playerLoaded = true;});} else {setTimeout(isVideojsDefined, 10);}})();<\/script><\/div><\/videoplayer><\/div><\/div><\/div><\/p>\n<p>\u30b3\u30fc\u30c9\u306f\u3053\u3061\u3089\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059: <a href=\"https:\/\/github.com\/mathworks\/MATLAB-AI-Blog\/tree\/main\/matlab-mcp-client-on-github\" class=\"external\" rel=\"nofollow\" target=\"_blank\">https:\/\/github.com\/mathworks\/MATLAB-AI-Blog\/tree\/main\/matlab-mcp-client-on-github<\/a><\/p>\n<div>\n<p>&nbsp;<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img src=\"https:\/\/blogs.mathworks.com\/japan-community\/files\/2025\/12\/mcp-client-thumbnail.png\" class=\"img-responsive attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"\" decoding=\"async\" loading=\"lazy\" \/><\/div>\n<p>\n\u203b\u3053\u306e\u6295\u7a3f\u306f 2025 \u5e74 12 \u6708 10 \u65e5\u306b  Artificial Intelligence \u3078 \u6295\u7a3f\u3055\u308c\u305f\u3082\u306e\u306e\u6284\u8a33\u3067\u3059\u3002<br \/>\n&#8212;<\/p>\n<p>\u30b2\u30b9\u30c8\u30e9\u30a4\u30bf\u30fc: Shweta Pujari<\/p>\n<p>Shweta Pujari \u306f AI \u3068\u751f\u6210 AI \u306e\u30d7\u30ed\u30c0\u30af\u30c8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3067\u3059\u3002\u3053\u306e\u30d6\u30ed\u30b0\u8a18\u4e8b\u3067\u306f\u3001Shweta \u304c\u79c1\u3068\u4e00\u7dd2\u306b\u3001\u65b0\u3057\u3044 MATLAB MCP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f7f\u3063\u3066&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/japan-community\/2025\/12\/19\/matlab-mcp-client-on-github-jp\/\">read more >><\/a><\/p>\n","protected":false},"author":159,"featured_media":14361,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[182,61,193],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/posts\/14330"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/users\/159"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/comments?post=14330"}],"version-history":[{"count":13,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/posts\/14330\/revisions"}],"predecessor-version":[{"id":14368,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/posts\/14330\/revisions\/14368"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/media\/14361"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/media?parent=14330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/categories?post=14330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/tags?post=14330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}