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.1.tar.gz (8.1 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.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: publicsgdata_mcp-0.2.1.tar.gz
  • Upload date:
  • Size: 8.1 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.1.tar.gz
Algorithm Hash digest
SHA256 33157089eb2e37c2ce5eb065755a623f224627c214a676a626cc41fc85887bce
MD5 3cd75f67e24edecf378065cd5fe3e31b
BLAKE2b-256 44275d93da38f3a835a5d5fb6d31835545642611a163e93ef783fc0c5e036a3e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for publicsgdata_mcp-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de742bfd7483e5117a0fcc69dedad329ff432f099bcbed47bb430d10dfdae647
MD5 7f372fa297e2af4d1b75db6db2b693bb
BLAKE2b-256 503df548992d178034786ad5f92aa7f5e732f6292dfeaec396cc456726630f00

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