Price Per TokenPrice Per Token
PlantUML Diagrams

PlantUML Diagrams

by infobip

GitHub 22 1,394 uses Remote
0

About

PlantUML Diagrams is a diagram generation service that creates PlantUML diagrams with automatic syntax validation and auto-fix suggestions. Key features of PlantUML Diagrams: - Generate embeddable SVG/PNG image URLs for valid diagrams - Provide structured feedback to resolve syntax issues - Encode or decode PlantUML code for easy URL sharing - Save diagrams locally with secure path restrictions - Support for sequence diagrams, class diagrams, architecture diagrams, and C4 diagrams - Advanced features like `!include` directives and external libraries - Works with any PlantUML server (default: plantuml.com/plantuml)

README

PlantUML MCP Server

[](https://smithery.ai/server/@infobip/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

    C4 diagram for plantuml-mcp-server

    > add c4 diagram for this project in readme 'C4 diagram for plantuml-mcp-server' section
    

    Sequence diagram for plantuml-mcp-server

    > add sequence diagram in readme in architecture section
    

    ![PlantUML MCP Server Architecture](https://www.plantuml.com/plantuml/png/XLHDZzem4BtxLups50wKGwiU8b4j0aehmIhYwuI4J3m4guwTscDMjEf_hnoJyB5BUujddcVUUpFnioDkoPUAaII5a2ckQJMRmcoOmGBj4IrqOM3pWoJCoLk4hygyCiPpCXQULWxj4t07uODLt9BCPSKrmTDGSIyGHkX-aAbgK0pTmjxfM6Ddm-nzu8VSb3MY2J3MxpTSlsj9aYlvYvCq6lfzTgRH_H8gfh08UgzwRNJYI4W3PBbsbR7KOI7RuDk226ICSkb6Tw50ZPOJRgj0mPTgAoGlB2z34dLkn2KLGW9lGZNXKRm1arWhi0tE1ih1oq0WKazXZZyzEheCvzpjNjj3MaaR23nk1KQwJUca1coqTr8Na7j7femGgOlcNWDEuTjocS5alDpeNjEYvuv5xtUiAlwmbdCxWFMauG-24s-ANiIIjngmtA4GVASGLlFfbT9WJWeZwIh5JwqJmT7ncUP37sl0rOw7qxs7TzFxbtE3gbAdIxN6fVIo19y_9PrmubM5MdpSdGXTZ9ppEqb9vv43qK9mP8Ftzmui3kQrnLXqNb7SA_

    Related MCP Servers

    AI Research Assistant

    AI Research Assistant

    hamid-vakilzadeh

    AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar

    Web & Search
    12 8
    Linkup

    Linkup

    LinkupPlatform

    Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages

    Web & Search
    2 24
    Math-MCP

    Math-MCP

    EthanHenrickson

    Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support

    Developer Tools
    22 81