UML-MCP
@antoinebou12
About UML-MCP
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
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"uml-mcp": {
"transport": "http",
"url": "https://uml-mcp.vercel.app/mcp"
},
"sequential-thinking": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sequential-thinking"
]
}
}
}Tools
4List supported diagram types with Kroki backend, description, and formats (same data as uml://types resource). Use when the client cannot read resources.
Generate multiple diagrams in one call. Each item is like generate_uml (diagram_type, code, output_format?, theme?, scale?). Optional shared output_dir for all items. Returns a list of per-index results or errors.
Generate any UML or diagram by type (class, sequence, mermaid, d2, etc.)
Validate diagram type, format, code length, and basic syntax locally before render (no Kroki call). Returns errors and suggestions.
Overview
What is UML-MCP?
UML-MCP is a diagram generation server that implements the Model Context Protocol (MCP), enabling AI assistants and other applications to create UML diagrams, Mermaid, D2, Graphviz, ERD, and more. It connects to rendering services like PlantUML and Kroki, making diagram creation seamless from supported clients.
How to use UML-MCP?
Install Python 3.10+, clone the repository, and run python mcp_server.py. Configure the server in Claude Desktop or Cursor via mcpServers JSON pointing to the script. Use the provided tools (e.g., generate_uml, generate_class_diagram) with parameters like diagram_type, code, and output_dir. Environment variables such as MCP_OUTPUT_DIR, KROKI_SERVER, and PLANTUML_SERVER control rendering services.
Key features of UML-MCP
- Supports UML, Mermaid, D2, Graphviz, ERD, and more diagram types
- Seamless MCP integration with AI assistants
- Direct playground links for online editing
- Multiple output formats: SVG, PNG, PDF, and others
- Simple configuration with local or remote rendering servers
Use cases of UML-MCP
- Generate UML class, sequence, or activity diagrams from AI chat prompts
- Create ERDs and BPMN diagrams for database or process documentation
- Automate diagram production for software documentation and reports
- Integrate diagram generation into IDEs like Cursor or Claude Desktop
FAQ from UML-MCP
What diagram types does UML-MCP support?
UML-MCP supports UML (Class, Sequence, Activity, Use Case, State, Component, Deployment, Object), Mermaid, D2, Graphviz, ERD, BlockDiag, BPMN, and C4 with PlantUML.
What are the runtime requirements?
Python 3.10 or higher and pip. Optionally, Docker for local PlantUML or Kroki servers.
How can I use local rendering servers?
Set USE_LOCAL_PLANTUML=true and PLANTUML_SERVER=http://localhost:8080 (or USE_LOCAL_KROKI=true and KROKI_SERVER=http://localhost:8000), then start the corresponding Docker containers.
What output formats are available?
SVG, PNG, PDF, and other formats depending on the diagram type and rendering engine.
How do I integrate UML-MCP with Cursor?
Run python mcp/install_to_cursor.py or manually add the server configuration in Cursor settings under mcpServers with the command and arguments pointing to mcp_server.py.
Frequently asked questions
What diagram types does UML-MCP support?
UML-MCP supports UML (Class, Sequence, Activity, Use Case, State, Component, Deployment, Object), Mermaid, D2, Graphviz, ERD, BlockDiag, BPMN, and C4 with PlantUML.
What are the runtime requirements?
Python 3.10 or higher and pip. Optionally, Docker for local PlantUML or Kroki servers.
How can I use local rendering servers?
Set `USE_LOCAL_PLANTUML=true` and `PLANTUML_SERVER=http://localhost:8080` (or `USE_LOCAL_KROKI=true` and `KROKI_SERVER=http://localhost:8000`), then start the corresponding Docker containers.
What output formats are available?
SVG, PNG, PDF, and other formats depending on the diagram type and rendering engine.
How do I integrate UML-MCP with Cursor?
Run `python mcp/install_to_cursor.py` or manually add the server configuration in Cursor settings under `mcpServers` with the command and arguments pointing to `mcp_server.py`.
Basic information
More Other MCP servers
Activepieces
activepiecesAI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

Lemon.io
lemon-ioRequest dedicated senior developers to work on your project, write job descriptions, and prep technical interviews — all without leaving your Claude chat. Just describe what you need, and Lemon.io MCP does the rest. 1–3
Production-ready MCP integrations for AI applications
Klavis-AIKlavis AI: MCP integration platforms that let AI agents use tools reliably at any scale
MaxKB
1Panel-dev🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
AutoBrowser MCP
autobrowser-aiBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
Comments