IP

infobip/plantuml-mcp-server

Data science & ML

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

55 stars 5 forks 品質 83 トレンド 20MIT

infobip/plantuml-mcp-server は [https://github.com/infobip/plantuml-mcp-server.] からインポートされた MCP サーバーの候補です

概要

infobip/plantuml-mcp-server は [https://github.com/infobip/plantuml-mcp-server.] からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

ClaudeデスクトップとClaudeコード用のPlanetUML図生成機能を提供するモデルコンテキストプロトコル(MCP)サーバー。

利用可能なツール

1.[generate_plantuml_diagram - 図を生成し、埋め込むURL(SVG/PNG)を、必要に応じてローカルに保存します 2.[encode_plantuml - URL共有用のPlanetUMLコードのエンコード 3.[decode_plantuml - 符号化された文字列からPlanetUMLをデコードする

利用可能なプロンプト

1.[plantuml_error_handling - プラントUMLの構文エラーの処理と自動修正ワークフローの実装に関するガイドライン

このプロンプトは、Claudeインスタンスを包括的な手順で提供します。

  • ネイティブサーバー検証を使用してPlanetUMLの構文エラーを検出する
  • 一般的な構文の問題のためのインテリジェントなオートフィックスワークフローを実装
  • 構造化されたエラー応答をパースし、適切な補正を適用します
  • 再試行ロジックで検証の失敗を優雅に処理します

プロンプトにより、Claude は、欠落タグ、無効な矢印の構文、キーワードの typos などの一般的な PlantUML エラーを自動的に検出し、修正することができます。

クイックセットアップ

##Claudeコード用

##Claudeデスクトップ用

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

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

GitHub で README 全文を見る

インストール

npx plantuml-mcp-server
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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