SimuBridge
Enables AI assistants to control MATLAB Simulink models through natural language, providing tools for model creation, block management, wiring, simulation, and more via a local MCP backend.
README
<p align="center"> <img src="https://img.shields.io/badge/Python-3.9+-blue.svg" alt="Python"> <img src="https://img.shields.io/badge/MCP-1.2+-green.svg" alt="MCP"> <img src="https://img.shields.io/badge/MATLAB-R2021a+-orange.svg" alt="MATLAB"> <img src="https://img.shields.io/badge/license-MIT-purple.svg" alt="License"> <br> <img src="https://img.shields.io/github/stars/naaomiur/simubridge-skills?style=social" alt="Stars"> </p>
🔗 SimuBridge
AI-Powered Simulink Skill Pack with MCP Backend
What is this
simubridge-skills is a Claude Code / Codex skill project that lets AI assistants control MATLAB Simulink using natural language. It contains:
- 🎯 Skill pack (
skill/simubridge/) — prompt bundle that teaches AI how to use Simulink tools effectively - 🔧 MCP server (
src/simubridge/) — local backend connecting to MATLAB Engine with 20+ tools
The skill is the product. The MCP server is the backend.
Skill Index
| Skill | Status | Purpose | Trigger Keywords |
|---|---|---|---|
simubridge |
Stable | Simulink model creation, inspection, modification, and simulation | "Simulink", "open model", "add block", "connect", "simulate", "subsystem" |
Quick Start
Prerequisites
- MATLAB R2021a+ with Simulink
- Python 3.9–3.12
1. Install MATLAB Engine for Python
cd "C:\Program Files\MATLAB\R2024a\extern\engines\python"
python setup.py install
Verify: python -c "import matlab.engine; print('OK')"
💡 Permission error? Add
--user. Python 3.13+? Downgrade to 3.11 or 3.12.
2. Install the MCP Backend
git clone https://github.com/naaomiur/simubridge-skills.git
cd simubridge-skills
pip install -e .
3. Configure MATLAB
Run in MATLAB:
matlab.engine.shareEngine('SIMULINK_MCP_SESSION')
💡 Add to
startup.mfor auto-share on every launch:edit(fullfile(userpath, 'startup.m'))
4. Install the Skill
The skill teaches Claude how to use Simulink tools effectively. Copy the entire folder (not just SKILL.md) — the references/ directory is needed by the skill.
⚠️ Only copying
SKILL.mdwill silently break the skill. Always copy the wholeskill/simubridge/folder.
Claude Code (with MCP — full functionality)
mkdir -p ~/.claude/skills
cp -R skill/simubridge ~/.claude/skills/
Configure the MCP server (see Step 5), restart, and Claude can fully control Simulink.
Claude Code (standalone skill — no MATLAB needed)
Even without MATLAB or the MCP backend, you can still use the skill as a Simulink knowledge base for planning and discussion:
mkdir -p ~/.claude/skills
cp -R skill/simubridge ~/.claude/skills/
Start a Claude Code session and ask:
Read the simubridge skill. I'm designing a motor control system in Simulink —
suggest a block diagram layout with the right blocks and wiring topology.
Claude will read SKILL.md and references/tool-guide.md to give informed guidance — even without executing anything. This is useful for:
- Planning model architecture before building it
- Getting block library paths and parameter names for manual use
- Learning Simulink workflows and best practices
- Designing subsystem hierarchies and wiring strategies
💡 How it works: The skill provides Claude with detailed knowledge of every Simulink tool, common library paths, port types, and wiring patterns. Claude can then advise you on model design even when the MCP backend isn't running.
Codex
⚠️ Codex is not yet supported. We are working on Codex skill packaging. For now, use Claude Code.
5. Configure the MCP Server
The MCP server must be configured so the AI assistant can connect to it.
Claude Code
Add to claude_desktop_config.json:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"simubridge": {
"command": "python",
"args": ["-m", "simubridge"]
}
}
}
You can also copy the included claude_desktop_config.json directly.
Codex
Add the same configuration in Codex's MCP settings panel.
Verify Installation
Restart your AI assistant. Start a new session and try:
Open mymodel.slx, add a Gain block set to 2.5 after the Voltage Source,
and connect it to a Scope
If everything is configured correctly, Claude will:
- Recognize the Simulink task
- Read the skill definitions from
SKILL.md - Call MCP tools like
search_library,add_block,connectto complete the task
What the Skill Can Do
| Category | Tools | Description |
|---|---|---|
| Model | open_model / create_model / close_model / save_model |
Model lifecycle |
| Block | add_block / delete_block / search_library / describe_block |
Block management |
| Param | get_block_params / set_block_params / get_model_config / set_model_config |
Parameter configuration |
| Wiring | connect / delete_line |
Signal/power wiring (batch supported) |
| Inspect | model_audit / get_block_ports |
Topology audit |
| Stateflow | get_mfunction_code / set_mfunction_code |
MATLAB Function code |
| Simulation | simulate_and_analyze_waveform |
Simulation + waveform analysis |
| Workspace | get_workspace_vars / set_workspace_vars |
MATLAB workspace |
| Subsystem | create_subsystem / expand_subsystem / port management |
Subsystem ops |
| Escape | eval_matlab |
Arbitrary MATLAB execution |
📖 Complete tool documentation:
skill/simubridge/SKILL.md
Architecture
┌─────────────────┐ Skill ┌──────────────┐ MCP stdio ┌──────────────┐ MATLAB API ┌──────────┐
│ Claude / Codex │ ◄──────────── │ simubridge │ ◄──────────────► │ MCP Server │ ◄────────────► │ MATLAB │
│ + Skill Prompt │ │ (skill def) │ │ (Python) │ │(Simulink)│
└─────────────────┘ └──────────────┘ └──────────────┘ └──────────┘
- Skill layer:
skill/simubridge/SKILL.md— teaches AI how to use each tool - Transport: MCP stdio — local process, no network
- Engine:
matlab.engineAPI — connects to your running MATLAB session - Auto-save: every write operation auto-saves the model
Project Structure
simubridge-skills/
├── skill/simubridge/ # 🎯 Skill pack (primary)
│ ├── README.md # Skill documentation
│ ├── SKILL.md # Skill definition (bilingual tool reference)
│ └── references/
│ └── tool-guide.md # Quick reference
├── src/simubridge/ # 🔧 MCP backend
│ ├── __init__.py # Entry point + tool registration
│ ├── app.py # FastMCP + MATLAB engine manager
│ └── tools/ # 7 tool modules
├── examples/
│ └── basic_usage.md
├── pyproject.toml
├── claude_desktop_config.json
├── LICENSE
├── README.md # This file (English)
└── README_CN.md # Chinese version
License
MIT License — see LICENSE.
⚠️ MATLAB and Simulink are registered trademarks of The MathWorks, Inc. This project is not affiliated with or endorsed by MathWorks.
Acknowledgments
Built with FastMCP and the Model Context Protocol.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。