PlantUML MCP Server
PlantUML MCPサーバー
PlantUMLスニペットを共有可能な図に変換する、柔軟なModel Context Protocol (MCP) サーバーです。 すべての機能はHTTP、Server-Sent Events (SSE)、およびSTDIO経由で公開されているため、Claude Desktop、Flowise、またはその他のMCP互換ランタイムにサーバーを接続できます。
主な機能
🧰 ツール:
generate_plantuml_diagram,generate_capability_landscape,generate_business_scenario,encode_plantuml,decode_plantuml🧾 プロンプト:
plantuml_error_handling,capability_landscape_input_format,archimate_diagram_input_format,business_scenario_input_format📚 静的リソース:
resource://plantuml/server-guide,resource://plantuml/archimate-mapping🔒
MCP_API_KEYによるオプションのBearer認証☁️ 署名付きダウンロードURL (
OB_FILE_API_BASE_URL) を介したオプションのob-fileエクスポート🔐
ob-file用のオプションのOIDCクライアント認証フロー (OB_FILE_OIDC_*)📁 フォールバック共有ボリュームエクスポート (
GENERATED_FILES_DIR+PUBLIC_FILE_BASE_URL)
Related MCP server: PlantUML MCP Server
要件
Node.js 18+
npm 9+
npm install
npm run build # emits dist/plantuml-mcp-server.jsビルド後、npx plantuml-mcp-server または node dist/plantuml-mcp-server.js を使用してください。
トランスポートモード
モード | 使用場面 | 起動方法 |
HTTP (デフォルト) | 直接的なREST形式の統合、リバースプロキシ、ヘルスチェック |
|
SSE | ネットワーク経由のClaude Desktop / Flowise(プッシュ更新あり) |
|
STDIO | ローカルCLIツール (npx, Claude Code CLI, Flowise管理プロセス) |
|
HTTPトランスポート
MCP_TRANSPORT=http \
MCP_HOST=0.0.0.0 \
MCP_PORT=8765 \
MCP_HTTP_PATH=/mcp \
node dist/plantuml-mcp-server.jsPOST /mcpで初期化し、JSON-RPCペイロードを送信します。GET /mcpおよびDELETE /mcpでストリーム可能なセッションを維持します。GET /healthzはレディネスプローブ(準備状況確認)に使用できます。クライアント設定サンプル:
client_config_http.json。
SSEトランスポート
MCP_TRANSPORT=sse \
MCP_HOST=0.0.0.0 \
MCP_PORT=8765 \
MCP_SSE_PATH=/sse \
MCP_SSE_MESSAGES_PATH=/messages \
node dist/plantuml-mcp-server.jsクライアントは
/sse(GET) に接続してイベントを受信し、/messagesにJSONメッセージをPOSTします。Claude Desktop / Flowise用の設定サンプル:
client_config_sse.json。
STDIOトランスポート
MCP_TRANSPORT=stdio npx plantuml-mcp-server
# or run the compiled file directly
MCP_TRANSPORT=stdio node dist/plantuml-mcp-server.jsローカルでの実験、
mcpCLI、またはバイナリを生成するFlowiseノードに最適です。設定例は
client_config_stdio.jsonにあります。
クライアント設定サンプル
client_config_http.json– ストリーム可能なHTTP (デフォルト/mcp)client_config_sse.json– SSE + 専用のmessagesUrlclient_config_stdio.json–npxおよびFlowise管理プロセス用のSTDIO例
これらのファイルをMCP対応クライアントに配置するか、必要に応じてスニペットをコピーしてください。ホスト名、ポート、APIキーをデプロイ環境に合わせて更新してください。
環境変数
変数 | デフォルト | 用途 |
|
|
|
|
| アップストリームのPlantUMLレンダラー |
|
|
|
|
| バインドアドレス + ポート (HTTP/SSE) |
|
| HTTP JSON-RPCエンドポイント |
|
| trueの場合、JSONボディを返す (デバッグ用) |
|
| SSEストリームエンドポイント |
|
| メッセージ取り込みエンドポイント |
| 未設定 | 設定時にBearer認証を有効化 |
| 未設定 |
|
| 未設定 |
|
| 未設定 | サービスアクセストークン取得用のAuthelia OIDCディスカバリーURL |
| 未設定 | オプションの直接トークンエンドポイント上書き (内部サービス間通信に有用) |
| 未設定 |
|
| 未設定 |
|
|
| クライアント認証トークンリクエスト時に要求されるスコープ |
|
| クライアント認証トークンリクエスト時に要求されるオーディエンス |
| 未設定 | 内部Authelia呼び出し用のオプションの |
| 未設定 | 内部Authelia呼び出し用のオプションの |
|
|
|
|
| 共有ボリュームエクスポート使用時に返されるフォールバックベースURL |
| 未設定 |
|
OB_FILE_API_BASE_URL が設定されている場合、レンダリングされた図は ob-file を介してアップロードされ、MCPレスポンスは ob-file によって生成された署名付き download_url を返します。OB_FILE_OIDC_DISCOVERY_URL、OB_FILE_OIDC_CLIENT_ID、および OB_FILE_OIDC_CLIENT_SECRET が設定されている場合、サーバーはOAuth 2.0クライアント認証を介して自動的にアクセストークンを取得およびキャッシュします。共有ボリュームパスは、ローカル/開発環境用の互換性フォールバックとして残ります。
ツール、プロンプト、リソース
ツールは
tools/listを通じて自動的に登録されます。これらは検証、オプションの自動修正を実行し、構造化されたメタデータ(success、URL、マークダウンスニペット、エンコードされた図データ、検証エラー)を返します。プロンプトは、PlantUMLのエラーハンドリングを通じてモデルをガイドし、すぐに使えるケイパビリティランドスケープのテンプレートを提供します。
リソーステンプレートは、オンボーディングコンテンツ (
resource://plantuml/server-guide) を公開し、クライアントが使用方法を自己発見できるようにします。
Dockerイメージ
提供されている Dockerfile はTypeScriptソースをビルドし、最小限のランタイムイメージを生成します:
docker build -t plantuml-mcp-server .
docker run --rm -e MCP_TRANSPORT=http -p 8765:8765 plantuml-mcp-server必要に応じて環境変数 (PLANTUML_SERVER_URL, MCP_API_KEY など) を上書きしてください。
テストとツール
npm run build– TypeScriptのコンパイルnpm start– デフォルトのHTTPトランスポートを使用して実行npm run start:sse/npm run start:stdio– 便利な起動スクリプトnpm run test:business-scenario–test_files/generate_sequence_diagram/payload.jsonをPlantUMLに変換し、expected.pumlと比較するスナップショットテストmake test-mcp–mcpCLIを通じたスモークテストコマンド
ヘルプが必要ですか?
curl http://<host>:<port>/healthzで接続を確認してください有効な場合は、認証ヘッダーが
MCP_API_KEY(Bearerトークン) と一致していることを確認してくださいMCP InspectorまたはFlowiseノードのログを使用して、JSON-RPCペイロードをトレースしてください
このサーバーには、HTTP、SSE、およびSTDIO経由で動作するために必要なすべてが含まれています。環境に一致するトランスポートを接続して、図の生成を開始しましょう!
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Render, validate, encode/decode PlantUML diagram-as-code; 22 diagram types. Free, no auth.
Render, verify, describe, and safely edit Mermaid diagrams through MCP.
Generate org charts, MCD/ERD data models, and C4 architecture diagrams — pilot OrgGen AI via MCP.
Generate cloud architecture diagrams, flowcharts, and sequence diagrams.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA tool that generates various UML diagrams through natural language descriptions or PlantUML code, functioning as an MCP server that can integrate with clients like Claude.28
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to generate UML diagrams from text descriptions using PlantUML, supporting multiple output formats (PNG, SVG, PDF), syntax validation, and diagram source extraction.18MIT
- AlicenseNot gradedqualityCmaintenanceEnables generation of PlantUML ArchiMate enterprise architecture diagrams with full ArchiMate 3.2 specification support across all 7 layers, including automatic validation, multi-format export (PNG/SVG/XML), and instant diagram viewing through a built-in HTTP server.31MIT
- AlicenseAqualityFmaintenanceMCP server for AI Diagram Maker — generate software engineering diagrams from natural language, code, ASCII diagram, images, or Mermaid. Inline diagram rendering using MCP apps UI and diagram URL in responses. Works with Cursor, Claude Desktop, Claude Code, and any MCP-compatible AI.5568MIT
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/sysam68/plantuml-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server