staruml-controller-sysml-mcp
Allows importing Mermaid diagram definitions into StarUML.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@staruml-controller-sysml-mcpCreate a SysML requirements diagram for the infusion pump project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
StarUML Controller MCP Server — SysML Diagram
An MCP (Model Context Protocol) server specialized for SysML Diagrams. Enables AI assistants like Claude to programmatically create and manage SysML diagrams — requirements, blocks (with properties, operations, flow properties), stakeholders, viewpoints, views, parts, and various relationship types in StarUML.
Medical Infusion Pump System — Requirements diagram with traceability (deriveReqt, satisfy) generated entirely through MCP tool calls
Architecture
Related MCP server: StarUML MCP Server
Prerequisites
Node.js 20+
StarUML with the staruml-controller extension 2.x installed and running
Upgrading from 1.x: version 2 needs the staruml-controller extension 2.x, which requires a password. Update the extension,
staruml-controller-mcp-coreand this package together. Pull and rebuildstaruml-controller-mcp-corefirst, then this package.
Setup
1. Clone and build the core package
git clone https://github.com/pontasan/staruml-controller-mcp-core.git
cd staruml-controller-mcp-core
npm install && npm run build
cd ..2. Clone and build this package
git clone https://github.com/pontasan/staruml-controller-sysml-mcp.git
cd staruml-controller-sysml-mcp
npm install && npm run build3. Start the StarUML Controller Server
Launch StarUML and open a project (or create a new one)
From the menu bar, select Tools > StarUML Controller > Start Server...
A dialog asks for the port (default:
12345) and the password. A random UUID is filled in as the password automatically; keep it, press Regenerate for a new one, or type your own. Click Start ServerThe HTTP server starts and the password is copied to the clipboard, so you can paste it into the MCP server setting (
STARUML_PASSWORD). The password is remembered for the next start. To copy it again or to change it, stop the server and open Start Server... again: the dialog shows the password with Copy and Regenerate buttonsAll SysML Diagram tools become available via MCP
4. Configure your AI assistant
Claude Code — add to your project's .mcp.json:
{
"mcpServers": {
"staruml-sysml": {
"command": "node",
"args": ["/absolute/path/to/staruml-controller-sysml-mcp/dist/index.js"],
"env": { "STARUML_PASSWORD": "<password>" }
}
}
}Or via CLI:
claude mcp add staruml-sysml -e STARUML_PASSWORD=<password> -- node /absolute/path/to/staruml-controller-sysml-mcp/dist/index.jsClaude Desktop — add to your config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"staruml-sysml": {
"command": "node",
"args": ["/absolute/path/to/staruml-controller-sysml-mcp/dist/index.js"],
"env": { "STARUML_PASSWORD": "<password>" }
}
}
}Restart your AI assistant.
Available Tools
All tools accept optional host and port parameters. Their defaults come from environment variables of the MCP server:
Variable | Required | Description |
| Yes | The password entered when the StarUML Controller server was started |
| No | Host of the machine running StarUML (default: |
| No | Port of the StarUML Controller server (default: |
The password is never a tool parameter, so it does not pass through the AI conversation.
File paths: tools that write or read files (diagram_export, project_export, project_export_all, project_export_doc, project_import) use a path on the machine running this MCP server. save_project and open_project use a path on the machine running StarUML.
SysML Diagram Tools
The core of this server — full CRUD for every SysML Diagram resource.
Resource | Tools |
Diagrams |
|
Requirements |
|
Blocks |
|
— Properties |
|
— Operations |
|
— Flow Properties |
|
Stakeholders |
|
Viewpoints |
|
Views |
|
Parts |
|
Conforms |
|
Exposes |
|
Copies |
|
Derive Reqts |
|
Verifies |
|
Satisfies |
|
Refines |
|
Connectors |
|
Common Tools
Shared infrastructure tools available across all StarUML Controller MCP servers.
Tool | Description |
| Get server status, version, and endpoint list |
| Get any element by ID |
| List tags on an element |
| Create a tag on an element |
| Get tag details |
| Update a tag |
| Delete a tag |
| Save project to a .mdj file |
| Open a .mdj project file |
Tool | Description |
| Create a new empty project |
| Close the current project |
| Import a .mdj fragment into the project |
| Export a model fragment to a .mdj file |
| Export all diagrams as images (PNG/SVG/JPEG/PDF) |
| Export project documentation (HTML/Markdown) |
Tool | Description |
| Undo the last action |
| Redo the last undone action |
| Search elements by keyword with optional type filter |
| Run model validation |
| Import a Mermaid diagram definition |
| Generate a diagram from natural language (requires AI extension) |
Tool | Description |
| List all diagrams (optionally filter by type) |
| Create a new diagram of any type |
| Get diagram details by ID |
| Update diagram name |
| Delete a diagram |
| List all elements on a diagram |
| List all views on a diagram |
| Create a node element on a diagram |
| Create a relation between elements |
| Export diagram as image (PNG/SVG/JPEG/PDF) |
| Auto-layout diagram with configurable direction |
| Open/activate a diagram in the editor |
| Set diagram zoom level |
| Create a view of an existing model on a diagram |
| Create a UMLLinkObject on an object diagram |
Tool | Description |
| List all notes on a diagram |
| Create a note with text and position |
| Get note details |
| Update note text |
| Delete a note |
| List all note links on a diagram |
| Create a link between a note and an element |
| Delete a note link |
| List all free lines on a diagram |
| Create a free line on a diagram |
| Delete a free line |
| List all shapes on a diagram |
| Create a shape (Text, TextBox, Rect, RoundRect, Ellipse, Hyperlink, Image) |
| Get shape details |
| Update shape text |
| Delete a shape |
Tool | Description |
| Move/resize a view (left, top, width, height) |
| Update visual style (fillColor, lineColor, fontColor, fontSize, etc.) |
| Reconnect an edge to different source/target |
| Align/distribute multiple views |
| Update any element's name and documentation |
| Delete any element by ID |
| List all relationships of an element |
| List all views of an element across diagrams |
| Move element to a different parent |
| Create a child element (attribute, operation, etc.) |
| Reorder element within parent (up/down) |
Related Projects
This server is part of the StarUML Controller MCP family:
Server | Diagram Type |
staruml-controller-erd-mcp | Entity-Relationship Diagram |
staruml-controller-seq-mcp | Sequence Diagram |
staruml-controller-class-mcp | Class / Package Diagram |
staruml-controller-usecase-mcp | Use Case Diagram |
staruml-controller-activity-mcp | Activity Diagram |
staruml-controller-bpmn-mcp | BPMN Diagram |
staruml-controller-sysml-mcp | SysML Diagram |
All servers share common tools and add diagram-specific tools on top. Install only what you need.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
- ApricotOAuthtools.apricot
Manage SysML2 projects and files directly through your coding agent.
Create workflow, sequence, architecture, and mind map diagrams via AI assistants.
Create and edit collaborative architecture diagrams with any AI assistant using the Trident 2D DSL.
Generate dynamic Mermaid diagrams and charts with AI assistance. Customize styles and export diagr…
Related MCP Servers
AlicenseAqualityCmaintenanceEnables creating diagrams or generating code from diagrams in StarUML via prompts.473 npm23MIT- FlicenseNot gradedqualityDmaintenanceEnables AI to remotely control StarUML for generating UML diagrams (use case, class, sequence, ER, etc.) via MCP protocol or REST API.-
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to create and edit draw.io diagrams programmatically, supporting a wide range of diagram types and styles.107 PyPI5MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI assistants to programmatically create and manage information flow diagrams — information items and information flows in StarUML.-