Makstat Mk
v0.2.1MakStat — State Statistical Office of North Macedonia, PxWeb MCP.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
subjects
Browse the North Macedonia State Statistical Office (MakStat) PxWeb subject tree under the /MakStat database. Empty path returns top-level folders (type 'l'); drill with sub-paths to reach tables (type 't', '.px' suffix). Returns folder/table list for the given path.
| Parameter | Type | Description |
|---|---|---|
path | string | Sub-path under /MakStat/ (default empty = root, returns top-level folders). |
table_meta
Fetch dimension definitions and valid coded values for a MakStat PxWeb table. Path must end in the '.px' table id (e.g. 'Naselenie/VencaniRazvedeni/280_VitStat_Brak_voz_ml.px'). Returns dimensions with their codes and value lists — use these to build the selection body for query_table.
| Parameter | Type | Description |
|---|---|---|
path * | string | e.g. "Naselenie/VencaniRazvedeni/280_VitStat_Brak_voz_ml.px" |
query_table
POST a PxWeb query to a MakStat (North Macedonia statistics) table and return observations as json-stat2. body must be {query:[{code, selection:{filter,values}}], response:{format:'json-stat2'}}. PxWeb enforces a cell-count limit — narrow each dimension's values using codes from table_meta to avoid rejection.
| Parameter | Type | Description |
|---|---|---|
body * | object | {query: [{code, selection: {filter, values}}], response: {format: "json-stat2"}} |
path * | string | e.g. "Naselenie/VencaniRazvedeni/280_VitStat_Brak_voz_ml.px" |