UML-MCP-Server
About
# UML-MCP-Server [English](README.md) | [中文](README_zh.md) [](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…
Explore
- 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
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
UML-MCP-ServerCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
In the Cursor, you can input:
For example:
1. Understand the certification process of the project
2. Generate UML code for the authentication process and generate a flowchart through UML-MCP Server
3. Attention: "output_dir": "/Users/my-project/uml-output"
Regardless of how UML tools are used, Cursor will call UML-MCP-Server and return the following:
1. PlantUML Code - You can copy this code to use in other PlantUML tools
2. PlantUML URL - You can open this URL in a browser to view the generated UML diagram
3. Local file path - The generated UML image is saved in this local path
For example:
Class diagram generated:
PlantUML code:
@startuml
Title: User and Order System
class User {
-String name
-String email
+login()
+logout()
}
class Order {
-int id
-Date date
+process()
}
User "1" -- "many" Order: places
@enduml
PlantUML URL:
http://www.plantuml.com/plantuml/png/~1UDgCqB5Bn0G1k1zYWM_EfPYQYY0Qd9oQc9oQaPcKYYcKc9gMYaiKc9gK...
Local file path:
/Users/username/projects/UML-MCP-Server/output/class_diagram_12345.png
You can view the generated UML diagram in the following ways:
- Click on the returned URL link to view in the browser
- Open the local file path in the file browser to view the saved image
- In Cursor, you can use Markdown syntax to directly display images in the chat window
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"uml-mcp-server": {
"uml-mcp-server": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@Swayingleaves/uml-mcp-server",
"--client",
"claude"
]
}
}
}
}
McpServers
{
"uml-mcp-server": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@Swayingleaves/uml-mcp-server",
"--client",
"claude"
]
}
}
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
1. Clone repository:git clone https://github.com/yourusername/UML-MCP-Server.git
cd UML-MCP-Server
2. Create and activate a virtual environment:
```bash
python -m venv uml-mcp-venv
source uml-mcp-venv/bin/activate # Linux/Mac
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



