Singstat Sg

v0.2.1
io.github.pipeworx-io/singstat-sg Checked 1 day ago Published 27 days ago

SingStat Table Builder MCP — Department of Statistics Singapore.

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

search_tables

Search Singapore official statistics tables (Department of Statistics Singapore) by keyword. Returns resource ids and titles. The `id` of a result (e.g. "M810001") is the resourceId used by table_data and table_metadata.

ParameterTypeDescription
keyword *stringSearch term, e.g. "population", "gdp", "cpi".
searchOptionstringWhere to match the keyword. "all" (default) searches everything, "title" only table titles, "variable" only variable names.

table_data

Fetch the time-series data rows for a Singapore statistics table. Pass `resourceId` ONLY if you already have a real one from a prior search_tables/table_metadata call. Otherwise pass `search` with the topic in plain words (e.g. "resident unemployment rate", "gdp by industry") and this tool resolves the best-matching table itself — the response carries a `resolved` field naming exactly which table id and title were used, so NEVER guess or reuse an id you saw in an example; it is almost certainly for a different table. Data is returned under `Data` with a `row` array of series, each containing…

ParameterTypeDescription
betweenstringInclusive period range "from,to", e.g. "2010,2020".
limitintegerMax number of rows to return.
offsetintegerNumber of rows to skip (pagination).
resourceIdstringA table id you already have (from search_tables or table_metadata). Omit this and use `search` instead when you only know the topic, not a real id — do not invent or copy one from an unrelated examp…
searchstringFree-text topic to resolve a resourceId automatically when you do not already have one, e.g. "resident unemployment rate". Ignored if `resourceId` is given. Equivalent to calling search_tables yoursel…
seriesNoORrowNostringComma-separated series/row numbers to limit which series are returned.
sortBystringSort expression, e.g. "rowtext asc".
timeFilterstringComma-separated specific periods to return, e.g. "2020,2021,2022".

table_metadata

Get the structure/metadata for a Singapore statistics table by resourceId (get ids from search_tables): theme, subject, frequency, period coverage and the list of variables/series. Result is under `Data.records`.

ParameterTypeDescription
resourceId *stringTable id from search_tables, e.g. "M810001".