query_table

Pack: asub-ax · Endpoint: https://gateway.pipeworx.io/asub-ax/mcp

POST a PxWeb selection query to an ÅSUB table and return the data as json-stat2. Path must end in “.px”; body is a PxWeb query object with a “query” array of {code, selection: {filter, values}} entries plus {response: {format: “json-stat2”}}. Narrow each dimension’s values to stay under PxWeb’s per-response cell limit.

Parameters

NameTypeRequiredDescription
pathstringyese.g. “Statistik/BE/Befolkningsrörelsen/BE006.px”
bodyobjectyes{query: [{code, selection: {filter, values}}], response: {format: “json-stat2”}}
selectionunknownno
responseunknownno

Example call

curl -X POST https://gateway.pipeworx.io/asub-ax/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"query_table","arguments":{}}}'

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "asub-ax": {
      "url": "https://gateway.pipeworx.io/asub-ax/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 17, 2026