SimuBridge

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.

Category
Visit Server

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.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.

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

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.

Official
Featured