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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| publicsgdata_mcp-0.2.2.tar.gz | 8.3 kB | Without provenance | Details for publicsgdata_mcp-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| publicsgdata_mcp-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for publicsgdata_mcp-0.2.2-py3-none-any.whl |
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
|
Security for publicsgdata-mcp 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.