xml-mcp
v1.0.1Parse, validate and convert XML offline with a real parser: entities, CDATA, attributes
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
parse_xml
Parse XML and show the element tree with attributes and text, failing with line numbers when it is not well-formed.
| Parameter | Type | Description |
|---|---|---|
text * | string | XML text |
xml_to_json
Convert a single-root XML document to JSON: attributes become @name, text becomes #text, repeated tags become arrays.
| Parameter | Type | Description |
|---|---|---|
text * | string | XML text with one root element |
validate_xml
Check XML for well-formedness problems: mismatched or unclosed tags, bad entities, stray text, multiple roots.
| Parameter | Type | Description |
|---|---|---|
text * | string | XML text |