UML-MCP
UML-MCP Server is a UML diagram generation tool based on MCP (Model Context Protocol). Ask for a diagram in natural language, or write PlantUML, Mermaid, D2, and Kroki source yourself — the server renders UML and 30+ other types for Cursor, VS Code Copilot, OpenAI Codex, Claude, Open WebUI + Ollama, ChatGPT, and any MCP client.
| Live MCP | https://uml-mcp.vercel.app/mcp |
| Docs | antoinebou12.github.io/uml-mcp |
| Catalog | ~37 Kroki-backed types · 5 MCP tools · URL + playground + chat PNG |
Quick start
Remote (recommended) — add to your MCP client:
json"uml-mcp": { "transport": "http", "url": "https://uml-mcp.vercel.app/mcp" }
Use /mcp, not the site root. Then ask: “Draw a sequence diagram of a user logging in through an API gateway.” or paste PlantUML / Mermaid / Kroki source.
Repo defaults: .cursor/mcp.json · .vscode/mcp.json · .codex/config.toml.
| Client | Config | Guide |
|---|---|---|
| Cursor | .cursor/mcp.json | docs/integrations/cursor.md |
| VS Code / Copilot | .vscode/mcp.json | docs/integrations/vscode_copilot.md |
| OpenAI Codex | .codex/config.toml | docs/integrations/openai_codex.md |
| Ollama / Open WebUI | config/openwebui_mcp.json | docs/integrations/ollama.md |
| Claude Desktop | config/claude_desktop_*.json | docs/integrations/claude_desktop.md |
All snippets: config/README.md
bashgit clone https://github.com/antoinebou12/uml-mcp.git cd uml-mcp uv sync uv run python server.py
If you already have the repo and need to set origin:
bashgit remote add origin https://github.com/antoinebou12/uml-mcp.git
Configs: config/README.md (Cursor, VS Code, Codex, Claude, Open WebUI, Continue)
text/plugin marketplace add https://github.com/antoinebou12/uml-mcp /plugin install uml-mcp@uml-mcp-plugins
docs/integrations/claude_code.md · Cursor skill: .skill/skills/uml-mcp-diagrams/SKILL.md
At a glance
| Topic | What you get |
|---|---|
| Diagrams | ~37 types via Kroki (UML, Mermaid, D2, TikZ, BPMN, C4, GoAT, UMLet, …) |
| Tools | generate_uml · generate_uml_image · validate_uml · list_diagram_types · generate_uml_batch |
| Chat | Inline PNG + markdown  + Playground link |
| Deploy | Local · Docker · Vercel · Smithery |
| Tool | Purpose |
|---|---|
generate_uml | Render one diagram; tool text includes image markdown, URL, Playground. Use png for ImageContent. |
generate_uml_image | Inline chat image (default PNG); fetches bytes even under hosted MCP_URL_ONLY |
validate_uml | Local checks; strict for Mermaid/D2 (rejects semicolon-packed sequenceDiagram) |
list_diagram_types | Catalog (like uml://types) |
generate_uml_batch | Many diagrams (MCP_BATCH_MAX_ITEMS, MCP_BATCH_CONCURRENCY) |
Smoke prompts: tests/prompts/chatgpt_mcp_smoke_test.md
| Resource | Description |
|---|---|
uml://types | Types, backends, formats |
uml://templates / uml://examples | Starters and samples |
uml://formats / uml://capabilities | Formats and validation matrix |
uml://server-info / uml://workflow | Version/tools and plan-then-generate |
| Category | Examples |
|---|---|
| UML | Class, Sequence, Activity, Use Case, State, Component, Deployment, Object |
| General | Mermaid, D2, Graphviz, ERD, BlockDiag, BPMN, C4 |
| Specialized | TikZ, Excalidraw, GoAT, UMLet, Nomnoml, Pikchr, Structurizr, SVGBob, WaveDrom, WireViz, … |
| Remote (Vercel) | Local | |
|---|---|---|
| Transport | HTTP MCP | stdio or HTTP |
| File writes | No | Optional |
| Chat images | PNG tools fetch bytes under URL-only | Same + optional disk |
| Env | Server-side | Your .env |
Vercel — connect the repo; clients use https://<project>.vercel.app/mcp.
Smithery — paste that /mcp URL at smithery.ai/new. Guide: docs/integrations/vercel_smithery.md.
Docker
bashdocker compose up -d docker build -t uml-mcp . && docker run -p 8000:8000 uml-mcp docker run -i uml-mcp python server.py --transport stdio
| Variable | Default |
|---|---|
KROKI_SERVER | https://kroki.io |
PLANTUML_SERVER | http://plantuml-server:8080 |
MCP_OUTPUT_DIR | ./output |
MCP_READ_ONLY | false |
MCP_URL_ONLY | see docs/configuration.md |
MCP_BATCH_MAX_ITEMS | 20 |
MCP_BATCH_CONCURRENCY | 4 |
MCP_RATE_LIMIT_PER_MINUTE | 0 |
Full list: docs/configuration.md
Assistant → generate_uml / generate_uml_image → Kroki (+ fallbacks) → url, playground, optional image bytes.
textserver.py / app.py -- MCP + FastAPI (/mcp) mcp_core/tools/ -- generate_uml, generate_uml_image, validate, batch tools/kroki/ -- Kroki, PlantUML, Mermaid, D2
AG-UI: POST /ag-ui/generate — docs/integrations/frontend.md
bashuv sync --all-groups uv run pytest tests/ -v uv run ruff check . && uv run ruff format --check . make ci
Docs locally: uv run mkdocs serve → http://127.0.0.1:8000
Community
If this survives a real production repo, it beats a lot of polished launch demos.
— @AIDailyGems on antoinebou12/uml-mcp
Daily and monthly activity (stars, forks, merged PRs, issues): trendshift.io/repositories/42725
Links
| Docs | Site · Cursor · Claude Code · Frontend |
| Contribute | CONTRIBUTING.md · CODE_OF_CONDUCT.md · SECURITY.md |
| License | MIT |
Maintained by Antoine Boucher. Built on PlantUML, Kroki, Mermaid, and D2.




