Home / MCP Tools / XML <-> JSON Converter
Live MCP tooldeveloper

XML <-> JSON Converter

Convert XML to a canonical JSON tag/attrib/text/children object, or that shape back to XML. Rejects DOCTYPE/ENTITY declarations (XXE guard).

A free key adds 10,000 calls a month, no card: /pricing, which also says whether the calculators are free or priced right now.

Parameters

ParameterTypeRequiredDescription
directionstringrequiredxml_to_json | json_to_xml One of: xml_to_json, json_to_xml
xmlstringoptionalXML text (direction=xml_to_json)
dataobjectoptional{tag, attrib, text, children} object (direction=json_to_xml)

Call it over MCP (JSON-RPC 2.0)

curl -s https://agent.wingmanprotocol.com/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "xml_json_convert", "arguments": {"direction": "xml_to_json"}}}'

Or plain HTTP

curl -s https://wingmanprotocol.com/tools/xml_json_convert \
  -H 'Content-Type: application/json' \
  -d '{"direction": "xml_to_json"}'

Try it live

Edit the JSON and run it — this POSTs to https://wingmanprotocol.com/tools/xml_json_convert from your browser.

Related tools in Developer