UML Diagram Generator
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
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
Maintainer
Works with
Installation
Manual Installation
npx umlConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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-mcpInstall dependencies with uv
Use the uv package manager to sync the project's Python dependencies into a virtual environment.
uv syncConfigure 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"
}
}
}
}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.
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.
UML Diagram Generator Alternatives — Similar Developer Tools Servers
Looking for alternatives to UML Diagram Generator? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
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.
Set Up UML Diagram Generator in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.