MonstarX Singapore MCP
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., "@MonstarX Singapore MCPHow many taxis are available in Singapore?"
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.
MonstarX Singapore MCP
A Model Context Protocol (MCP) server that gives AI agents and applications live, structured access to Singapore government open data โ weather, transport, carparks, property prices, company registry, geocoding, and more.
It wraps official public APIs (data.gov.sg, LTA DataMall, OneMap/SLA, NEA, ACRA, HDB, MOE) behind 35 clean, well-described tools with a consistent, provenance-stamped response format. No API keys or authentication are required for clients โ the server handles upstream credentials for you.
๐ฎ Live playground: https://sg-mcp-playground-production.up.railway.app โ pick a tool, tweak the inputs, hit Run, and see real Singapore data render as maps, weather cards, tables and JSON, right in your browser.
๐ MCP endpoint (staging):
https://sg-mcp-staging.monstarxapp.com/mcpServer version0.1.0ยท Protocol: MCP ยท Transport: Streamable HTTP
This repository contains the playground / documentation site (a self-contained static page) and a tiny server to host it. See Run locally & deploy.
Table of contents
Related MCP server: OneMap MCP Server
Run locally & deploy
The site is a single self-contained HTML file (public/index.html) served by a tiny dependency-free Node server.
npm start # serves public/ on http://localhost:8080 (respects $PORT)Because the MCP server sends Access-Control-Allow-Origin: *, the in-browser playground calls it directly โ no backend needed.
Deploy to Railway:
railway up --ci # uses railway.json (Nixpacks build, /health healthcheck)Regenerate the page after editing content (the HTML is generated from build/):
python3 build/build.py # rewrites public/index.html + singapore-mcp-playground.htmlRepository layout
โโโ public/index.html # the playground (what gets served)
โโโ singapore-mcp-playground.html # standalone copy (identical; open locally)
โโโ server.js # dependency-free static server, respects $PORT, /health
โโโ package.json # start script, Node โฅ18
โโโ railway.json # Railway build + healthcheck config
โโโ build/
โ โโโ build.py # generator for the playground HTML
โ โโโ data.min.json # tool metadata + captured example responses
โโโ examples/ # standalone MCP clients (Python, TS, curl, SDK)
โโโ README.mdQuick start
The server speaks JSON-RPC 2.0 over HTTP. You can talk to it with nothing but curl.
1. Discover the server:
curl https://sg-mcp-staging.monstarxapp.com/2. List available tools:
curl -X POST https://sg-mcp-staging.monstarxapp.com/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "mcp-protocol-version: 2025-06-18" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'3. Call a tool โ how many taxis are available in Singapore right now?
curl -X POST https://sg-mcp-staging.monstarxapp.com/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "mcp-protocol-version: 2025-06-18" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call",
"params":{"name":"sg_taxi_availability","arguments":{}}}'{
"result": {
"content": [{ "type": "text", "text": "{ ...json... }" }],
"structuredContent": {
"source": "data.gov.sg",
"retrieved_at": "2026-07-22T02:06:41.665Z",
"license": "Singapore Open Data Licence",
"api": "real-time taxi availability",
"agency": "LTA",
"data": { "available_taxis": 3190, "timestamp": "2026-07-22T10:06:23+08:00" }
}
},
"jsonrpc": "2.0",
"id": 2
}That's it โ no auth, no session setup. See Code examples for Python and TypeScript clients.
Connecting from MCP clients
This is a remote (HTTP) MCP server. Most MCP clients can connect either natively (if they support remote HTTP servers) or through the mcp-remote bridge.
Claude Code
claude mcp add --transport http sg-mcp https://sg-mcp-staging.monstarxapp.com/mcpThen in a session: "Using the sg-mcp tools, what's the 2-hour weather forecast for Tampines?"
Claude Desktop
Edit your claude_desktop_config.json
(macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"singapore": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://sg-mcp-staging.monstarxapp.com/mcp"]
}
}
}Restart Claude Desktop; the 35 sg_* tools appear in the tools menu.
Cursor / Windsurf / other MCP clients
Any client that supports remote HTTP MCP servers can use the URL directly:
{
"mcpServers": {
"singapore": {
"type": "http",
"url": "https://sg-mcp-staging.monstarxapp.com/mcp"
}
}
}For clients that only support stdio, use the mcp-remote bridge shown in the Claude Desktop example.
Endpoints
Endpoint | Method | Purpose |
|
| Server info โ name, version, build SHA, full tool list |
|
| Liveness probe ( |
|
| MCP JSON-RPC endpoint ( |
CORS is open (Access-Control-Allow-Origin: *), so browser-based clients work too.
Transport & protocol details
Transport: Streamable HTTP (MCP spec). POST JSON-RPC to
/mcp.Protocol version:
2025-06-18(send it in themcp-protocol-versionheader).Stateless: the server does not issue an
mcp-session-id. You do not need to callinitializebeforetools/callwhen using raw HTTP โ each request is independent. (Full MCP clients will still perform theinitializehandshake, which the server supports.)Accept header: include
application/json, text/event-stream.Auth: none required.
Minimal request skeleton:
POST /mcp HTTP/1.1
Host: sg-mcp-staging.monstarxapp.com
Content-Type: application/json
Accept: application/json, text/event-stream
mcp-protocol-version: 2025-06-18
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"<tool>","arguments":{...}}}Response format
Every successful tool call returns an MCP result with two mirrored representations of the same payload:
content[0].textโ the payload as a JSON string (for text-only clients / LLMs).structuredContentโ the same payload as a native JSON object (prefer this when parsing programmatically).
Every payload uses a consistent provenance envelope:
{
"source": "data.gov.sg", // upstream platform
"retrieved_at":"2026-07-22T02:06:41.665Z", // server fetch time (UTC)
"license": "Singapore Open Data Licence", // when applicable
"agency": "LTA", // originating gov agency
"api": "real-time taxi availability", // upstream API used
"data": { ... } // the actual result
}Some tools add top-level context fields (e.g. query, total, shown, found, dataset_id) alongside data/results/companies. Timestamps in the envelope are UTC; live data timestamps from LTA/NEA are typically SGT (+08:00).
Tool reference
All 35 tools are prefixed sg_. Required parameters are marked *.
Open data catalog
Generic access to any tabular dataset on data.gov.sg โ the escape hatch when no dedicated tool exists.
Tool | Parameters | Description |
|
| Search data.gov.sg datasets by keyword (e.g. |
|
| Get metadata (columns, description) for a dataset ID (starts with |
|
| Query/paginate rows of a tabular dataset. |
Weather & environment
All are real-time NEA feeds and take no parameters.
Tool | Description |
| 2-hour weather forecast by area (~47 named areas with coordinates). |
| 24-hour outlook: temperature, humidity, wind, regional forecasts. |
| 4-day forecast with daily conditions and temperature ranges. |
| Current UV index readings. |
| Pollutant Standards Index by region. |
| Combined PSI and PM2.5 readings. |
| Live rainfall (mm) from weather stations. |
| Live air temperature (ยฐC) from weather stations. |
| Live relative humidity (%) from weather stations. |
Carparks
HDB carpark information and real-time lot availability.
Tool | Parameters | Description |
|
| Real-time lot availability. Omit |
|
| Static info: address, type, gantry height. |
|
| Search carparks by area/address; optionally attach live availability. |
|
| Combined static info + live availability for one carpark (e.g. |
Public transport
LTA DataMall real-time and reference transport data.
Tool | Parameters | Description |
|
| Real-time bus arrivals for a stop (e.g. |
|
| List all bus stops with coordinates. Paginate in batches of 500 via |
|
| List all bus services. Paginate in batches of 500. |
|
| Routeโstop rows incl. sequence and first/last timings. |
|
| Scheduled first/last bus timings for a service. |
| (none) | Current MRT/LRT service alerts. |
| (none) | Current road traffic incidents. |
| (none) | Live count of available taxis. |
Geocoding & addresses
OneMap (Singapore Land Authority) address search and geocoding.
Tool | Parameters | Description |
|
| Search addresses, buildings, roads, postal codes. |
|
| Address/postal code โ latitude/longitude. |
|
| WGS84 coordinate โ nearby addresses. |
Property
Tool | Parameters | Description |
|
| HDB resale flat transactions. e.g. |
Companies (ACRA)
Singapore's registry of business entities.
Tool | Parameters | Description |
|
| Search registered entities by name (e.g. |
|
| Look up an entity by Unique Entity Number (e.g. |
|
| Verify whether an entity exists / find close registered matches. |
Education (Graduate Employment Survey)
MOE Graduate Employment Survey โ salaries and employment outcomes by degree.
Tool | Parameters | Description |
| (none) | List available survey years. |
|
| Search GES records by degree/university/school/year. |
|
| Rank degrees by a salary/employment metric (e.g. |
Public health
Tool | Parameters | Description |
|
| Active NEA dengue clusters. Set |
Example prompts for AI agents
Natural-language prompts an agent can satisfy using these tools:
"Is it going to rain in Jurong in the next 2 hours?" โ
sg_weather_2h"What's the UV index right now โ do I need sunscreen?" โ
sg_uv_index"Find HDB carparks near Tampines with available lots right now." โ
sg_carpark_search(include_availability:true)"When's the next bus 15 at stop 83139?" โ
sg_bus_arrival"Are there any train delays this morning?" โ
sg_train_service_alerts"Any traffic incidents on the expressways right now?" โ
sg_traffic_incidents"What did 4-room flats in Tampines sell for recently?" โ
sg_hdb_resale_prices"Which NUS degrees had the highest median starting salary in 2022?" โ
sg_ges_top_degrees"Is 'DBS Bank Ltd' a registered company? What's its UEN?" โ
sg_company_verify/sg_company_search"Get the coordinates of ION Orchard (postal 238801)." โ
sg_geocode"What's near latitude 1.2834, longitude 103.8607?" โ
sg_reverse_geocode"Where are the active dengue clusters with 10+ cases?" โ
sg_dengue_clusters
System-prompt hint for agents: "You have access to the Singapore MCP server (sg_* tools) for live Singapore data โ weather, transport, carparks, HDB prices, companies, geocoding. Prefer the specific tool over the generic sg_dataset_query. Always cite the source/agency and retrieved_at from responses when reporting live figures."
Code examples
Runnable clients live in examples/:
examples/curl.shโ pure shell / curl.examples/client.pyโ Python (stdlib only, no dependencies).examples/client.tsโ TypeScript / Node (fetch).examples/mcp_sdk_client.pyโ using the officialmcpPython SDK.
Python (no dependencies)
import json, urllib.request
BASE = "https://sg-mcp-staging.monstarxapp.com/mcp"
def call_tool(name, arguments=None):
body = json.dumps({
"jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": {"name": name, "arguments": arguments or {}},
}).encode()
req = urllib.request.Request(BASE, data=body, headers={
"Content-Type": "application/json",
"Accept": "application/json, text/event-stream",
"mcp-protocol-version": "2025-06-18",
})
with urllib.request.urlopen(req) as r:
result = json.load(r)["result"]
if result.get("isError"):
raise RuntimeError(result["content"][0]["text"])
return result["structuredContent"]
taxis = call_tool("sg_taxi_availability")
print("Available taxis:", taxis["data"]["available_taxis"])
carparks = call_tool("sg_carpark_search",
{"query": "TAMPINES", "include_availability": True, "limit": 3})
print(json.dumps(carparks, indent=2))TypeScript / Node
const BASE = "https://sg-mcp-staging.monstarxapp.com/mcp";
async function callTool(name: string, args: Record<string, unknown> = {}) {
const res = await fetch(BASE, {
method: "POST",
headers: {
"Content-Type": "application/json",
Accept: "application/json, text/event-stream",
"mcp-protocol-version": "2025-06-18",
},
body: JSON.stringify({
jsonrpc: "2.0", id: 1, method: "tools/call",
params: { name, arguments: args },
}),
});
const { result } = await res.json();
if (result.isError) throw new Error(result.content[0].text);
return result.structuredContent;
}
const w = await callTool("sg_weather_2h");
console.log(w.data.items?.[0] ?? w.data);Error handling
Errors are returned as a normal JSON-RPC result with isError: true (not as a JSON-RPC top-level error). The message is in content[0].text.
Invalid / missing arguments โ MCP error -32602:
{
"result": {
"content": [{ "type": "text",
"text": "MCP error -32602: Input validation error: Invalid arguments for tool sg_company_by_uen: [{\"expected\":\"string\",\"path\":[\"uen\"],\"message\":\"expected string, received undefined\"}]" }],
"isError": true
}
}Unknown tool โ MCP error -32602: Tool <name> not found.
No matching data is not an error โ you get a normal envelope with an empty data/results array (e.g. querying an unknown bus stop returns "Services": []). Always check for empty results in addition to isError.
Handling pattern:
if result.get("isError"):
# inspect result["content"][0]["text"]
...
else:
payload = result["structuredContent"]
if not payload.get("data") and not payload.get("results"):
# valid call, no matches
...Rate limits, caching & data freshness
Freshness: real-time feeds (weather, taxi, bus arrivals, carpark availability, traffic) reflect the upstream agency's latest publish. Check
retrieved_at(server fetch, UTC) and the upstreamtimestamp(usually SGT) in the payload.Reference data (bus stops/services/routes, carpark info, datasets) changes rarely; safe to cache client-side.
Rate limits: the server proxies rate-limited government APIs (notably LTA DataMall). Be a good citizen โ cache reference data, avoid tight polling loops, and back off on errors. This is a staging deployment; do not use it for production load.
Data sources & licensing
Data is sourced from official Singapore government platforms and remains subject to their terms:
Platform | Agencies | Used by |
NEA, HDB, ACRA, MOE, LTA | weather, carparks, HDB, companies, GES, catalog | |
LTA | bus, train, traffic, taxi | |
SLA | address search, geocoding |
Most datasets are provided under the Singapore Open Data Licence (echoed in each response's license field). LTA DataMall and OneMap data are subject to their respective terms of use. You are responsible for complying with the source licences when using or redistributing the data. This MCP server is an independent wrapper and is not endorsed by any government agency.
Server: Monstarx Singapore MCP v0.1.0 ยท staging ยท This documentation was generated by testing the live endpoint on 2026-07-22.
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.
Related MCP Servers
- Alicense-qualityDmaintenanceProvides access to Singapore's data.gov.sg government datasets and collections, enabling search, metadata retrieval, and dataset downloads through the CKAN datastore API.3MIT
- Flicense-qualityDmaintenanceProvides comprehensive access to Singapore's OneMap APIs, enabling AI assistants to perform location searches, routing, and coordinate conversions. It features over 35 tools for accessing thematic layers, population statistics, and public transport data.
- Alicense-qualityDmaintenanceReal-time Singapore government data for AI agents. Weather forecasts, air quality (PSI/PM2.5), HDB carpark availability, and taxi supply from data.gov.sg.81ISC
- Alicense-qualityCmaintenanceEnables access to Singapore government open data and real-time environment/transport feeds including weather, air quality, taxi availability, and traffic incidents.7MIT
Related MCP Connectors
Singapore property & financial data APIs for AI agents. 27 MCP tools. x402 micropayments.
Real-world data for agents: air quality, geocoding, quakes, holidays, web search
Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/saadkamal/sg-mcp-playground'
If you have feedback or need assistance with the MCP directory API, please join our Discord server