UML Diagram GeneratorSAFE
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
English | 中文
[](https://smithery.ai/server/@Swayingleaves/uml-mcp-server)
UML-MCP Server is a UML diagram generation tool based on MCP (Model Context Protocol), which can help users generate various types of UML diagrams through natural language description or directly writing PlantUML code.
Functional Features
- Supports multiple UML diagram types: class diagram, sequence diagram, activity diagram, use case diagram, state diagram, component diagram, deployment diagram, object diagram
- UML diagrams can be generated through natural language description
- You can directly use PlantUML code to generate UML diagrams
- Return PlantUML code and accessible URL links for easy sharing and viewing
- Simultaneously save the generated UML diagram locally and provide the local file path
- Support custom save path and specify the output directory for UML images
- As an MCP server, it can integrate with clients that support MCP, such as Claude
- A comprehensive logging system that records server operating status and operation logs
Installation
Installing via Smithery
To install UML Diagram Generation Tool for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @Swayingleaves/uml-mcp-server --client claude
Manual Installation
- Clone repository:
git clone https://github.com/yourusername/UML-MCP-Server.git cd UML-MCP-Server
- Create and activate a virtual environment:
python -m venv uml-mcp-venv source uml-mcp-venv/bin/activate # Linux/Mac # Or uml-mcp-venv\Scripts\activate # Windows
- Install dependencies:
pip install -r requirements.txt
Usage Method
Used as a Python Library
from fix_plantuml import generate_uml # Create UML code uml_code = """ @startuml Title: Simple Class Diagram
fa3f5aa30519OBSERVED · 2026-10-08Exposed tools (10)
10 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
generate_activity_diagram | read | 生成活动图并返回代码和URL。 |
generate_class_diagram | read | 生成类图并返回代码和URL。 |
generate_component_diagram | read | 生成组件图并返回代码和URL。 |
generate_deployment_diagram | read | 生成部署图并返回代码和URL。 |
generate_object_diagram | read | 生成对象图并返回代码和URL。 |
generate_sequence_diagram | read | 生成序列图并返回代码和URL。 |
generate_state_diagram | read | 生成状态图并返回代码和URL。 |
generate_uml | read | 生成UML图并返回代码、URL和本地路径。 |
generate_uml_from_code | read | 从PlantUML代码生成UML图并返回URL和本地路径。 |
generate_usecase_diagram | read | 生成用例图并返回代码和URL。 |
Trust audit
SAFEgrade B · trust 86/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | WARN |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (1 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (3)
sse
mcp, requests, python-dateutil
Gates applied: no_behavioural_pass, no_license.
fa3f5aa30519full audit observations/trust-audit/mcp-server/swayingleaves__uml-diagram-generator.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | fa3f5aa30519 | SAFE | B | 86 | first audit |
Questions
What tools does UML Diagram Generator expose?
10 in total: 10 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is UML Diagram Generator safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (86/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does UML Diagram Generator need?
No credential environment variables were found in its source, so it appears to need none.
How does UML Diagram Generator run?
It speaks sse, so it runs as a service you connect to over the network.
How current is this page?
The grade is for one exact copy of the source (fa3f5aa30519), read on 2026-10-08. The repository is watched and re-audited when it changes.