Skip to main content
Glama

πŸ”— 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.


Related MCP server: simulink-mcp

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.m for 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.md will silently break the skill. Always copy the whole skill/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:

  1. Recognize the Simulink task

  2. Read the skill definitions from SKILL.md

  3. Call MCP tools like search_library, add_block, connect to 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.engine API β€” 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.

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/naaomiur/simubridge-skills'

If you have feedback or need assistance with the MCP directory API, please join our Discord server