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.
Overview
The MATLAB MCP Server is a powerful tool that integrates MATLAB with AI, enabling users to execute MATLAB code, generate MATLAB scripts from natural language descriptions, and access MATLAB documentation directly through an AI assistant.
To use the MATLAB MCP Server, install the package via npm, configure it to work with your MATLAB installation, and then you can execute MATLAB commands or generate scripts by describing your needs in plain language.
- Execute MATLAB code and view results in real-time. - Generate MATLAB scripts from natural language descriptions. - Access comprehensive MATLAB documentation easily. - Save scripts for future reference.
- Quickly executing MATLAB commands during data analysis.
- Generating MATLAB scripts for automation tasks based on user descriptions.
- Accessing MATLAB documentation for learning and troubleshooting.
Add to your AI client
Use these steps to connect MATLAB MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"matlab-mcp-server-williamcloudqi": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-matlab-mcp-server-williamcloudqi"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"matlab-mcp-server-williamcloudqi": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-matlab-mcp-server-williamcloudqi"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"matlab-mcp-server-williamcloudqi": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-matlab-mcp-server-williamcloudqi"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"matlab-mcp-server-williamcloudqi": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-matlab-mcp-server-williamcloudqi"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"matlab-mcp-server-williamcloudqi": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-matlab-mcp-server-williamcloudqi"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"matlab-mcp-server-williamcloudqi": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-matlab-mcp-server-williamcloudqi"
]
}
}
}FAQ
**What are the system requirements?**
You need MATLAB installed on your system and Node.js (v14 or higher).
**Is there a guide for getting started?**
Yes, the server includes a getting started guide with examples and usage instructions.
**Can I save the generated MATLAB scripts?**
Yes, you have the option to save any generated scripts for future use.