Skip to main content

publicsgdata-mcp

Local Model Context Protocol server for exploring and downloading Singapore government open data through the publicsgdata SDK.

Cursor config

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "publicsgdata": {
      "type": "stdio",
      "command": "uvx",
      "args": ["publicsgdata-mcp"],
      "env": {
        "DATA_GOV_SG_API_KEY": "${env:DATA_GOV_SG_API_KEY}"
      }
    }
  }
}

Tools

Tool Purpose
list_datasets Browse the catalog
get_dataset_metadata Schema, size, coverage
preview_dataset_rows Small sample for inspection
search_dataset_rows Filter/search within a dataset
get_dataset_download_url Temporary URL for full export
download_dataset_file Save full dataset locally
list_realtime_datasets List supported realtime dataset names
describe_realtime_dataset Full parameter and response docs for one realtime dataset
fetch_realtime_data Fetch data from a realtime API by dataset_name

Downloads are cached under ~/.cache/publicsgdata-mcp by default. Override with PUBLICSGDATA_MCP_CACHE_DIR.

Environment variables

Variable Required Description
DATA_GOV_SG_API_KEY No Higher rate limits for data.gov.sg
PUBLICSGDATA_MCP_CACHE_DIR No Override download cache directory

Metadata

Release files for publicsgdata-mcp 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for publicsgdata-mcp 0.2.2
File Size Uploaded
publicsgdata_mcp-0.2.2.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for publicsgdata-mcp 0.2.2
File Interpreter ABI Platform
publicsgdata_mcp-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.7 kB

Release files / publicsgdata_mcp-0.2.2.tar.gz

Download URL publicsgdata_mcp-0.2.2.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2edc715d1c6b788ba67bb66e0a25c2aec38030e9e5be92843aa5a11df8446981
BLAKE2b-256 checksum
How to use checksums
a02d88eaa5dcc05cee67a2210e0daea7a869acc9bbe28028b30581cac1e96429
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / publicsgdata_mcp-0.2.2-py3-none-any.whl

Download URL publicsgdata_mcp-0.2.2-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0f7af2ad18c7a4af8af46eeac960c11420d771afa1530f94c2326bf8fcf1c4e
BLAKE2b-256 checksum
How to use checksums
94295a6a741c675abb87aea86178332d5fbde3661597bddf61d8411386296d8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page