
infobip/plantuml-mcp-server
Data science & ML이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
infobip/plantuml-mcp-server는 MCP 서버 후보가 https://github.com/infobip/plantuml-mcp-server.에서 수입되었습니다
개요
infobip/plantuml-mcp-server는 MCP 서버 후보가 https://github.com/infobip/plantuml-mcp-server.에서 수입되었습니다
개요(AI 번역)
Claude Desktop 및 Claude Code의 PlantUML 다이어그램 생성 기능을 제공하는 Model Context Protocol (MCP) 서버.
사용 가능한 도구
generate_plantuml_diagram- 생성 다이어그램을 생성하고 로컬로 저장하는 SVG/PNG(SVG/PNG)를 사용할 수 있습니다.encode_plantuml- URL 공유를 위한 Encode PlantUML 코드decode_plantuml- 인코딩된 문자열에서 PlantUML
사용 가능한 Prompts
1.plantuml_error_handling - PlantUML 구문 오류 처리 및 자동 고정 워크플로우 구현 가이드라인
이 프롬프트는 Claude 인스턴스를 제공합니다.
- native Server validation을 사용하여 PlantUML 구문 오류 검출
- 일반적인 구문 문제에 대한 지능형 자동 고정 워크플로우 구현
- Parse 구조 오류 응답 및 적절한 교정 적용
- retry logic과 함께 우아한 핸들 검증 실패
프롬프트는 Claude를 사용하여 누락된 태그와 같은 일반적인 PlantUML 오류, 잘못된 화살표 구문, 키워드의 태스, 누락된 따옴표, 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
generate_plantuml_diagram- Generate diagrams and get embeddable URLs (SVG/PNG), optionally save locallyencode_plantuml- Encode PlantUML code for URL sharingdecode_plantuml- Decode PlantUML from encoded strings
Available Prompts
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
!includedirectives 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
설치
npx plantuml-mcp-server설정
{
"mcpServers": {
"plantuml": {
"command": "npx",
"args": ["plantuml-mcp-server"],
"env": {
"PLANTUML_SERVER_URL": "https://www.plantuml.com/plantuml"
}
}
}
}