# matlab-mcp-core-server

The matlab-mcp-core-server skill gives your coding assistant a MATLAB connection through MathWorks' MCP server: run scripts, check .m files statically, list toolboxes, attach to an open session.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 201 installs · ★ 9 repo stars
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/mcp-skills/tree/HEAD/skills/matlab-mcp-core-server/SKILL.md
- Updated: 2026-10-09
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/matlab-mcp-core-server

## What it does

The skill wires your assistant to the MCP server that MathWorks ships, so MATLAB turns into one more tool inside the conversation. From there the agent runs `.m` files, evaluates short expressions, inspects code without executing it, and reports the installed toolboxes together with the MATLAB version.

Four tools come with the server. `check_matlab_code` takes a file path and reports problems while leaving the script untouched. `evaluate_matlab_code` wants a code string plus a working folder, whereas `run_matlab_file` wants the script path. `detect_matlab_toolboxes` answers what is installed. Startup behaviour is set by `--matlab-display-mode` (`desktop` or `nodesktop`), and `--matlab-session-mode=existing` attaches to a session that is already running.

Two things have to be ready first: MATLAB R2021a or newer on the system `PATH`, and the server binary pulled from the releases. Miss either one and the server never starts, however tidy the config looks. Attaching to a live session takes R2023a or newer, and that mode needs a one-time `./matlab-mcp-core-server --setup-matlab` run.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill matlab-mcp-core-server -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/matlab-mcp-core-server/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/matlab-mcp-core-server/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill matlab-mcp-core-server -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/matlab-mcp-core-server/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill matlab-mcp-core-server -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/matlab-mcp-core-server/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/mcp-skills skills/matlab-mcp-core-server
```

2. **Manually: put the files in place**
- File: `.github/skills/matlab-mcp-core-server/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill matlab-mcp-core-server -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/mcp-skills --path skills/matlab-mcp-core-server
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/matlab-mcp-core-server/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill matlab-mcp-core-server -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/mcp-skills/tree/HEAD/skills/matlab-mcp-core-server/SKILL.md

## When to use it
- run a MATLAB script from the chat and read its output
- catch style and error issues in an `.m` file without executing it
- list the MATLAB version and installed toolboxes
- attach to a MATLAB session that is already open
- evaluate a quick matrix or plotting snippet without leaving the editor

## Example prompts
- Run `/home/user/projects/analysis.m` in MATLAB and show me the output
- Check `/home/user/projects/calculate_fft.m` for style problems
- Which MATLAB toolboxes are installed on this machine?

## Similar
- [MATLAB MCP Server](https://affpapa.org/en/nevibecode/mcp/matlab-mcp-server.md) — MCP server · ★ 1850 repo stars
- [matlab](https://affpapa.org/en/nevibecode/skills/matlab.md) — skill · 2200 installs
- [matlab-simulink-tools](https://affpapa.org/en/nevibecode/plugins/matlab-simulink-tools.md) — plugin · ★ 1596 repo stars
- [comsol-multiphysics-modeler](https://affpapa.org/en/nevibecode/skills/comsol-multiphysics-modeler.md) — skill · 1 install
- [scientific-toolkit-skill](https://affpapa.org/en/nevibecode/skills/scientific-toolkit-skill.md) — skill · 896 installs
- [obsidian-project-kb-core](https://affpapa.org/en/nevibecode/skills/obsidian-project-kb-core.md) — skill · 332 installs

From the same set: [reason-machines/mcp-skills](https://affpapa.org/en/nevibecode/by/reason-machines/mcp-skills.md) — 98 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
