NM

neuromechanist/matlab-mcp-tools

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

19 stars 6 forks 품질 70 트렌드 22BSD-3-Clause

MCP는 단면도에 의하여 MATLAB 파이프라인 단면도를 개발하고 한 번에 1개의 차원을 읽었습니다

개요

MATLAB 파일을 개발 및 실행하기위한 도구를 제공하는 모델 Context Protocol (MCP) 서버. Claude Code, Cursor 및 기타 MCP 호환 클라이언트와 통합합니다. - Python 3.10+ - Python Engine이 설치된 MATLAB - uv 패키지 관리자 (필수) 1. - 완전한 스크립트를 실행, 개별 섹션 (지수, 제목, 또는 라인 범위), 실행 사이에 작업 공간 컨텍스트를 유지, 캡처 플롯 2. - 전체 작업 공간을 얻을, 필드 / 심도 / 크기 제어와 특정 변수를 검색, struct 메타 데이터, 목록 및 필터 변수 이름 패턴 또는 유형 3. - 추출 그림 메타 데이터 (아스, 라벨, 전설), 원 플로트 데이터를 얻을, 사용자 정의 프롬프트와 LLM 기반 분석에 대한 그림을 준비 4. - Lint MATLAB 코드 severity 필터링, 지원 인라인 코드 및 파일 경로 5. - 스크립트 생성, 미리보기가있는 목록 섹션, MCP 리소스를 통해 스크립트 콘텐츠를 읽 그게 다야!

개요(AI 번역)

MATLAB 파일을 개발 및 실행하기위한 도구를 제공하는 모델 Context Protocol (MCP) 서버. Claude Code, Cursor 및 기타 MCP 호환 클라이언트와 통합합니다.

필수품

  • 파이썬 3.10+
  • Python Engine을 탑재한 MATLAB
  • uv 패키지 관리자 (필수)

특징

1.Script Execution - 완전한 스크립트, 개별 섹션을 실행합니다( 인덱스, 제목, 또는 라인 범위), 실행 간의 작업 공간 컨텍스트를 유지, 플로트 캡처 2. ** Workspace Management** - 필드/depth/size 제어를 가진 전체 작업 공간, retrieve 특정 변수를 가져오기, struct metadata, list and filter variable by name pattern or type 3.Figure Analysis - Extract Figure metadata (axes, labels, legends)를 추출하고 원시 플로트 데이터를 얻을 수 있으며 LLM 기반 분석에 대한 그림을 맞춤 프롬프트로 준비하십시오. 4.Code Quality - Lint MATLAB 코드를 통해 checkcode] severity filtering, 인라인 코드 및 파일 경로 지원 5. ** 스크립트 관리 ** - 스크립트 생성, 미리보기가있는 목록 섹션, MCP 리소스를 통해 스크립트 콘텐츠를 읽으십시오

설치

빠른 시작 (추천)

**자동검출을 가진 1개의 COMmand 임명: **

그게 다야! 설치자는:

이 페이지는 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

  1. Script Execution - Run complete scripts, individual sections (by index, title, or line range), maintain workspace context between executions, capture plots
  2. 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
  3. Figure Analysis - Extract figure metadata (axes, labels, legends), get raw plot data, prepare figures for LLM-based analysis with custom prompts
  4. Code Quality - Lint MATLAB code via checkcode with severity filtering, supports inline code and file paths
  5. Script Management - Create scripts, list sections with previews, read script content via MCP resource

Installation

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:

  1. Clone this repository:
git clone [repository-url]
cd matlab-mcp-tools
  1. Set custom MATLAB path (optional - installer auto-detects):
# Only needed if MATLAB is in unusual location
export MATLAB_PATH=/path/to/your/matlab/installation
  1. 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

  1. Start the MCP server:
GitHub에서 전체 README 보기

설치

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" } } } }