UML Diagram Generator

v1.0.0Developer Toolsstable

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 and Mermaid and Kroki https://uml-mcp

mcpuml
Share:
84
Stars
0
Downloads
0
Weekly
0/5

What is UML Diagram Generator?

UML Diagram Generator is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 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 writ...

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 and Mermaid and Kroki https://uml-mcp

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • UML-MCP Server is a UML diagram generation tool based on MCP

Use Cases

Generate UML diagrams from natural language descriptions.
Create PlantUML, Mermaid, and Kroki diagrams via Claude.
Visualize system architecture and relationships.
antoinebou12

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx uml

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use UML Diagram Generator

UML-MCP is a diagram generation server for the Model Context Protocol that lets AI assistants create, validate, and render over 30 types of diagrams including PlantUML, Mermaid, D2, Graphviz, C4, ERD, and BPMN — all from natural language or raw diagram code. It routes rendering requests through Kroki (publicly hosted or self-hosted) and PlantUML backends, returning images in SVG, PNG, PDF, or JPEG format. Developers and architects use it to generate system diagrams, sequence diagrams, and data models directly from conversations with Claude.

Prerequisites

  • Python 3.10 or later with uv package manager installed
  • Git to clone the repository
  • An MCP-compatible client such as Claude Desktop or Claude Code
  • Optional: a self-hosted Kroki or PlantUML server for air-gapped environments
1

Clone the repository

Clone the uml-mcp repository to your local machine and change into the project directory.

git clone https://github.com/antoinebou12/uml-mcp.git && cd uml-mcp
2

Install dependencies with uv

Use the uv package manager to sync the project's Python dependencies into a virtual environment.

uv sync
3

Configure Claude Desktop to launch the server

Add the UML-MCP server to your claude_desktop_config.json. The server runs as a local Python process. Set MCP_OUTPUT_DIR to control where rendered diagram files are saved.

{
  "mcpServers": {
    "uml": {
      "command": "uv",
      "args": ["run", "python", "/path/to/uml-mcp/server.py"],
      "env": {
        "MCP_OUTPUT_DIR": "/Users/yourname/diagrams",
        "KROKI_SERVER": "https://kroki.io"
      }
    }
  }
}
4

Restart Claude Desktop

Quit and reopen Claude Desktop to load the new server. The UML server exposes four tools: generate_uml, validate_uml, list_diagram_types, and generate_uml_batch.

5

Generate your first diagram

Ask Claude to create a diagram in plain English. The server will convert your description to PlantUML or Mermaid syntax, render it via Kroki, and return the image.

UML Diagram Generator Examples

Client configuration

Claude Desktop configuration that runs the UML-MCP server as a local Python process using uv.

{
  "mcpServers": {
    "uml": {
      "command": "uv",
      "args": ["run", "python", "/path/to/uml-mcp/server.py"],
      "env": {
        "MCP_OUTPUT_DIR": "/Users/yourname/diagrams",
        "KROKI_SERVER": "https://kroki.io",
        "MCP_READ_ONLY": "false"
      }
    }
  }
}

Prompts to try

Example prompts demonstrating diagram generation, validation, and batch operations.

- "Generate a sequence diagram showing the OAuth 2.0 authorization code flow."
- "Create a class diagram for a blog system with Post, User, Comment, and Tag entities."
- "Draw a C4 context diagram for a microservices e-commerce platform."
- "Validate this PlantUML code and fix any syntax errors: @startuml\nAlice -> Bob: Hello\n@enduml"
- "List all supported diagram types and their available output formats."
- "Generate a Mermaid ERD for a relational database with customers, orders, and products."

Troubleshooting UML Diagram Generator

Diagram generation fails with 'connection refused' to Kroki

The default KROKI_SERVER is https://kroki.io which requires internet access. If you are in an air-gapped environment, deploy a local Kroki instance via Docker ('docker run -d -p 8000:8000 yuzutech/kroki') and set KROKI_SERVER=http://localhost:8000 in your env config.

Output directory not found error on startup

Create the directory specified in MCP_OUTPUT_DIR before starting the server. The server does not create the output directory automatically. Run 'mkdir -p /Users/yourname/diagrams' to create it.

uv command not found when launching the server

Install uv with 'pip install uv' or 'curl -LsSf https://astral.sh/uv/install.sh | sh'. Alternatively, use 'python server.py' directly after running 'pip install -r requirements.txt' in the cloned directory.

Frequently Asked Questions about UML Diagram Generator

What is UML Diagram Generator?

UML Diagram Generator is a Model Context Protocol (MCP) server that 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 and mermaid and kroki https://uml-mcp It connects AI assistants to external tools and data sources through a standardized interface.

How do I install UML Diagram Generator?

Follow the installation instructions on the UML Diagram Generator GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with UML Diagram Generator?

UML Diagram Generator works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is UML Diagram Generator free to use?

Yes, UML Diagram Generator is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "uml": { "command": "npx", "args": ["-y", "uml"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use UML Diagram Generator?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides