Singstat Sg
v0.2.1SingStat 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.
| Parameter | Type | Description |
|---|---|---|
keyword * | string | Search term, e.g. "population", "gdp", "cpi". |
searchOption | string | Where 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…
| Parameter | Type | Description |
|---|---|---|
between | string | Inclusive period range "from,to", e.g. "2010,2020". |
limit | integer | Max number of rows to return. |
offset | integer | Number of rows to skip (pagination). |
resourceId | string | A 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… |
search | string | Free-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… |
seriesNoORrowNo | string | Comma-separated series/row numbers to limit which series are returned. |
sortBy | string | Sort expression, e.g. "rowtext asc". |
timeFilter | string | Comma-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`.
| Parameter | Type | Description |
|---|---|---|
resourceId * | string | Table id from search_tables, e.g. "M810001". |