MCP.so
登录

MCP Kroki Server

@tkoba1974

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

tkoba1974

关于 MCP Kroki Server

MCP server to convert a diagram to picture using kroki.io

MCP Kroki Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-kroki": {
      "command": "npx",
      "args": [
        "-y",
        "@tkoba1974/mcp-kroki"
      ]
    }
  }
}

MCP Kroki Server 工具

2

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.

Download a diagram image to a local file. This tool converts diagram code (such as Mermaid) into an image file and saves it to the specified location. Useful for generating diagrams for presentations, documentation, or other offline use. Includes an option to scale SVG output.

概览

What is MCP Kroki Server?

MCP Kroki Server is an MCP server that converts diagram markup (e.g., Mermaid, PlantUML) into SVG, PNG, PDF, or JPEG images using the Kroki.io API. It is designed for developers using MCP-compatible clients like Claude Desktop who need to generate and download diagrams programmatically.

How to use MCP Kroki Server?

Install via git clone and npm, or run with npx. Add the server to your MCP client configuration (e.g., Claude Desktop) and then call the generate_diagram_url or download_diagram tools with the diagram type and content. The server sends the diagram to Kroki.io for rendering.

Key features of MCP Kroki Server

  • Generate diagram URLs for embedding or sharing
  • Download diagrams as SVG, PNG, PDF, or JPEG files
  • Support for Mermaid, PlantUML, Graphviz, and more
  • Optional scale parameter for adjusting diagram size

Use cases of MCP Kroki Server

  • Render Mermaid diagrams directly in Claude Desktop conversations
  • Download diagrams for inclusion in documentation or reports
  • Integrate diagram generation into automated workflows or CI pipelines
  • Use multiple diagram formats from a single server tool

常见问题

1

What diagram types are supported?

Mermaid, PlantUML, Graphviz, and many other formats supported by Kroki.io.

2

What output formats are available?

SVG, PNG, PDF, JPEG. For URL generation, base64 is also an option.

3

How does the scale parameter work?

The scale parameter (default 1.0, minimum 0.1

评论

其他 分类下的更多 MCP 服务器