xml-mcp

v1.0.1
io.github.mrfentmen/xml-mcp Checked 1 day ago Published 1 month ago

Parse, 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.

ParameterTypeDescription
text *stringXML text

xml_to_json

Convert a single-root XML document to JSON: attributes become @name, text becomes #text, repeated tags become arrays.

ParameterTypeDescription
text *stringXML text with one root element

validate_xml

Check XML for well-formedness problems: mismatched or unclosed tags, bad entities, stray text, multiple roots.

ParameterTypeDescription
text *stringXML text