Singapore Open Data MCP Server avatar
Singapore Open Data MCP Server

Pricing

Pay per usage

Go to Apify Store
Singapore Open Data MCP Server

Singapore Open Data MCP Server

MCP server for AI agents to access Singapore government open data from data.gov.sg

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Wilson Lim Setiawan

Wilson Lim Setiawan

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Share

An MCP (Model Context Protocol) server that gives AI agents access to Singapore's government open data from data.gov.sg. Query real-time information about weather, transport, property prices, air quality, and thousands of other datasets.

What can AI agents do with this?

  • Check the weather - "What's the weather forecast for Tampines?"
  • Find parking - "Are there available lots at Orchard carparks?"
  • Track taxis - "How many taxis are available right now?"
  • Check air quality - "What's the PSI reading in the East?"
  • Research property - "Show me HDB resale prices in Bishan"
  • Query any dataset - Access 1000+ government datasets

Available Tools

ToolDescription
sg.weather_forecastGet 2-hour weather forecast by area
sg.carpark_availabilityReal-time parking lot availability
sg.taxi_availabilityLive taxi locations and count
sg.psiAir quality (PSI, PM2.5, PM10) by region
sg.query_datasetQuery any dataset by resource ID
sg.get_popular_datasetsList popular dataset IDs

Tool Details

sg.weather_forecast

Get the 2-hour weather forecast for all areas in Singapore.

// No parameters required
{}
// Returns forecasts like:
{
"updated": "2024-01-15T14:00:00+08:00",
"valid_period": { "start": "...", "end": "..." },
"forecasts": [
{ "area": "Ang Mo Kio", "forecast": "Partly Cloudy" },
{ "area": "Bedok", "forecast": "Light Showers" }
]
}

sg.carpark_availability

Get real-time carpark availability across Singapore.

// Parameters
{ "limit": 20 } // Optional, default: 20
// Returns:
{
"timestamp": "2024-01-15T14:30:00+08:00",
"total_carparks": 2000,
"carparks": [
{
"carpark_number": "ACB",
"info": [{ "lot_type": "C", "total_lots": "105", "available": "23" }]
}
]
}

sg.taxi_availability

Get real-time taxi availability with GPS coordinates.

// No parameters required
{}
// Returns:
{
"timestamp": "2024-01-15T14:30:00+08:00",
"total_available_taxis": 5432,
"sample_locations": [
{ "longitude": 103.8521, "latitude": 1.2841 }
]
}

sg.psi

Get current PSI (Pollutant Standards Index) readings.

// No parameters required
{}
// Returns readings for: north, south, east, west, central
{
"timestamp": "2024-01-15T14:00:00+08:00",
"readings": {
"psi_twenty_four_hourly": { "north": 52, "south": 48, ... },
"pm25_twenty_four_hourly": { "north": 15, "south": 12, ... }
}
}

sg.query_dataset

Query any dataset from data.gov.sg using its resource ID.

// Parameters
{
"datasetId": "d_8b84c4ee58e3cfc0ece0d773c8ca6abc", // Required
"limit": 10, // Optional, default: 10
"q": "BISHAN" // Optional, full-text search
}
// Returns dataset records with field metadata

sg.get_popular_datasets

Get a list of popular datasets with their resource IDs.

// No parameters required
{}
// Returns list of popular datasets:
// - HDB Resale Flat Prices
// - Carpark Availability
// - Taxi Availability
// - Weather Forecast
// - PSI Readings
// - COE Bidding Results
// - Private Property Transactions

How to Connect

Using Claude Desktop

Add to your claude_desktop_config.json:

{
"mcpServers": {
"sg-open-data": {
"url": "https://YOUR_USERNAME--sg-open-data-mcp.apify.actor/mcp",
"headers": {
"Authorization": "Bearer YOUR_APIFY_API_TOKEN"
}
}
}
}

Using any MCP Client

Connect via Streamable HTTP transport:

  • Endpoint: https://YOUR_USERNAME--sg-open-data-mcp.apify.actor/mcp
  • Transport: Streamable HTTP
  • Auth Header: Authorization: Bearer YOUR_APIFY_API_TOKEN

Example Conversations

User: "What's the weather like in Singapore right now?"

AI: Uses sg.weather_forecast → "Here's the 2-hour forecast: Ang Mo Kio - Partly Cloudy, Bedok - Light Showers, Orchard - Fair..."


User: "I need to find parking near Bugis"

AI: Uses sg.carpark_availability → "I found several carparks near Bugis. Carpark BM1 has 45/120 lots available..."


User: "How much do 4-room flats cost in Tampines?"

AI: Uses sg.query_dataset with HDB resale data and q="TAMPINES 4 ROOM" → "Recent 4-room HDB resale prices in Tampines range from $450,000 to $580,000..."

Data Sources

All data is sourced from data.gov.sg, the Singapore government's open data portal. Data is provided in real-time where applicable.

Pricing

This Actor uses Pay-Per-Event pricing:

EventPrice
Actor start$0.10
Tool request$0.05
Resource request$0.025
List request$0.001

Local Development

# Install dependencies
npm install
# Test MCP server directly
npm run dev:mcp
# Run as Apify Actor (requires standby mode)
apify run

Deploy to Apify

# Login to Apify
apify login
# Deploy
apify push

After deployment, enable Standby mode in your Actor settings.

Resources

License

ISC