Price Per TokenPrice Per Token
MCP Server for Singapore Government Open Data

MCP Server for Singapore Government Open Data

by aniruddha-adhikary

GitHub 2 6,351 uses Remote
0

About

data.gov.sg provides access to Singapore's official open data portal, enabling AI assistants to browse, search, and download public government datasets. It connects to the CKAN-based datastore API to query structured data from thousands of datasets across various government agencies. Key features include: - List and explore collections and datasets from Singapore's open data catalog - Search within datasets using the CKAN datastore API with field-specific queries and filters - Initiate filtered dataset downloads and poll for completion status - Automatic rate limiting to comply with API restrictions (5 requests per minute) - No authentication required for accessing public government data

Tools 10

datagovsg_list_collections

List all collections on data.gov.sg

datagovsg_get_collection

Get metadata for a specific data.gov.sg collection

datagovsg_list_datasets

List all datasets on data.gov.sg

datagovsg_get_dataset_metadata

Get metadata for a specific data.gov.sg dataset

datagovsg_search_dataset

Search for data within a data.gov.sg dataset

datagovsg_initiate_download

Initiate download of a data.gov.sg dataset with optional filtering

datagovsg_poll_download

Check data.gov.sg download status and get download URL

singstat_search_resources

Search for SingStat tables by keyword (works best with single words)

singstat_get_metadata

Get metadata for a specific SingStat table

singstat_get_table_data

Get data from a specific SingStat table with optional filtering

README

Gahmen MCP Server

MCP (Model Context Protocol) server for Singapore's data.gov.sg APIs, providing easy access to government datasets and collections.

Features

  • Access to data.gov.sg collections and datasets
  • Search within datasets using CKAN datastore API
  • Dataset download functionality with filtering support
  • Built-in rate limiting to respect API quotas (5 requests per minute)
  • Available Tools

    Collections

  • list_collections - List all collections on data.gov.sg
  • get_collection - Get metadata for a specific collection
  • Datasets

  • list_datasets - List all datasets on data.gov.sg
  • get_dataset_metadata - Get metadata for a specific dataset
  • search_dataset - Search for data within a dataset using CKAN datastore
  • initiate_download - Start downloading a dataset with optional filtering
  • poll_download - Check download status and get download URL
  • Installation

    npm install
    

    Development

    npx @smithery/cli dev
    

    Build

    npx @smithery/cli build
    

    Usage Examples

    Search a Dataset

    // Search population data
    search_dataset({
      resource_id: "d_8b84c4ee58e3cfc0ece0d773c8ca6abc",
      q: { "year": "2023" },
      limit: 10
    })
    

    Get Collection with Datasets

    // Get collection 522 with all dataset metadata
    get_collection({
      collectionId: "522",
      withDatasetMetadata: true
    })
    

    API Rate Limits

    The server implements automatic rate limiting:

  • Maximum 5 requests per minute
  • 12-second minimum interval between requests
  • No Authentication Required

    data.gov.sg APIs are public and don't require authentication.

    License

    MIT

    Related MCP Servers

    AI Research Assistant

    AI Research Assistant

    hamid-vakilzadeh

    AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar

    Web & Search
    12 8
    Linkup

    Linkup

    LinkupPlatform

    Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages

    Web & Search
    2 24
    Math-MCP

    Math-MCP

    EthanHenrickson

    Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support

    Developer Tools
    22 81