IP

infobip/plantuml-mcp-server

Data science & ML

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

55 stars 5 forks Качество 83 Тренд 14MIT

infobip/plantuml-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/infobip/plantuml-mcp-server.

Обзор

infobip/plantuml-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/infobip/plantuml-mcp-server.

Обзор (машинный перевод)

Сервер Model Context Protocol (MCP), который предоставляет возможности генерации диаграмм PlantUML для Claude Desktop и Claude Code.

Доступные инструменты

  1. generate_plantuml_diagram — генерировать диаграммы и получать встраиваемые URL-адреса (SVG/PNG), необязательно сохранять локально
  2. encode_plantuml — код PlantUML для совместного использования URL
  3. decode_plantuml — декодировать PlantUML из закодированных строк

###Доступные предложения

  1. plantuml_error_handling — Руководство по обработке ошибок синтаксиса PlantUML и реализации рабочих процессов автоматического исправления

Эта подсказка предоставляет Клоду исчерпывающие инструкции о том, как: Обнаружение ошибок синтаксиса PlantUML с помощью проверки нативного сервера Внедрение интеллектуальных рабочих процессов автоматического исправления для общих проблем синтаксиса Парсирование структурированных ответов на ошибки и применение соответствующих исправлений

  • Управляйте ошибками проверки изящно с логикой повторного использования

Справка позволяет Клоду автоматически обнаруживать и исправлять распространенные ошибки PlantUML, такие как отсутствующие теги, недействительный синтаксис стрелок, опечатки в ключевых словах и недостающие цитаты, что делает генерацию диаграмм PlantUML более надежной и удобной для пользователя.

Быстрая настройка

###Код Клода

###Клод Десктоп

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

PlantUML MCP Server

A Model Context Protocol (MCP) server that provides PlantUML diagram generation capabilities for Claude Desktop and Claude Code.

Available Tools

  1. generate_plantuml_diagram - Generate diagrams and get embeddable URLs (SVG/PNG), optionally save locally
  2. encode_plantuml - Encode PlantUML code for URL sharing
  3. decode_plantuml - Decode PlantUML from encoded strings

Available Prompts

  1. plantuml_error_handling - Guidelines for handling PlantUML syntax errors and implementing auto-fix workflows

This prompt provides Claude instances with comprehensive instructions on how to:

  • Detect PlantUML syntax errors using native server validation
  • Implement intelligent auto-fix workflows for common syntax issues
  • Parse structured error responses and apply appropriate corrections
  • Handle validation failures gracefully with retry logic

The prompt enables Claude to automatically detect and fix common PlantUML errors like missing tags, invalid arrow syntax, typos in keywords, and missing quotes, making PlantUML diagram generation more reliable and user-friendly.

Quick Setup

For Claude Code

# Using default PlantUML server
claude mcp add plantuml --scope user --env PLANTUML_SERVER_URL=https://www.plantuml.com/plantuml -- npx plantuml-mcp-server

For Claude Desktop

Add this to your Claude Desktop MCP configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "plantuml": {
      "command": "npx",
      "args": ["plantuml-mcp-server"],
      "env": {
        "PLANTUML_SERVER_URL": "https://www.plantuml.com/plantuml"
      }
    }
  }
}

To use your own PlantUML server, change the PLANTUML_SERVER_URL environment variable.

Then restart Claude Desktop/Code to activate the MCP server.

What You Can Do

After setup, you can ask Claude to:

  • Generate PlantUML diagrams and get embeddable SVG/PNG URLs
  • Create sequence diagrams, class diagrams, architecture diagrams
  • Use advanced PlantUML features like !include directives and external libraries
  • Encode/decode PlantUML for URL sharing
  • Save diagrams locally with secure path restrictions

Saving Diagrams Locally

The generate_plantuml_diagram tool supports saving diagrams to local files via the output_path parameter.

Security: By default, files can only be saved within the current working directory. Only .svg and .png extensions are allowed.

To allow additional directories, set the PLANTUML_ALLOWED_DIRS environment variable:

# Allow specific directories (colon-separated)
PLANTUML_ALLOWED_DIRS=/home/user/diagrams:/tmp/output

# Allow any directory (use with caution)
PLANTUML_ALLOWED_DIRS=*

Examples

Открыть полный README на GitHub

Установка

npx plantuml-mcp-server
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "plantuml": { "command": "npx", "args": ["plantuml-mcp-server"], "env": { "PLANTUML_SERVER_URL": "https://www.plantuml.com/plantuml" } } } }