MCP Kroki

MCP开发工具

提供方 aescanero

开发工具 stdio · 本地进程 OAuth 授权 社区 / 第三方
查看接入方式

mcp-kroki是一个基于Kroki的流式HTTP MCP服务器,支持生成、验证和管理多种类型的图表,适用于开发和技术文档场景。

一句话选型结论

按资料字段整理

MCP Kroki 属于开发工具类 MCP 服务器,stdio · 本地进程,OAuth 授权,有可直接执行的安装命令。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类开发工具 传输方式stdio · 本地进程 鉴权OAuth 授权 部署方式本地部署
GitHub 星标 0 仓库热度,无公开仓库时显示未标注
工具数 未标注 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

开发工具
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量未标注暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

适用场景

图表生成Python本地部署技术文档开发工具Kroki集成HTTP服务

安装与配置

stdio · 本地进程 OAuth 授权
客户端在本机拉起子进程,数据不出本机
docker run -d -p 8084:8084 \

这条命令只是入口,具体启动参数请按官方文档补齐,不要直接照搬到别的服务器。

  1. 1
    准备运行环境

    stdio 服务在本地起进程,需要先装好 Docker,再按安装命令拉取依赖。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后随便调一个只读工具,确认能返回结果,再接入正式流程。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
代码与仓库操作

在对话里直接查代码、提 issue、走 PR,省掉来回切工具。

本地命令与脚本

把构建、测试、格式化这类重复命令交给模型执行。

接口联调与测试

让模型调你的接口、跑一遍用例,快速定位问题。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。

先想清楚的地方

  • stdio 方式要求本地装好运行时(如 Node.js),换机器要重新装一遍。
  • 使用前要准备好OAuth 授权对应的凭据,并按最小权限配置。
  • 资料没标注工具数量,实际能力要装好后确认。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在开发工具场景里让模型直接调用外部能力的人。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 不方便管理密钥或第三方授权的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
MCP Kroki当前 未标注 stdio · 本地进程 本地部署 有 2026-05-17
Git 838e2ec1 12 stdio · 本地进程 本地部署 有 2026-05-17
Markitdown MCP 2c653a5f 1 stdio · 本地进程 本地部署 有 2026-05-17
JavaGuide 未标注 stdio · 本地进程 本地部署 有 2026-04-11
awesome-claude-skills 未标注 stdio · 本地进程 本地部署 有 2026-04-26
Context7 831acf40 未标注 stdio · 本地进程 本地部署 有 2026-05-17

服务器档案

开发工具
字段来自项目仓库与公开索引,中文说明由本站标注
提供方aescanero上游标注的维护方 aescanero
分类开发工具本站按上游分类展示
连接方式stdio · 本地进程客户端在本机拉起子进程,数据不出本机
鉴权方式OAuth 授权远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · Docker本地安装时用到的包标识与运行时
部署类型本地部署上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

8.3 KB
来自项目仓库与上游目录的原文,未做删改

mcp-kroki

Streamable HTTP MCP server for usage with local or remote Kroki instances.

Overview

This MCP (Model Context Protocol) server provides tools to generate, validate, and manage diagrams using Kroki. It supports all diagram types available in Kroki and provides a streamable HTTP interface.

Features

  • 27+ Diagram Types Supported: Including PlantUML, Mermaid, GraphViz, D2, BPMN, and many more
  • 4 Tool Categories per Diagram Type:
  • generate_diagram_xxx: Generate diagrams in various formats (SVG, PNG, PDF, JPEG)
  • validate_diagram_xxx: Validate diagram syntax (available for diagram types with schema support)
  • obtain_svg_from_diagram: Fetch diagram content from a Kroki URL
  • save_diagram: Save diagram from URL to a local file
  • OAuth 2.1 Authentication: Optional OAuth 2.1 authentication support (can be disabled)
  • Token introspection or JWKS validation
  • Compatible with any OAuth 2.1 provider (Keycloak, Auth0, Azure AD, Okta, etc.)
  • See OAUTH.md for configuration details

