SG Gov MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SG Gov MCP Server What's the weather forecast for the next 2 hours?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
πΈπ¬ SG Gov MCP Server
A unified MCP server that gives AI agents access to 30 tools covering Singapore government and public data β weather, transport, education, property, companies, and 2000+ datasets.
Works immediately with zero API keys. Transport and mapping tools unlock with free registration.
Quick Start
npm install
npm run buildUse with Kiro
Add to your agent config or .kiro/settings/mcp.json:
{
"mcpServers": {
"sg-gov": {
"command": "node",
"args": ["/path/to/sg-gov-mcp/dist/index.js"]
}
}
}Use with Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"sg-gov": {
"command": "node",
"args": ["/path/to/sg-gov-mcp/dist/index.js"],
"env": {
"SG_LTA_KEY": "your_key_here",
"SG_ONEMAP_EMAIL": "your_email",
"SG_ONEMAP_PASSWORD": "your_password"
}
}
}
}Related MCP server: GCC Docs MCP Server
Available Tools (30)
Tier 1 β No API Key Required β
Tool | Description |
| Check which API keys are configured |
| 2-hour, 24-hour, or 4-day weather forecast |
| PSI and PM2.5 readings by region |
| Current UV index |
| Active dengue cluster locations |
| Real-time rainfall across 76 stations |
| Find data.gov.sg datasets |
| Fetch rows from any dataset |
| HDB resale flat prices (1990-2025) |
| COE bidding results and premiums |
| School directory (subjects, CCAs, programmes) |
| Singapore public holidays |
| Hawker centre locations |
| NUS module search (via NUSMods) |
| NTU module search (via ModGod API) |
| Real-time taxi locations |
| ACRA company/business search by name |
| Combined area report (HDB prices, schools, weather, air quality) |
Tier 2 β Free API Key Required π
Tool | Requires | Description |
|
| Real-time bus arrival times |
|
| MRT/LRT service disruptions |
|
| Current road incidents |
|
| Live traffic camera feeds |
|
| Real-time carpark availability |
|
| EV charging point availability |
|
| PUB flood alerts |
|
| MRT station crowd density |
|
| Address β coordinates |
|
| Coordinates β address |
|
| Route planning (drive/walk/PT) |
|
| Find nearby amenities |
API Key Setup
All keys are free. Registration takes ~2 minutes each.
LTA DataMall (bus, train, traffic)
Go to https://datamall.lta.gov.sg/content/datamall/en/request-for-api.html
Fill in the form β you get the key via email instantly
Set
export SG_LTA_KEY=your_key
OneMap (geocoding, routing)
Go to https://www.onemap.gov.sg and register
Set
export SG_ONEMAP_EMAIL=your_emailSet
export SG_ONEMAP_PASSWORD=your_password
The server handles token refresh automatically.
Data Sources
Source | What It Provides |
2000+ government datasets + real-time APIs | |
Bus, train, traffic, carpark, taxi, EV charging | |
Geocoding, routing, demographics, nearby amenities | |
NUS modules and timetables | |
NTU modules, venues, graduation requirements |
Examples
Ask your AI agent:
"What's the weather forecast for the next 2 hours?"
"When's the next bus at stop 83139?"
"Show me HDB resale prices in Tampines for 4-room flats"
"Find NUS computer science modules about machine learning"
"Are there any MRT service disruptions right now?"
"What hawker centres are near Bishan?"
"Plan a driving route from Changi Airport to NUS"
Development
npm run dev # Watch mode
npm run build # Compile TypeScript
npm start # Run the serverArchitecture
stdio (JSON-RPC) ββ MCP Server ββ API Clients ββ External APIs
βββ data.gov.sg (no key)
βββ NUSMods (no key)
βββ NTU ModGod (no key)
βββ LTA DataMall (key)
βββ OneMap (key)License
MIT
Available Tools
34 toolssg_air_qualityA
Get Singapore air quality β PM2.5 and PSI readings by region with health advisory band (Good/Moderate/Unhealthy).
Inputs: no named parameters.
sg_bus_arrivalA
Get real-time bus arrival times at a bus stop (shows next 3 buses per service). Requires SG_LTA_KEY. Common stops: 83139 (Opp Blk 1 Hougang), 46009 (Orchard Blvd).
Inputs: bus_stop_code (required), service_no.
sg_carparkA
Get real-time carpark availability (HDB, LTA, URA). Requires SG_LTA_KEY.
Inputs: location.
sg_coe_pricesA
Get COE (Certificate of Entitlement) bidding results and prices. Shows quota premiums by vehicle category.
Inputs: limit.
sg_company_searchA
Search ACRA-registered companies in Singapore by name. Returns UEN, status, entity type, and address.
Inputs: query (required).
sg_dataset_fetchB
Fetch rows from a data.gov.sg dataset by resource ID. Supports sorting and full-text search.
Inputs: dataset_id (required), sort, limit, offset, +1 more.
sg_dataset_searchA
Search for Singapore government datasets on data.gov.sg. Returns known dataset IDs and browse links.
Inputs: query (required).
sg_dengueA
Get Singapore active dengue cluster locations and case counts.
Inputs: no named parameters.
sg_ev_chargingA
Get electric vehicle charging point availability in Singapore. Requires SG_LTA_KEY.
Inputs: no named parameters.
sg_flood_alertsA
Get current flood alerts in Singapore (from PUB via LTA). Requires SG_LTA_KEY.
Inputs: no named parameters.
sg_geocodeA
Convert Singapore address or postal code to coordinates. Requires SG_ONEMAP_EMAIL + SG_ONEMAP_PASSWORD.
Inputs: query (required).
sg_hawker_centresC
Get Singapore hawker centre information
Inputs: query.
sg_hdb_pricesA
Get HDB resale flat prices (most recent first). Filter by town and flat type.
Inputs: town, limit, flat_type.
sg_holidaysA
Get Singapore public holidays
Inputs: year.
sg_mrt_crowdA
Get MRT/LRT station crowd density (real-time or forecast). Requires SG_LTA_KEY.
Inputs: line (required), forecast.
sg_myinfo_cpfA
Get CPF (Central Provident Fund) information β balances, recent contributions, employer history. π SHOWCASE MODE (sandbox data)
Inputs: nric.
sg_myinfo_hdbA
Get HDB ownership and housing information β flat type, address, ownership details. π SHOWCASE MODE (sandbox data)
Inputs: nric.
sg_myinfo_passportA
Get passport and travel document information β passport number, expiry date, pass status. π SHOWCASE MODE (sandbox data)
Inputs: nric.
sg_myinfo_personA
Get personal information from SingPass MyInfo β name, DOB, nationality, address, marital status, email, mobile. π SHOWCASE MODE (sandbox data)
Inputs: nric.
sg_nearbyA
Find nearby amenities using OneMap themes. Requires SG_ONEMAP_EMAIL + SG_ONEMAP_PASSWORD. Common themes: hawkercentre, kindergartens, parks, libraries, communityclubs, healthierdiningpartners.
Inputs: theme (required), latitude (required), longitude (required).
sg_neighbourhood_reportA
Get a comprehensive neighbourhood report for a Singapore area β combines HDB prices, schools, hawker centres, dengue clusters, and weather into one overview.
Inputs: area (required).
sg_ntu_modulesA
Search NTU modules by code or title. Returns module code, title, AUs, and description.
Inputs: query (required).
sg_nus_modulesA
Search NUS modules by code or title. Returns module code, title, and credits. Use a specific module code for full details including description and prerequisites.
Inputs: query (required), acad_year.
sg_rainfallA
Get real-time rainfall readings across Singapore (76 weather stations)
Inputs: no named parameters.
sg_reverse_geocodeA
Convert coordinates to Singapore address. Requires SG_ONEMAP_EMAIL + SG_ONEMAP_PASSWORD.
Inputs: latitude (required), longitude (required).
sg_routeA
Get route between two points in Singapore. Supports driving, walking, and public transport. Requires SG_ONEMAP_EMAIL + SG_ONEMAP_PASSWORD. Use sg_geocode first to get coordinates.
Inputs: start (required), end_point (required), mode.
sg_schoolsA
Search Singapore school directory (MOE schools with address, principal, subjects)
Inputs: query.
sg_setup_statusA
Check configuration status for all SG Gov MCP tiers and get links for missing API keys
Inputs: no named parameters.
sg_taxi_availabilityA
Get locations of available taxis in Singapore (from data.gov.sg, no key needed).
Inputs: no named parameters.
sg_traffic_imagesA
Get live traffic camera image links. Requires SG_LTA_KEY.
Inputs: location.
sg_traffic_incidentsA
Get current traffic incidents on Singapore roads. Requires SG_LTA_KEY.
Inputs: no named parameters.
sg_train_alertsA
Get MRT/LRT service alerts and disruptions. Requires SG_LTA_KEY.
Inputs: no named parameters.
sg_uv_indexA
Get Singapore UV index readings (hourly). Values: 0-2 Low, 3-5 Moderate, 6-7 High, 8-10 Very High, 11+ Extreme.
Inputs: no named parameters.
sg_weatherA
Get Singapore weather forecast. 2h gives per-area forecast, 24h gives temperature/humidity overview with time periods, 4day gives multi-day outlook.
Inputs: period.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 34 tools
Each tool targets a distinct data source or action, from weather and air quality to bus arrivals and MyInfo showcase data. Even similar tools like sg_weather vs sg_rainfall vs sg_flood_alerts have clearly separate purposes, and descriptions reinforce the differences.
All tool names use the 'sg_' prefix and snake_case consistently, but the second part varies between pure nouns (sg_weather), compound nouns (sg_air_quality), and verb-noun forms (sg_dataset_search). This is a minor deviation from a strict verb_noun convention, but the overall pattern remains predictable.
With 34 tools, the server exceeds the 25-tool threshold for 'too many' in the rubric. Even though the scope is broad (Singapore government data across many domains), the sheer number makes the server feel heavyweight and harder to navigate, despite each tool having a defined purpose.
The tool set is remarkably comprehensive for a government-data MCP: it covers weather, environment, transport, traffic, property, education, business, geospatial, and even personal data via MyInfo showcase. There are no obvious dead endsβevery major data category an agent might need is represented, and dataset search/fetch covers open-data exploration.
Related MCP Connectors
This MCP server provides seamless access to Malaysia's government open data, including datasets, wβ¦
Singapore property & financial data APIs for AI agents. 27 MCP tools. x402 micropayments.
data.gov.sg MCP β Singapore open data + real-time environment/transport feeds
Hosted MCP server for live public-data APIs and Skills for AI agents.
Related MCP Servers
AlicenseAqualityDmaintenanceA feature-rich MCP server offering 30 tools across AI, code, text, data, web, and system categories, enabling tasks like chat, translation, code review, web scraping, and text processing.30MIT- FlicenseNot gradedqualityCmaintenanceAn MCP server that indexes Singapore Government GCC documentation and exposes search tools for AI assistants.-
- FlicenseNot gradedqualityDmaintenanceMCP server for Open-Meteo free weather APIs, offering 16 tools for forecast, historical, air quality, marine, flood, ensemble, climate, seasonal, and scheduled data collection with no API key required.-
- FlicenseNot gradedqualityDmaintenanceProvides AI agents with live, structured access to Singapore government open data including weather, transport, property, and company registry via 35 well-described tools.1-