Skip to main content

Local MCP server for Singapore government open data via publicsgdata

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

publicsgdata_mcp-0.2.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

publicsgdata_mcp-0.2.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file publicsgdata_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: publicsgdata_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for publicsgdata_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 69f9684e90680ee5ca50619e6305d7bce864fd3b4374c8e22275750b44a4077e
MD5 aef8abc1e54beb868846d6b8e3c4d0d7
BLAKE2b-256 6978e90374e9720b489d6c4d12ad56450fdeab91cda40f7b4fbb116151514ce4

See more details on using hashes here.

File details

Details for the file publicsgdata_mcp-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for publicsgdata_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a70ff548e35d8d117eb87b2013d8d497831901dfed5f0e130d63bdebeabaaf8
MD5 9183b9584b428ac26b6bfb163bee3bab
BLAKE2b-256 3fbec689fed78ebddffe81e2f7c5573fcc88228f2edd0c1cc0dd7792f190b62b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page