MCP Server for DataGovMy

Exposes DataGovMy datasets as MCP tools for AI agents and developer tools.
  • go

9

GitHub Stars

go

Language

4 months ago

First Indexed

3 weeks ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "faridyusof727-datagovmy-mcp": {
      "command": "/absolute/path/to/mcp-datagovmy",
      "args": []
    }
  }
}

You can run a Go-based MCP server that exposes DataGovMy datasets as tools for AI agents and developer tools. This server lets you access Malaysian government data programmatically, supporting local development workflows and easy extension with new datasets.

How to use

To use this MCP server with an MCP client, first build and run the binary, then connect your client (such as Cline or Cursor) to the server using a stdio transport for robust local development.

Run the server locally in stdio mode and configure the client to launch it as a subprocess. You can approve specific tools automatically to streamline testing and ad-hoc queries. The server exposes a set of DataGovMy datasets as MCP tools, which you can invoke by name with the appropriate parameters.

How to install

# Prerequisites
# - Go 1.18 or newer
# - Git (for cloning)

# Build from source
# (Clone the repository first, then enter the project folder)

git clone <your-repo-url>
cd custom

# Install dependencies
go mod tidy

# Build the MCP server binary
go build -o mcp-datagovmy

# Run the server (default port 8080)
./mcp-datagovmy

Additional notes

The server is designed to be started locally and integrated with Cline or Cursor via stdio. A ready-to-use stdio configuration example is provided to launch the server as a subprocess and automatically approve certain tools for convenience.

Configuration and usage example

{
  "mcpServers": {
    "datagovmy": {
      "disabled": false,
      "timeout": 60,
      "command": "/absolute/path/to/mcp-datagovmy",
      "transportType": "stdio",
      "autoApprove": [
        "population_malaysia",
        "population_state"
      ]
    }
  }
}

Starting and connecting

  1. Build the server binary as shown in the installation steps. 2) Start the server. 3) In your MCP client, point to the datagovmy server configured for stdio transport. 4) Use the available tools such as population_malaysia, population_state, births, fuelprice, registration_transactions_car, and hh_income by requesting them through the client.

Tool usage overview

The server exposes multiple tools that you can invoke through the MCP client using the datagovmy server. These tools provide access to DataGovMy datasets for population, births, fuel prices, car registrations, and household income, enabling programmatic queries and data-driven workflows.

Security and maintenance

Run the server on a trusted host and restrict access to the MCP client that runs locally. Keep Go and dependencies up to date, and rebuild when you pull new changes. If you modify the source to add new tools, rebuild the binary and restart the server to apply changes.

Available tools

births

Returns the number of people born daily in Malaysia based on registrations with JPN from 1920 to present.

fuelprice

Provides weekly retail prices of RON95, RON97, and diesel in Malaysia.

population_malaysia

Population at the national level from 1970 to 2024 by sex, age group, and ethnicity.

population_state

Population by state from 1970 to 2024 by sex, age group, and ethnicity.

registration_transactions_car

Car registration transactions from 2000 to present with filters for date, type, maker, model, color, fuel, and state.

hh_income

Mean and median monthly gross household income in Malaysia from 1970 to 2022.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational