>_

yq

agent-ready json output non-interactive

yq is a portable command-line YAML, JSON, XML, CSV, TOML, HCL and properties processor

How to install yq

brew install yq

yq use case

Process and transform YAML, JSON, XML, CSV, TOML, HCL, and properties files using a jq-like syntax for querying, editing, and merging configuration data.

When to use yq

  • Read and extract values from YAML configuration files
  • Update or edit YAML/JSON files in place for DevOps automation
  • Convert between YAML, JSON, CSV, XML, TOML, HCL, and properties formats

When not to use yq

  • When complex jq operations are needed that are not yet supported by yq
  • When handling very large or deeply nested CSV files requiring advanced spreadsheet-like transformations

yq features

  • · Read, write, and update YAML, JSON, XML, CSV, TOML, HCL, and properties files
  • · jq-like query syntax with support for pipes and filters
  • · In-place editing with -i flag and environment variable interpolation
  • · Merge multiple files and handle complex data transformations

Want your agent to find this automatically?

Add the MCP server to your agent config and it will discover tools like yq on its own.

Set up MCP →

Similar tools to yq