
Staruml Mcp
io.github.ezrabrilliantPublished by GitHub account ezrabrilliantv0.2.0Updated Oct 24, 2026
MCP server for StarUML — generate UML diagrams from AI agents via stdio or HTTP.
Overview
A local MCP server that lets an AI assistant drive StarUML: generate UML diagrams from Mermaid, inspect and export diagrams, and manage project elements.
- What you can do
- Generate UML diagrams from Mermaid code and list or inspect the diagrams in the current project, including the focused one and its metadata, and export a diagram as a PNG by ID. With the companion StarUML extension installed, list and execute StarUML's built-in commands, and create, open, save and save-as projects. Query model elements by ID or search, and create, update or delete elements. Create typed native diagrams, switch between diagrams and close them.
- When to use it
- Useful when you want an assistant to build or edit UML models in StarUML directly, for example turning a description into an ER or sequence diagram, exporting diagrams as images, or scripting StarUML project and element changes.
- Requirements
- Runs locally as an npm package via npx, so Node.js 20+ is needed on the machine running the assistant. StarUML v7.0.0+ must be running with its API server enabled in settings.json on port 58321. The full 19 tools require installing the staruml-mcp-extension plugin inside StarUML. Defaults to stdio; an HTTP mode listens on port 58323.
Installation
In SourceWeft
- Open Staruml Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
staruml-mcp
[npm version] [npm downloads] [CI] [license] [MCP]
Model Context Protocol (MCP) server for StarUML. Lets AI agents (Claude Code, Cursor, VS Code Copilot, Codex) drive StarUML programmatically — generate UML diagrams from Mermaid, execute any built-in command, CRUD elements, save projects, and more.
How it fits together
- Using only Mermaid-based diagram tools? Install
staruml-mcponly. The 4 built-in tools work. - Want the full 19 tools (project save/open, element CRUD, execute any StarUML command)? Install both.
Prerequisites
- StarUML v7.0.0+ with API Server enabled (see below)
- Node.js 20+ on the machine running the AI agent
- (Optional)
staruml-mcp-extensioninstalled in StarUML — required for 15 of the 19 tools
Enable StarUML API Server
Edit settings.json at:
- Windows:
%APPDATA%\StarUML\settings.json - macOS:
~/Library/Application Support/StarUML/settings.json - Linux:
~/.config/StarUML/settings.json
Add or update:
Restart StarUML.
Verify:
Install & Use
Claude Code (recommended — HTTP transport)
Start the server in a terminal:
Register with Claude Code:
Port
58323is the canonical HTTP port, chosen to sit alongside StarUML's built-in API (58321) andstaruml-mcp-extension(58322). Override with--port <n>if needed.
Restart Claude Code. Ask:
"What StarUML tools do you have?"
Claude Desktop (stdio transport)
Edit %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
Restart Claude Desktop.
Cursor / VS Code Copilot / Codex CLI
Point your MCP client at npx -y staruml-mcp (stdio) or http://localhost:58323/mcp (HTTP).
CLI
Tools Exposed
Built-in (always available, port 58321)
Extension tools (require staruml-mcp-extension, port 58322)
To enable extension tools: install staruml-mcp-extension in StarUML (Tools → Extension Manager → Install From URL → https://github.com/ezrabrilliant/staruml-mcp-extension).
Example Prompts
- "Create an ER diagram in StarUML for a POS database: users, menus, transactions with relationships."
- "Generate a sequence diagram for JWT login: frontend → /api/auth/login → AuthService → DB → JWT response."
- "Show me the current diagram in StarUML."
- "Export diagram with ID
xyz123as an image."
Development
Architecture
Acknowledgments
Inspired by staruml/staruml-mcp-server (official stdio-only server by Minkyu Lee, StarUML creator). This project reimplements it with multi-transport support and strict TypeScript.
License
MIT © Ezra Brilliant Konterliem
Source: README.md at commit 3a58d81
Tools
0Version history
1- v0.2.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts