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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.