Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
KROKI_SERVERNoKroki server URLhttps://kroki.io
MCP_READ_ONLYNoDisable file writesfalse
MCP_OUTPUT_DIRNoDiagram output directory./output
PLANTUML_SERVERNoPlantUML server URLhttp://plantuml-server:8080
USE_LOCAL_KROKINoUse local Kroki instancefalse
USE_LOCAL_PLANTUMLNoUse local PlantUML instancefalse
MCP_BATCH_MAX_ITEMSNoMax items per generate_uml_batch20
MCP_MAX_CODE_LENGTHNoMax diagram code length500000
MCP_RATE_LIMIT_PER_MINUTENoHTTP rate limit per IP for diagram/MCP routes (0 = off)0

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_diagram_typesA

List supported diagram types with Kroki backend, description, and formats (same data as uml://types resource). Use when the client cannot read resources.

generate_uml_batchA

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_umlB

Generate any UML or diagram by type (class, sequence, mermaid, d2, etc.)

validate_umlA

Validate diagram type, format, code length, and basic syntax locally before render (no Kroki call). Returns errors and suggestions.

Prompts

Interactive templates invoked by user choice

NameDescription
uml_diagramBase prompt for UML diagram generation
uml_diagram_with_thinkingPrompt for generating UML diagrams with plan-then-generate. Same workflow as uml_diagram (plan first, then code and generate_uml), plus explicit planning instructions and optional sequential-thinking MCP guidance.
class_diagramPrompt for generating UML class diagrams
sequence_diagramPrompt for generating UML sequence diagrams
activity_diagramPrompt for generating UML activity diagrams
usecase_diagramPrompt for generating UML use case diagrams
mermaid_sequence_apiPrompt for a Mermaid sequenceDiagram showing a typical API call: client, API, optional auth/DB, request/response, and optional alt block.
mermaid_ganttPrompt for a Mermaid gantt chart with title, dateFormat, sections, and tasks.
bpmn_process_guidePrompt that instructs the model to explain how to draw a BPMN process model: start/end events, tasks, gateways, sequence flow, lanes, aligned with BPMN 2.0.2. Optionally point to uml://templates (key bpmn), uml://examples (key bpmn), and generate_uml.
c4_modelTask-specific guidance for C4 via Kroki c4plantuml backend (aligned with uml://templates key c4plantuml).
wireviz_harnessAligned with uml://templates and uml://examples for wireviz.
bpmn_executable_processTask-first BPMN XML; aligned with uml://templates (key bpmn).
convert_class_to_mermaidPrompt for converting a class diagram (PlantUML or prose) into Mermaid classDiagram. Instructs to output Mermaid classDiagram and optionally call generate_uml("mermaid", code).
algorithm_explainerTask-focused prompt for explaining algorithms as diagrams. Steers the model through (1) picking a diagram shape that matches the algorithm's structure, (2) labeling each step with its complexity, and (3) using layout directives that reduce crossing arrows. Then call `generate_uml` with the chosen `diagram_type` and the raw source.
paper_concept_diagramTask-focused prompt for academic-paper concept diagrams with clickable citation links.

Resources

Contextual data attached and managed by the client

NameDescription
get_diagram_typesGet available diagram types
get_diagram_templatesGet diagram templates for different diagram types
get_diagram_examplesGet diagram examples for different diagram types
get_output_formatsGet supported output formats for each diagram type
get_capabilitiesType → backend → formats matrix for tooling and clients.
get_server_infoGet MCP server information
get_diagram_recipesReturn curated starter recipes that map a use case to a ready-to-edit source body.
get_recommended_workflowReturn the recommended workflow: plan first, then call generate_uml.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/antoinebou12/uml-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server