Home / Servers / Data Formats / yaml_to_json

Yaml to json

An MCP tool from the Data Formats server, hosted on mcp.hjlabs.in.

Parse YAML (YAML 1.2, including anchors, multi-document files and block scalars) into JSON. Errors say the line and column.

Name on the gateway: data__yaml_to_json · read-only.

Parameters

NameTypeDescription
yaml requiredstringThe YAML text.
all_documentsbooleanReturn every document in a multi-document file as an array. Default: the first.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "data__yaml_to_json",
  "arguments": {
    "yaml": "…"
  }
}

Or connect the Data Formats server directly, which lists 26 tools including this one:

Run in your terminal
claude mcp add --transport http hj-data https://mcp.hjlabs.in/mcp/data \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the yaml to json tool with yaml set to ….

More from Data Formats