Skip to main content
Glama

generate_diagram_url

Convert diagram code (Mermaid, PlantUML, GraphViz, etc.) into shareable URLs for displaying diagrams in browsers or embedding in documents.

Instructions

Generate a URL for a diagram using Kroki.io. This tool takes Mermaid diagram code or other supported diagram formats and returns a URL to the rendered diagram. The URL can be used to display the diagram in web browsers or embedded in documents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesDiagram type (e.g., "mermaid" for Mermaid diagrams, "plantuml" for PlantUML, "graphviz" for GraphViz DOT, "c4plantuml" for C4 architecture diagrams, and many more). See Kroki.io documentation for all supported formats.
contentYesThe diagram content in the specified format. For Mermaid diagrams, this would be the Mermaid syntax code (e.g., "graph TD; A-->B; B-->C;").
outputFormatNoThe format of the output image. Options are: "svg" (vector graphics, default), "png" (raster image), "pdf" (document format), "jpeg" (compressed raster image), or "base64" (base64-encoded SVG for direct embedding in HTML).

Other Tools

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/tkoba1974/mcp-kroki'

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