MatlabMCP
MCP server to run MATLAB code from LLM via the Matlab Engine API.
How to use
The MatlabMCP server enables you to execute MATLAB code directly from large language models (LLMs) using the MATLAB Engine API. By integrating MATLAB's computational capabilities with LLMs, you can leverage advanced mathematical and data processing functions seamlessly, making it an ideal choice for developers looking to enhance their AI applications with robust numerical analysis and modeling features.
Once you have connected to the MatlabMCP server, you can send MATLAB commands as queries through the established connection. The server is designed to handle a variety of computational requests, from basic arithmetic to complex matrix operations. For best results, formulate your commands to be specific and concise, ensuring that the inputs align with MATLAB's syntax and data types.
How to install
Prerequisites
Before installing MatlabMCP, ensure you have the following prerequisites:
- MATLAB installed on your machine
- Node.js installed (version 14.x or higher recommended)
- Python installed (for any additional scripts)
Option A: Quick start with npx
You can quickly start using MatlabMCP with npx. Run the following command in your terminal:
npx -y jigarbhoye04/MatlabMCP
Option B: Global install alternative
If you prefer to install it globally, you can clone the repository and run it directly:
git clone https://github.com/jigarbhoye04/MatlabMCP.git
cd MatlabMCP
npm install
node server.js
Additional notes
When configuring the MatlabMCP server, ensure that your MATLAB installation is correctly set up and that the MATLAB Engine API is accessible from your Node.js environment. You may need to set environment variables for MATLAB's path in your terminal before running the server. Common issues include path misconfigurations, so double-check that the MATLAB executable is within your system’s PATH.
Related MCP Servers
mcp -qdrant
An official Qdrant Model Context Protocol (MCP) server implementation
asterisk
Asterisk Model Context Protocol (MCP) server.
mcp-file-edit
A simple MCP server for file system operations, ideal for vide-coding type activities.
system_information_mcp
DevEnvInfoServer - Cursor MCP Server for Development Environment Information
llm-bridge
A model-agnostic Message Control Protocol (MCP) server that enables seamless integration with various Large Language Models (LLMs) like GPT, DeepSeek, Claude, and more.
mcp -bluesky-py
专为 AI Agent 设计的轻量级社交接口 (Lightweight Bluesky MCP Server for AI Agents)