Beautify or minify an XML document and return the formatted text. The input is checked for well-formedness first (balanced tags, quoted attributes, one root element); a malformed document returns an error that names the problem and its line. Beautify re-indents one element per line; minify removes whitespace between tags.
This page documents the MCP tool findutils:xml_formatter. See the REST reference →
Call it over MCP
Tool name findutils:xml_formatter
· no API keys · 120 requests/min per IP
Claude Code
claude mcp add findutils --transport http https://mcp.findutils.com/ Claude Desktop — claude_desktop_config.json
{
"mcpServers": {
"findutils": {
"url": "https://mcp.findutils.com/"
}
}
} Raw JSON-RPC (any MCP client) — verified example
curl -X POST https://mcp.findutils.com/ \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "xml_formatter",
"arguments": {
"xml": "<root><a>1</a><b/></root>"
}
}
}' Input schema
| Argument | Type | Required | Description |
|---|---|---|---|
| xml | string | yes | The XML source to format or minify. |
| mode | string (beautify | minify) | no | beautify = indent one element per line, minify = compact. Default: beautify. Default: "beautify". |
| indent | integer | no | Spaces per indentation level in beautify mode (1-8). Default: 2. Default: 2. |
Example arguments (verified)
{
"xml": "<root><a>1</a><b/></root>"
} Also a REST endpoint
The same tool answers plain HTTP at
POST /api/tools/xml-formatter/execute — no key, 60 requests/min.
More Validation tools
Email Validate
Validate an email address and break it into local / domain / TLD parts.
Html Formatter
Format (beautify) or minify HTML and return the result with a tag-balance validation report.
Json Validate
Validate a JSON string.
Openapi Validator
Validate an OpenAPI 3.x (or Swagger 2.0) document given as JSON or YAML and return a report with errors, warnings, and summary info (title,
Phone Format
Format a phone number to E.164 (+CCNNNNNNN…) given an optional country calling code.
State Machine Designer
Validate a finite state machine given as nodes and edges and return a normalized machine config plus issues.
Url Validate
Validate that a string is a well-formed URL and (optionally) require HTTPS.
Wvw Apps Json Generator
Build and validate an apps.json manifest for wvw.dev (World Vibe Web) from a store object and a list of apps.