
neuromechanist/matlab-mcp-tools
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
セクションでMATLABパイプラインセクションを開発し、一度に1次元を読み込みます
概要
MATLABファイルの開発と実行のためのツールを提供するモデルコンテキストプロトコル(MCP)サーバー。 Claudeコード、Cursor、その他のMCP互換クライアントとの統合。 - Python 3.10 + - Pythonエンジンを搭載したMATLAB - uvパッケージマネージャ(必須) 1. - 完全なスクリプト、個々のセクション(インデックス、タイトル、またはライン範囲)を実行し、実行間でワークスペースのコンテキストを維持し、プロットをキャプチャします。 2. - 完全なワークスペースを取得し、フィールド/深さ/サイズ制御で特定の変数を取り出し、structメタデータ、リストを調べ、変数を名前パターンまたはタイプ3でフィルタリングします。 - 抽出図メタデータ(アックス、ラベル、凡例)を取得し、未加工プロットデータを取得し、カスタムプロンプトでLLMベースの分析のための図を準備します 4. - 重度のフィルタリングによるチェックコードによるLint MATLABコードは、インラインコードとファイルパス5をサポートしています。 - スクリプトを作成、プレビュー付きのリストセクション、MCPリソースを介してスクリプトコンテンツを読み込みます です!
概要(AI 翻訳)
MATLABファイルの開発と実行のためのツールを提供するモデルコンテキストプロトコル(MCP)サーバー。 Claudeコード、Cursor、その他のMCP互換クライアントとの統合。
前提条件
- Python 3.10 +
- インストールしたPythonエンジンを搭載したMATLAB
- uvパッケージマネージャ(必須)
##特徴
1.スクリプト実行 - 完全なスクリプト、個々のセクション(インデックス、タイトル、またはライン範囲)を実行し、実行間でワークスペースのコンテキストを維持し、プロットをキャプチャ
2.ワークスペース管理 - フィールド/サイズ制御で特定の変数をフルワークスペースを取得し、 structメタデータを検査し、名前パターンまたはタイプディープで変数をリストおよびフィルタ
3.Figure Analysis - 抽出図メタデータ(アックス、ラベル、凡例)を抽出し、生のプロットデータを取得し、カスタムプロンプトでLMベースの分析のための図を用意する
4。 コード品質 - 重度のフィルタリングで [checkcode]を介してLint MATLABコードは、インラインコードとファイルパスをサポートしています
5.スクリプト管理 - スクリプトの作成、プレビュー付きのリストセクション、MCPリソースによるスクリプトコンテンツの読み込み
インストール
##クイックスタート(推奨)
自動検出によるワンコマンドインストール:
です。 インストーラは:
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MATLAB MCP Tool
A Model Context Protocol (MCP) server that provides tools for developing and running MATLAB files. Integrates with Claude Code, Cursor, and other MCP-compatible clients.
Prerequisites
- Python 3.10+
- MATLAB with Python Engine installed
- uv package manager (required)
Features
- Script Execution - Run complete scripts, individual sections (by index, title, or line range), maintain workspace context between executions, capture plots
- Workspace Management - Get full workspace, retrieve specific variables with field/depth/size control, inspect struct metadata, list and filter variables by name pattern or type
- Figure Analysis - Extract figure metadata (axes, labels, legends), get raw plot data, prepare figures for LLM-based analysis with custom prompts
- Code Quality - Lint MATLAB code via
checkcodewith severity filtering, supports inline code and file paths - Script Management - Create scripts, list sections with previews, read script content via MCP resource
Installation
Quick Start (Recommended)
One-command installation with auto-detection:
./install-matlab-mcp.sh
That’s it! The installer will:
- ✅ Auto-detect MATLAB installations (including external volumes like
/Volumes/S1/) - ✅ Auto-install UV package manager if needed
- ✅ Create optimized virtual environment with MATLAB-compatible Python version
- ✅ Install all dependencies including MATLAB Python engine
- ✅ Generate MCP configuration ready for Cursor/Claude Code
- ✅ Verify installation works correctly
- ✅ Optionally configure Cursor automatically
Reduces installation time from 15+ minutes to ~2 minutes!
Advanced Installation
If you need custom configuration:
- Clone this repository:
git clone [repository-url]
cd matlab-mcp-tools
- Set custom MATLAB path (optional - installer auto-detects):
# Only needed if MATLAB is in unusual location
export MATLAB_PATH=/path/to/your/matlab/installation
- Run installer:
./install-matlab-mcp.sh
Legacy Installation (Manual)
Testing Installation
Test your installation:
./scripts/test-matlab-mcp.sh
Installation complete! The MATLAB MCP server is now ready to use with Cursor/Claude Code.
Usage
- Start the MCP server:
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"matlab": {
"command": "/path/to/matlab-mcp-tools/.venv/bin/matlab-mcp-server",
"env": {
"MATLAB_PATH": "/Applications/MATLAB_R2024b.app"
}
}
}
}