Skip to main content
skill CX Codex

matlab-mcp-server — Claude Code skill: run and check MATLAB

Skill for executing MATLAB code from AI assistants via Model Context Protocol. Lets agents run calculations, assess code quality, and manage MATLAB sessions.

no license 102 installs ★ 9 updated 2026-10-09

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add reason-machines/mcp-skills --skill matlab-mcp-server -a claude-code
Open on GitHub

What matlab-mcp-server does

matlab-mcp-server bridges MATLAB with AI applications through MCP, exposing three core tools: code execution, expression evaluation, and code quality checks using Code Analyzer. Supports desktop mode and headless operation (--matlab-display-mode=nodesktop), can connect to an existing MATLAB session or start a new one.

Requires MATLAB R2021a or later in your system PATH. Configure via command-line flags: set working folder with --initial-working-folder, choose session mode with --matlab-session-mode=existing to attach to a running MATLAB, or specify the MATLAB root if it's not auto-detected. For MATLAB R2023a and later, run ./matlab-mcp-server --setup-matlab once, then add shareMATLABSession() to your MATLAB startup script to share an existing session.

In CI/CD and cloud scenarios, use headless mode. For local work with graphics, save results to files that the agent can read back.

What it helps with

  • Execute MATLAB code directly from agent prompts
  • Validate MATLAB scripts for style and errors
  • Compute mathematical expressions in a MATLAB session
  • Connect AI to a running MATLAB instance
  • Automate engineering calculations through AI

Example prompts for the agent

  • Write MATLAB code for linear regression on three variables and run it through the analyzer
  • Apply a Butterworth filter with 100 Hz cutoff to a time-series signal
  • Calculate eigenvalues of magic(5) and check the residual

How to install matlab-mcp-server

1Skills CLI (Vercel)

npx skills add reason-machines/mcp-skills --skill matlab-mcp-server -a claude-code

2Manually: put the files in place

~/.claude/skills/matlab-mcp-server/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/matlab-mcp-server/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about matlab-mcp-server

How do I install matlab-mcp-server in Claude Code?

Run npx skills add reason-machines/mcp-skills --skill matlab-mcp-server -a claude-code, then check ~/.claude/skills/matlab-mcp-server/SKILL.md. Make sure MATLAB R2021a or later is installed and in your system PATH.

What does matlab-mcp-server do?

It's MathWorks' official skill that lets AI agents execute MATLAB code, evaluate expressions, and check code quality via Model Context Protocol. Works with Claude Code, GitHub Copilot, Cursor, and other platforms.

Can I connect to an already-running MATLAB session?

Yes, if you have MATLAB R2023a or later. Run ./matlab-mcp-server --setup-matlab, add shareMATLABSession() to your startup.m, and when installing the skill use the flag --matlab-session-mode=existing.

Similar skills

All skills for AI and ML →

From the same set98

The whole set →
mcp-servers-essential-reference mcp-servers-essential-reference is a Claude Code skill with installation commands and security guidance for 50+ MCP servers across development, data, ops, and integrations. CX Codex +1 110installs multi-llm-mcp-server The multi-llm-mcp-server skill connects Claude Code with Codex CLI and multiple language models. Use it to compare parallel model responses or hand code analysis to Codex. CX Codex +1 107installs excel-mcp-automation excel-mcp-automation is a Claude Code skill for working with Excel ranges, PivotTables, Power Query, DAX, VBA, and charts through an AI agent. It can inspect or change an Excel workbook. CX Codex +1 105installs claude-tradingview-mcp-autotrading The claude-tradingview-mcp-autotrading is a Claude Code skill connecting an agent to TradingView charts and executing BitGet trades. It checks all strategy conditions before each trade and logs executions to CSV for tax records. CX Codex +1 104installs huolala-figma-mcp huolala-figma-mcp connects an MCP service that translates Figma designs into interface code packages with sliced graphics and intermediate DSL data. CX Codex +1 102installs codex-control-plane-mcp codex-control-plane-mcp is a Claude Code and Codex skill that turns Codex Desktop into a durable worker for long tasks via an MCP server. CX Codex +1 100installs blockrun-mcp-live-data The blockrun-mcp-live-data skill connects your agent to real-time cryptocurrency prices, prediction markets, research papers, and X/Twitter data via BlockRun MCP. Pay per query from a USDC wallet—fractions of a cent each. CX Codex +1 100installs codebase-memory-mcp-pro-knowledge-graph codebase-memory-mcp-pro-knowledge-graph is a Claude Code skill that maps a codebase into a syntax-tree graph. Agents find callers, trace call chains, and assess change impact. CX Codex +1 100installs

Project sponsors

Companies that keep this analytics open