Supported Diagram Types

  • Block Diagram Family: blockdiag, seqdiag, actdiag, nwdiag, packetdiag, rackdiag
  • General Purpose: bpmn, bytefield, c4plantuml, d2, dbml, ditaa, erd, excalidraw
  • Code & Architecture: graphviz, mermaid, nomnoml, pikchr, plantuml, structurizr
  • Specialized: svgbob, symbolator, umlet, vega, vegalite, wavedrom, wireviz

Quick Start with Docker

> Note: The Docker Hub image will be available after the first release (v1.0.0) is created.
> For now, use Docker Compose to build and run locally (see below).
> To publish the image, create a version tag on main: git tag -a v1.0.0 -m "Release v1.0.0" && git push origin v1.0.0

Once v1.0.0 is released, the easiest way to run mcp-kroki is using the pre-built Docker image from Docker Hub:```bash

Pull the latest image

docker pull aescanero/mcp-kroki:latest

Run the container

docker run -d -p 8084:8084 \
-e KROKI_URL=http://your-kroki-server:8000 \
aescanero/mcp-kroki:latest


### Docker Hub

**Repository:** https://hub.docker.com/r/aescanero/mcp-kroki

**Available Tags:**
- `latest` - Most recent stable release
- `1.0.0` - Specific version (example)
- `1.0` - Latest patch in version 1.0
- `1` - Latest release in major version 1

### Using Docker Compose

Create a `docker-compose.yml`:```yaml
version: "3.8"

services:
  kroki:
    image: yuzutech/kroki
    ports:
      - "8000:8000"

  mcp-kroki:
    image: aescanero/mcp-kroki:latest
    ports:
      - "8084:8084"
    environment:
      - KROKI_URL=http://kroki:8000
      - HOST=0.0.0.0
      - PORT=8084
    depends_on:
      - kroki

Then run:```bash
docker-compose up -d


## Quick Start with Kubernetes/Helm

Deploy MCP Kroki to your Kubernetes cluster using Helm:```bash
# Add the Helm repository
helm repo add mcp-kroki https://aescanero.github.io/mcp-kroki
helm repo update

# Install the chart (includes Kroki server)
helm install my-mcp-kroki mcp-kroki/mcp-kroki

# Or with custom values
helm install my-mcp-kroki mcp-kroki/mcp-kroki \
  --set service.type=LoadBalancer \
  --set ingress.enabled=true

Helm Repository

Repository URL: https://aescanero.github.io/mcp-kroki

Features:
- Deploy both MCP Kroki and Kroki server in one command
- Optional Ingress configuration
- Horizontal Pod Autoscaling support
- ConfigMap-based configuration
- Production-ready defaults

For detailed Helm chart documentation, see HELM.md.

Installation from Source

  1. Clone the repository:```bash
    git clone https://github.com/aescanero/mcp-kroki.git
    cd mcp-kroki

2. Install dependencies:```bash
pip install -r requirements.txt
  1. Configure environment variables:```bash
    cp .env.example .env

Edit .env to set your Kroki server URL


## Configuration

Create a `.env` file with the following variables:```env
# Kroki server URL (local or remote instance)
KROKI_URL=http://localhost:8000

# Server configuration
HOST=0.0.0.0
PORT=8084

Running the Server

Using Python directly:```bash

python mcp_kroki_server.py


### Using uvicorn:```bash
uvicorn mcp_kroki_server:app --host 0.0.0.0 --port 8084

The server will be available at http://localhost:8084

Usage Examples

Generate a PlantUML Diagram```json

{
"tool": "generate_diagram_plantuml",
"arguments": {
"diagram_source": "@startuml\nAlice -> Bob: Hello\n@enduml",
"output_format": "svg"
}
}


### Validate a Mermaid Diagram```json
{
  "tool": "validate_diagram_mermaid",
  "arguments": {
    "diagram_source": "graph TD\n  A-->B"
  }
}

Obtain SVG from URL```json

{
"tool": "obtain_svg_from_diagram",
"arguments": {
"diagram_url": "http://localhost:8000/plantuml/svg/SyfFKj2rKt3CoKnELR1Io4ZDoSa70000"
}
}


### Save Diagram to File```json
{
  "tool": "save_diagram",
  "arguments": {
    "diagram_url": "http://localhost:8000/mermaid/svg/...",
    "output_path": "/path/to/diagram.svg"
  }
}

Available Tools

Generation Tools (27 types)

