Singapore government data for AI agents: ACRA, HDB, COE, URA, SingStat, MAS, IRAS. 87 tools.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A Singapore government data MCP server. 87 tools β 24 curated datasets + 7 SingStat tables + 6 live real-time feeds, CLI mode, data visualization, cross-dataset queries, natural language queries. Covering ACRA + HDB + URA + COE + CPI + GDP + employment + IRAS + MAS FX + MOE + ECDA + tourism + retail + population + crime + health + energy + hawkers + air quality + weather + carparks + live dengue. No API keys. Runs anywhere MCP runs. Full write-up: https://altronis.sg/blog/sgdata-mcp
@altronis/sgdata-mcp is an MCP server that
lets Claude, Cursor, Continue, or any other MCP-compatible client query
Singapore government open data directly from data.gov.sg β corporate registry,
real estate, labour, prices, public services, capital flows, crime, health,
demographics, energy, and more.
It runs as a local stdio process on your machine. No hosted backend, no API
keys. Small curated datasets cache locally at ~/.sgdata-mcp/sgdata.sqlite;
large datasets (ACRA, HDB resale) and real-time feeds query data.gov.sg
server-side so they never download a whole dataset onto your disk.
v0.5.0: 13 new tools + a smaller footprint. Real-time feeds β sg_psi
(air quality), sg_weather_forecast, sg_air_temperature, sg_rainfall,
sg_carpark_availability, and sg_dengue_clusters (live NEA clusters β current
dengue, vs the frozen weekly-bulletin feed). SingStat tables β
sg_household_income, sg_wages, sg_deaths, sg_marriages, sg_divorces,
sg_trade, sg_labour_force. sg_search_datasets now actually searches
(data.gov.sg's q param is a no-op upstream, so it filters a cached catalog
locally). ACRA + HDB-resale tools query server-side (datastore_search)
instead of ingesting the full 56 MB / 23 MB datasets β no more multi-GB local
cache. FX tools fixed (upstream metadata endpoint 404s; they now read live data
via datastore_search).
β οΈ
sg_acra_formations_by_ssicis a heavy tool. ACRA's SSIC+year filter can't be pushed server-side, so it crawls 27 shards with rate-limit backoff β expect ~1β3 minutes, and for older years the count is a lower bound (bounded: true). For fast formation counts by SSIC use the SingStatsg_formations_history/sg_formations_compare/sg_formations_monthlytools instead.
v0.4.1: sg_dataset_query no longer hangs on very large datasets
(size-gated server-side paging via datastore_search + a 60s ingest guard);
sg_fx_rate / sg_fx_history now accept ISO currency codes (USD, GBP,
JPY, EUR, β¦); sg_tourism_latest now emits data_freshness (its upstream
stops at 2014); and the _history tools return an available label list on a
no-match so callers can self-correct.
v0.4.0 highlights: data_freshness metadata block emitted on every
_latest tool β last_period, last_record_date, age_days, and a
categorical level of fresh / ok / stale / frozen so agents can
detect when an upstream data.gov.sg feed has gone silent. Fixes silent
stale-data on sg_disease_latest (MOH stopped publishing the Weekly
Infectious Disease Bulletin via data.gov.sg around epi week 2022-W52).
v0.3.2: Monthly business formations + cessations + net growth tools via SingStat Table Builder. Track month-by-month company creation vs closure for any SSIC industry. 74 tools total.
v0.3.1: Annual formation counts by industry via SingStat Table Builder.
v0.3.0: 8 new datasets, CLI mode, ASCII sparkline visualization, cross-dataset correlation queries, natural language query routing.
@altronis/sgdata-mcp is only as fresh as data.gov.sg. Some datasets are
updated weekly (COE bidding, CPI), some monthly (unemployment, CPI sub-items),
some quarterly (URA private property), and some have effectively stopped
updating. Starting in v0.4.0 every _latest tool returns a data_freshness
block so you can detect drift programmatically:
Known frozen datasets (as of v0.4.1):
| Tool | Upstream dataset | Last update | Recommended action |
|---|---|---|---|
sg_disease_latest, sg_disease_trend, sg_disease_list | MOH Weekly Infectious Disease Bulletin | 2022-W52 | Cross-check moh.gov.sg weekly bulletin PDFs. PRs welcome to swap in a live source. |
sg_tourism_latest, sg_tourism_history | STB Annual Tourism Receipts | 2014 | Cross-check stb.gov.sg / SingStat for newer receipts. PRs welcome. |
If you find another upstream feed has gone silent, please open an issue β we'll add it to this table and surface the warning in the tool description.
Drop this server into Claude Desktop and you immediately unlock questions like:
Your model picks the right tool, fills in the filters, and returns structured rows. You never write a URL.
Edit ~/Library/Application Support/Claude/claude_desktop_config.json
(macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Restart Claude Desktop. The 74 sg_* tools appear in the MCP tools menu.
Add to ~/.cursor/mcp.json:
Query Singapore data directly from the terminal β no MCP client needed:
| # | Dataset | Agency | Tools |
|---|---|---|---|
| 1 | ACRA Corporate Entities (~2M+) | ACRA | 3 |
| 2 | HDB Resale Flat Prices (2017+) | HDB | 2 |
| 3 | COE Bidding Results | LTA | 3 |
| 4 | MOE Schools | MOE | 3 |
| 5 | HDB Carpark Information | HDB | 3 |
| 6 | GDP YoY Growth (quarterly) | SingStat | 3 |
| 7 | Consumer Price Index (monthly) | SingStat | 3 |
| 8 | MOM Median Gross Monthly Income | MOM | 2 |
| 9 | Employment by Sector (annual) | SingStat | 3 |
| 10 | URA Private Residential Transactions | URA | 3 |
| 11 | International Visitor Arrivals | STB | 3 |
| 12 | Retail Sales Index (monthly) | SingStat | 3 |
| 13 | MAS Exchange Rates (monthly avg) | MAS | 3 |
| 14 | IRAS Tax Collection (annual) | IRAS | 3 |
| 15 | ECDA Childcare & Kindergarten Centres | ECDA | 3 |
| 16 | Unemployment Rate (quarterly) | MOM | 2 |
| 17 | Population Indicators (annual) | SingStat | 2 |
| 18 | Infectious Disease Cases (weekly) | MOH | 3 |
| 19 | Electricity Generation (monthly) | EMA | 2 |
| 20 | Live-Births by Sex/Ethnicity (monthly) | SingStat | 2 |
| 21 | Crime Cases Recorded (annual) | SPF | 3 |
| 22 | Tourism Receipts (annual) | STB | 2 |
| 23 | Government Hawker Centres | NEA | 2 |
| 24 | Business Entity Formations & Cessations | ACRA/DOS | 6 |
Plus 3 generic fallback tools, 1 visualization tool, 2 cross-dataset tools, and 1 natural language query tool. Total: 74 tools.
sg_visualizeGenerate ASCII sparkline charts and summary statistics from any time series. Returns sparklines, min/max/mean/latest, period-over-period change, and chart-ready JSON for frontend rendering.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/sgdata-mcp)<a href="https://allmcps.com/mcp/sgdata-mcp"><img src="https://allmcps.com/api/badge/sgdata-mcp?style=directory" alt="Sgdata MCP on AllMCPs" /></a>