staruml-controller-dfd-mcp
Allows importing Mermaid diagram definitions into StarUML.
Click on "Install 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-dfd-mcpAdd a data store 'Inventory' to the DFD diagram"
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 — Data Flow Diagram (DFD)
An MCP (Model Context Protocol) server specialized for Data Flow Diagrams. Enables AI assistants like Claude to programmatically create and manage data flow diagrams — external entities, processes, data stores, and data flows in StarUML.
Architecture
Related MCP server: AI Charts
Prerequisites
Node.js 18+
StarUML with the staruml-controller extension installed and running
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-dfd-mcp.git
cd staruml-controller-dfd-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...
Enter a port (default:
12345) and click OKThe HTTP server starts — all Data Flow Diagram (DFD) tools become available via MCP
4. Configure your AI assistant
Claude Code — add to your project's .mcp.json:
{
"mcpServers": {
"staruml-dfd": {
"command": "node",
"args": ["/absolute/path/to/staruml-controller-dfd-mcp/dist/index.js"]
}
}
}Or via CLI:
claude mcp add staruml-dfd node /absolute/path/to/staruml-controller-dfd-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-dfd": {
"command": "node",
"args": ["/absolute/path/to/staruml-controller-dfd-mcp/dist/index.js"]
}
}
}Restart your AI assistant.
Available Tools
All tools accept optional host (default: localhost) and port (default: 12345) parameters.
Data Flow Diagram (DFD) Tools
The core of this server — full CRUD for every Data Flow Diagram (DFD) resource.
Resource | Tools |
Diagrams |
|
External Entities |
|
Processes |
|
Data Stores |
|
Data Flows |
|
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 installed
Maintenance
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
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/pontasan/staruml-controller-dfd-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server