Censtatd Hk

v0.2.1
io.github.pipeworx-io/censtatd-hk Checked 1 day ago Published 1 month ago

Hong Kong Census and Statistics Department (C&SD) open-data MCP.

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

hongkong_unemployment_rate

Hong Kong's headline labour-market figures in ONE call — unemployment rate (seasonally adjusted and unadjusted), underemployment rate, and labour-force participation rate, latest first. PREFER for "what is Hong Kong's unemployment rate", "HK jobless rate", "Hong Kong labour force participation", "is unemployment rising in Hong Kong". Source is the Census & Statistics Department (table 210-06101), keyless. Figures are 3-MONTH MOVING AVERAGES, which is how Hong Kong publishes them — a period of "2026-06" means April–June 2026, not the month of June. Use censtatd_get_table for anything deep…

ParameterTypeDescription
monthsnumberHow many recent periods to return in the series (1-120, default 12). The headline fields always describe the newest.

censtatd_get_table

Fetch a Hong Kong Census & Statistics Department statistical table as structured JSON (time series of {period, sv (measure), svDesc, figure} plus any dimension code/Desc columns). By default returns the FULL series (full_series=1) — reliable and keyless, no encoded param needed. Use this for HK GDP, employment earnings, trade, prices, money/financial-market stats, etc. Table ids look like '310-31001' (GDP) or '340-46001' (exchange rates); find ids with censtatd_search_tables. Optionally pass `param` — the opaque lz-string blob copied from the table's API Example box on censtatd.gov.hk —…

ParameterTypeDescription
id *stringTable id, e.g. '310-31001' (GDP), '340-46001' (exchange rates).
langstringDescription language: en, tc (traditional), sc (simplified). Default en.
paramstringOPTIONAL opaque lz-string param copied from the C&SD web_table "API Example" box. When provided, full_series is disabled and only the encoded selection is returned. Cannot be hand-constructed; omit it…

censtatd_table_info

Get metadata for a Hong Kong C&SD statistical table without pulling the data: title, footnotes (tablenote), and source/contact. Use to confirm a table id and read measurement caveats before calling censtatd_get_table. Returns title, notes and source for the given id.

ParameterTypeDescription
id *stringTable id, e.g. '310-31001'.
langstringLanguage. Default en.

censtatd_search_tables

Search the Hong Kong C&SD table catalogue by keyword (e.g. 'exchange rates', 'unemployment', 'merchandise trade') and get back matching table ids + titles to use with censtatd_get_table. Backed by the data.gov.hk open-data index of C&SD tablechart datasets. Note: not every C&SD table is indexed there; ids can also be read off the table URL on data.censtatd.gov.hk (the '310-31001' part of web_table.html?id=310-31001).

ParameterTypeDescription
query *stringKeywords, e.g. 'exchange rates' or 'employment earnings'.
limitnumberMax results (default 20, max 50).