decode_plantuml
Decode encoded PlantUML string back to PlantUML code
Turn PlantUML source into an embeddable image URL, with invalid syntax coming back as structured error detail an agent can correct and re-render.
LABSCO SUMMARY
The auto-fix loop is the reason to pick this over a plain render endpoint: generate_plantuml_diagram reports structured syntax errors, so the agent corrects the source and re-renders without a human reading a rendering log. Rendering happens on whatever PLANTUML_SERVER_URL points at, which decides both where the diagram is drawn and where the returned image URL resolves — worth knowing before diagrams of internal architecture go through a public instance.
A PlantUML rendering front end, 3 tools: one that validates and renders, and two that convert between PlantUML source and the encoded string a PlantUML URL carries.
PLANTUML_SERVER_URL pointing at the PlantUML server that does the rendering, and a writable output_path if the diagram should also be saved locally. MIT licensed.
One command — npx plantuml-mcp-server
USE CASES
Send the source and take back an embeddable image URL, or write the file to a path in the format the document needs. Invalid syntax comes back as structured errors, so the next attempt is a correction rather than a guess.
Decode the encoded string out of the existing URL to recover the source, change it, then encode the result back or render it directly.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
decode_plantumlDecode encoded PlantUML string back to PlantUML code
encode_plantumlEncode PlantUML code for URL usage
generate_plantuml_diagramGenerate 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.
BEFORE YOU INSTALL
3 tools when we connected.
CONTEXT COST
Rated by the size of the 3 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"plantuml": {
"command": "npx",
"args": [
"plantuml-mcp-server"
],
"env": {
"PLANTUML_SERVER_URL": "https://www.plantuml.com/plantuml"
}
}
}
}npx plantuml-mcp-server