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

Uploaded Python 3

File details

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

File metadata

  • Download URL: publicsgdata_mcp-0.2.2.tar.gz
  • Upload date:
  • Size: 8.3 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.2.tar.gz
Algorithm Hash digest
SHA256 2edc715d1c6b788ba67bb66e0a25c2aec38030e9e5be92843aa5a11df8446981
MD5 c39a74c7e9e65a3610df48fddb5454f0
BLAKE2b-256 a02d88eaa5dcc05cee67a2210e0daea7a869acc9bbe28028b30581cac1e96429

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for publicsgdata_mcp-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a0f7af2ad18c7a4af8af46eeac960c11420d771afa1530f94c2326bf8fcf1c4e
MD5 e2cb561ab1c20cab02dbe86cda05deb0
BLAKE2b-256 94295a6a741c675abb87aea86178332d5fbde3661597bddf61d8411386296d8f

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