MATLABBLOCK
The MATLAB MCP server provides AI users with powerful scientific computing and data analysis capabilities. It allows users to execute MATLAB code directly in conversations, generate MATLAB scripts from natural language descriptions, and access MATLAB documentation.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
We welcome contributions from everyone.
A powerful MCP server that integrates MATLAB with AI, allowing you to execute MATLAB code, generate MATLAB scripts from natural language descriptions, and access MATLAB documentation directly through your AI assistant.
Features
Resources
- Access MATLAB documentation via
matlab://documentation/getting-startedURI - Get started guide with examples and usage instructions
Tools
execute_matlab_code- Execute MATLAB code and get results- Run any MATLAB commands or scripts
- Option to save scripts for future reference
- View output directly in your conversation
generate_matlab_code- Generate MATLAB code from natural language- Describe what you want to accomplish in plain language
- Get executable MATLAB code in response
- Option to save generated scripts
Development
Install dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
Requirements
- MATLAB installed on your system
- Node.js (v14 or higher)
Installation
Installing via Smithery
To install MATLAB MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @WilliamCloudQi/matlab-mcp-server --client claude
1. Install the package
npm install -g matlab-mcp-server
Or clone the repository and build it yourself:
git clone https://github.com/username/matlab-mcp-server.git cd matlab-mcp-server npm install npm run build
2. Configure cline to use the server
To use with cline , add the server con
f0ebf8f95646OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add matlab-mcp-server -- npx -y [email protected]
{
"mcpServers": {
"matlab-mcp-server": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (2)
1 read · 1 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
execute_matlab_code | write | Execute MATLAB code and return the results |
generate_matlab_code | read | Generate MATLAB code from a natural language description |
Trust audit
BLOCKgrade F · trust 47/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | FAIL |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (5 observation(s))
- Shell
- declared (10 observation(s))
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (25)
var deprecatedfn = new Function('fn', 'log', 'deprecate', 'message', 'site','return function (' + args + ') {' +bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);exec(`matlab -help`, (error, stdout, stderr) => {exec(
request ~ requests
* console.log(myURL.password);
"chars": "€پ‚ƒ„...†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—کTMڑ›œں ،¢£¤¥¦§ ̈©ھ«¬® ̄°±23 ́μ¶· ̧1؛»1⁄41⁄23⁄4؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûüے"
"chars": "«»...“”�•‘’� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาําิีึืฺุู–—฿เแโใไๅๆ็่้๊๋์ํTM๏๐๑๒๓๔๕๖๗๘๙®©����"
.package-lock.json
.travis.yml
.nycrc
.nycrc
.nycrc
return crypto.createHash('md5').update(bytes).digest();return crypto.createHash('sha1').update(bytes).digest();var expected = path.join(__dirname, '../../node_modules/jquery/dist/jquery.js');
assert.equal(resolve.sync('../../node_modules/jquery', { basedir: basedir, preserveSymlinks: false }), expected);assert.equal(resolve.sync('../../../../../node_modules/jquery', { basedir: basedir, preserveSymlinks: true }), expected);var resolve = require('../../../');fs.symlinkSync('../../package', packageDir, 'dir');function atob(data: string): string;
atob(data: string): string;
declare function atob(data: string): string;
const decoded = JSON.parse(atob(base64));
Gates applied: no_behavioural_pass.
f0ebf8f95646full audit observations/trust-audit/mcp-server/williamcloudqi__matlab-1.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | f0ebf8f95646 | BLOCK | F | 47 | first audit |
Questions
What is the MATLAB MCP server?
The MATLAB MCP server provides AI users with powerful scientific computing and data analysis capabilities. It allows users to execute MATLAB code directly in conversations, generate MATLAB scripts from natural language descriptions, and access MATLAB documentation.
What tools does MATLAB expose?
2 in total: 1 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is MATLAB safe to connect to an agent?
No — not without reading the findings first. The audit graded it F (47/100) and found 6 critical or high issues in the source. Each one is listed on this page with the file and line it is on.
What credentials does MATLAB need?
No credential environment variables were found in its source, so it appears to need none.
How does MATLAB run?
It speaks sse and stdio, so it runs as a local process your client starts. It is published on npm as matlab-mcp-server at 0.1.0.
How current is this page?
The grade is for one exact copy of the source (f0ebf8f95646), read on 2026-10-08. The repository is watched and re-audited when it changes.