SG Gov MCP Server

SG Gov MCP Server

Unified MCP server offering 30 tools for Singapore government and public data including weather, transport, education, and property, with many tools working immediately without API keys.

Category
Visit Server

README

πŸ‡ΈπŸ‡¬ 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 build

Use 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"
      }
    }
  }
}

Available Tools (30)

Tier 1 β€” No API Key Required βœ…

Tool Description
sg_setup_status Check which API keys are configured
sg_weather 2-hour, 24-hour, or 4-day weather forecast
sg_air_quality PSI and PM2.5 readings by region
sg_uv_index Current UV index
sg_dengue Active dengue cluster locations
sg_rainfall Real-time rainfall across 76 stations
sg_dataset_search Find data.gov.sg datasets
sg_dataset_fetch Fetch rows from any dataset
sg_hdb_prices HDB resale flat prices (1990-2025)
sg_coe_prices COE bidding results and premiums
sg_schools School directory (subjects, CCAs, programmes)
sg_holidays Singapore public holidays
sg_hawker_centres Hawker centre locations
sg_nus_modules NUS module search (via NUSMods)
sg_ntu_modules NTU module search (via ModGod API)
sg_taxi_availability Real-time taxi locations
sg_company_search ACRA company/business search by name
sg_neighbourhood_report Combined area report (HDB prices, schools, weather, air quality)

Tier 2 β€” Free API Key Required πŸ”‘

Tool Requires Description
sg_bus_arrival SG_LTA_KEY Real-time bus arrival times
sg_train_alerts SG_LTA_KEY MRT/LRT service disruptions
sg_traffic_incidents SG_LTA_KEY Current road incidents
sg_traffic_images SG_LTA_KEY Live traffic camera feeds
sg_carpark SG_LTA_KEY Real-time carpark availability
sg_ev_charging SG_LTA_KEY EV charging point availability
sg_flood_alerts SG_LTA_KEY PUB flood alerts
sg_mrt_crowd SG_LTA_KEY MRT station crowd density
sg_geocode SG_ONEMAP_* Address β†’ coordinates
sg_reverse_geocode SG_ONEMAP_* Coordinates β†’ address
sg_route SG_ONEMAP_* Route planning (drive/walk/PT)
sg_nearby SG_ONEMAP_* Find nearby amenities

API Key Setup

All keys are free. Registration takes ~2 minutes each.

LTA DataMall (bus, train, traffic)

  1. Go to https://datamall.lta.gov.sg/content/datamall/en/request-for-api.html
  2. Fill in the form β€” you get the key via email instantly
  3. Set export SG_LTA_KEY=your_key

OneMap (geocoding, routing)

  1. Go to https://www.onemap.gov.sg and register
  2. Set export SG_ONEMAP_EMAIL=your_email
  3. Set export SG_ONEMAP_PASSWORD=your_password

The server handles token refresh automatically.

Data Sources

Source What It Provides
data.gov.sg 2000+ government datasets + real-time APIs
LTA DataMall Bus, train, traffic, carpark, taxi, EV charging
OneMap (SLA) Geocoding, routing, demographics, nearby amenities
NUSMods NUS modules and timetables
NTU ModGod 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 server

Architecture

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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured