UML-MCP-Server

by Swayingleaves

28 stars
240 downloads
Not rated
GitHub

Description

# UML-MCP-Server [English](README.md) | [中文](README_zh.md) [![smithery badge](https://smithery.ai/badge/@Swayingleaves/uml-mcp-server)](https://smithery.ai/server/@Swayingleaves/uml-mcp-server) UML-MCP Server is a UML diagram generation tool based on MCP (Model Context…

About

# UML-MCP-Server [English](README.md) | [中文](README_zh.md) [![smithery badge](https://smithery.ai/badge/@Swayingleaves/uml-mcp-server)](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…

Details

Author
Swayingleaves
GitHub stars
28
Downloads
240
Categories
Developer Tools, Knowledge Base, Other

- Supports nine UML diagram types: class, sequence, activity, use case, state, component, deployment, and object.
- Generate diagrams from natural language descriptions.
- Accept direct PlantUML code input.
- Returns PlantUML code, an accessible URL link, and a local file path.
- Allows a custom output directory for saved UML images.
- Integrates as an MCP server with clients such as Claude and Cursor.
- Includes a comprehensive logging system for recording server 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:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name UML-MCP-Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Installation can be done via Smithery (npx -y @smithery/cli install @Swayingleaves/uml-mcp-server --client claude) or manually (clone the repository, create a virtual environment, and install dependencies from requirements.txt). To use it as an MCP server, configure the server in your MCP client (e.g., Cursor) by editing the client’s config.json with the command uv and arguments including the absolute path to the project directory and the output directory. You can also use it as a Python library by calling generate_uml() with PlantUML code.

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

English | 中文

smithery badge

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

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.