Home / Servers / Data Formats / json_query
Json query
An MCP tool from the Data Formats server, hosted on mcp.hjlabs.in.
Pick values out of JSON with a JSONPath expression. Supported: $.a.b, $.a[0], $.a[-1], $.a[*], $.a[1:3], $..name (recursive), $.items[?(@.price > 10)] (filters with == != > < >= <= contains =~), $["key with spaces"], $.a["b","c"]. Returns every match.
Name on the gateway: data__json_query · read-only.
Parameters
| Name | Type | Description |
|---|---|---|
json required | string | JSON text or an object. |
path required | string | The JSONPath, e.g. "$.store.books[?(@.price < 10)].title". |
first | boolean | Return only the first match instead of an array. Default false. |
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:
{
"name": "data__json_query",
"arguments": {
"json": "…",
"path": "…"
}
}Or connect the Data Formats server directly, which lists 26 tools including this one:
claude mcp add --transport http hj-data https://mcp.hjlabs.in/mcp/data \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the json query tool with json set to ….