SG Gov MCP Server
Click on "Install 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 ServerWhat'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: MCP Weather Free
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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/DarKSanjan/sg-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server