Hagstova Fo

v0.2.1
io.github.pipeworx-io/hagstova-fo Checked 2 hours ago Published 29 days ago

Statistics Faroe Islands (Hagstova Føroya) PxWeb MCP.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

subjects

Browse the Statistics Faroe Islands (Hagstova Føroya) PxWeb subject tree. Empty path returns the database list; drill into 'H2' for folders (type 'l') and tables (type 't', id ends '.px'). Use the returned path to call table_meta or query_table.

ParameterTypeDescription
pathstringSub-path under the API base (default empty = database list). e.g. "H2" or "H2/IB/IB01".

table_meta

Fetch dimension definitions and valid coded values for a Hagstova Føroya PxWeb table. Path must be the full table path ending in '.px' (e.g. 'H2/UO/UO01/land_oyfj.px'). Returns dimensions with their codes and value lists — required input for building a query_table body.

ParameterTypeDescription
path *stringe.g. "H2/UO/UO01/land_oyfj.px"

query_table

POST a PxWeb query to a Hagstova Føroya table and return observations as json-stat2. body must be {query:[{code, selection:{filter,values}}], response:{format:'json-stat2'}}. PxWeb rejects requests exceeding its cell limit — narrow each dimension's selection.values using codes from table_meta.

ParameterTypeDescription
body *object{query: [{code, selection: {filter, values}}], response: {format: "json-stat2"}}
path *stringe.g. "H2/UO/UO01/land_oyfj.px"