Each diagram type has a generate_diagram_{type} tool that accepts:
- diagram_source (string): The diagram source code
- output_format (string, optional): Output format (svg, png, pdf, jpeg, base64). Default: svg

Validation Tools (7 types)

Validation is available for diagram types with schema or parser validation support:
- validate_diagram_vega
- validate_diagram_vegalite
- validate_diagram_dbml
- validate_diagram_mermaid
- validate_diagram_plantuml
- validate_diagram_bpmn
- validate_diagram_graphviz

Each validation tool accepts:
- diagram_source (string): The diagram source code to validate

Utility Tools

  • obtain_svg_from_diagram: Fetch diagram content from a Kroki URL
  • diagram_url (string): Full Kroki diagram URL

  • save_diagram: Save diagram from URL to local file

  • diagram_url (string): Full Kroki diagram URL
  • output_path (string): Local file path for saving

Health Check

Check server status:```bash
curl http://localhost:8084/health


Response:```json
{
  "status": "ok",
  "kroki_url": "http://localhost:8000",
  "supported_diagrams": 27,
  "validatable_diagrams": 7
}

Requirements

  • Python 3.8+
  • Kroki server (local or remote)
  • See requirements.txt for Python dependencies

Setting up a Local Kroki Server

Using Docker:```bash
docker run -d -p 8000:8000 yuzutech/kroki


Using Docker Compose:```yaml
version: "3"
services:
  kroki:
    image: yuzutech/kroki
    ports:
      - "8000:8000"

Deployment

Automated Releases

This project uses GitHub Actions to automatically build and publish Docker images and Helm charts when a new version tag is pushed.

To create a new release:```bash

Create a version tag (following semantic versioning)

git tag -a v1.0.0 -m "Release version 1.0.0"

Push the tag to GitHub

git push origin v1.0.0


The GitHub Actions will automatically:

**Docker:**
1. Build the Docker image for multiple platforms (linux/amd64, linux/arm64)
2. Tag the image with multiple versions (latest, 1.0.0, 1.0, 1)
3. Push to Docker Hub at https://hub.docker.com/r/aescanero/mcp-kroki

**Helm:**
1. Update the Helm chart version
2. Package the Helm chart
3. Publish to GitHub Pages at https://aescanero.github.io/mcp-kroki

For detailed information about the release process, see RELEASE.md.

## Development

### Running Locally for Development```bash
# Install dependencies
pip install -r requirements.txt

# Run with auto-reload
uvicorn mcp_kroki_server:app --reload --host 0.0.0.0 --port 8084

Building Docker Image Locally```bash

Build the image

docker build -t mcp-kroki:dev .

Run the image

docker run -p 8084:8084 -e KROKI_URL=http://localhost:8000 mcp-kroki:dev
```

License

See LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

How to Contribute

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Support

  • Issues: https://github.com/aescanero/mcp-kroki/issues
  • Docker Hub: https://hub.docker.com/r/aescanero/mcp-kroki
  • Helm Charts: https://aescanero.github.io/mcp-kroki
  • Documentation:
  • HELM.md - Helm chart documentation
  • OAUTH.md - OAuth 2.1 authentication guide
  • RELEASE.md - Release process
  • Kroki Documentation: https://kroki.io/

常见问题

7 问
答案由本站依据条目字段整理,不引用上游原文
MCP Kroki 怎么安装?

在客户端按下面的安装命令接入:docker run -d -p 8084:8084 \。装完在客户端配置里引用同一个包或端点。

MCP Kroki 怎么在客户端里配置?

它的传输方式未标注,在客户端 MCP 配置里按官方文档填写启动命令和参数,保存后重启客户端生效。

MCP Kroki 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

MCP Kroki 需要 API Key 吗?

资料标注需要OAuth 授权认证,使用前准备好对应凭据,并按最小权限配置。

MCP Kroki 能提供哪些能力?

资料显示能力标签包括 图表生成、Python、开发工具、HTTP服务。具体工具清单以官方文档为准。

MCP Kroki 需要什么运行环境?

运行时为 Docker;属于本地进程,需要在本机装好运行环境。

MCP Kroki 是本地还是远程?

它是本地进程(stdio),由客户端在本机拉起。传输方式为stdio · 本地进程。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。