Feedback

PlantUML-MCP-Server

@mzagar Claim

Basic information

Runtime
JavaScript
Category
License
MIT
Transports
stdio
Author
mzagar
Submitted by
Community
Quality
25
Stars
2

About PlantUML-MCP-Server

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

PlantUML-MCP-Server is a MCP server in the Other category listed in the AddMCP.net directory, published by mzagar. It exposes 3 tools, including generate_plantuml_diagram, encode_plantuml, decode_plantuml. Supported transport: stdio. Runtime: JavaScript. License: MIT. The repository has 2 GitHub stars. Source code is hosted on github.com. Related topics: diagram, diagrams, plantuml, puml, uml.

Setup

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

PlantUML-MCP-Server config

Add this server to your MCP-compatible client using the configuration below.

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

PlantUML-MCP-Server tools

  • generate_plantuml_diagram — Generate a PlantUML diagram with automatic syntax validation and error reporting for auto-fix workflows. Returns embeddable image URLs for valid diagrams or structured error details for invalid syntax that can be automatically corrected. Optionally saves the diagram to a local file.
    plantuml_code:string*, format:string, output_path:string
  • encode_plantuml — Encode PlantUML code for URL usage
    plantuml_code:string*
  • decode_plantuml — Decode encoded PlantUML string back to PlantUML code
    encoded_string:string*

Overview

What is PlantUML-MCP-Server?

A Model Context Protocol (MCP) server that integrates PlantUML diagram generation into Claude Desktop and Claude Code. It provides tools to generate, encode, and decode PlantUML diagrams, producing embeddable SVG/PNG URLs.

How to use PlantUML-MCP-Server?

Add the server to Claude Desktop or Claude Code using npx plantuml-mcp-server and optionally set the PLANTUML_SERVER_URL environment variable (defaults to public PlantUML server). After activation, ask Claude to generate any PlantUML diagram type (sequence, class, C4, etc.) using the generate_plantuml_diagram tool.

Key features of PlantUML-MCP-Server

  • Three tools: generate, encode, and decode PlantUML diagrams.
  • Produces embeddable SVG/PNG URLs for diagrams.
  • Supports advanced PlantUML features like !include and external libraries.
  • Configurable PlantUML server URL via environment variable.
  • Works with both Claude Desktop and Claude Code.

Use cases of PlantUML-MCP-Server

  • Quickly create sequence diagrams to document workflows within Claude.
  • Generate C4 architecture diagrams for software projects.
  • Encode or decode PlantUML code for sharing via URLs.
  • Embed diagrams in Claude responses without leaving the chat.

Frequently asked questions

1 What tools does PlantUML-MCP-Server provide?

It provides three tools: generate_plantuml_diagram to create diagrams with SVG/PNG URLs, encode_plantuml to convert PlantUML code into an encoded string, and decode_plantuml to reverse the encoding.

2 How do I configure a custom PlantUML server?

Set the PLANTUML_SERVER_URL environment variable to your server’s URL when adding the MCP server to Claude Desktop or Claude Code (default is https://www.plantuml.com/plantuml).

3 What are the runtime requirements?

Node.js 18+ and npm are required for local installation. The server runs via npx without local installation for normal use.

4 Does this server store any data or require authentication?

No. The server only interacts with the configured PlantUML server to generate/encode/decode diagrams; no authentication or persistent storage is mentioned.

5 What transport protocol does the server use?

It uses the standard Model Context Protocol (MCP) for communication with Claude clients; no custom transports are specified.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