Malaysia Open Data MCP
Provides Docker configuration for deployment to Smithery platform
Used to load environment variables from a .env file during development for storing API keys and configuration
Mentions GitHub repository access for deployment purposes
Provides geocoding services for Malaysian locations, used particularly for GTFS transit features to convert location names to coordinates
Utilizes GrabMaps API for optimized geocoding of Malaysian addresses and locations, offering better accuracy than other providers for Malaysian locations
Enables Parquet file parsing directly in Node.js environments, supporting BROTLI compression and metadata estimation
Uses Nominatim (OpenStreetMap) as a fallback geocoding service when Google Maps or GrabMaps API keys are not provided
Uses TypeScript for the MCP server implementation with configuration available in the project structure
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Malaysia Open Data MCPsearch for Kuala Lumpur weather forecast this weekend"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Malaysia Open Data MCP
MCP Endpoint: https://mcp.techmavie.digital/datagovmy/mcp
Analytics Dashboard: https://mcp.techmavie.digital/datagovmy/analytics/dashboard
MCP (Model Context Protocol) server for Malaysia's open data APIs, with tools for datasets, dashboards, DOSM, weather, floods, parquet files, and GTFS transit data.
This is not an official MCP server from the Government of Malaysia, Jabatan Digital Negara, or the Ministry of Digital.
Features
Unified search across datasets and dashboards
Live metadata fetching from
data-gov-my/datagovmy-metaPure JavaScript parquet parsing with raw, summary, and latest-period modes
GTFS static and realtime transit tools
Zero-credential geocoding for GTFS location search
Built-in analytics endpoints and dashboard
Geocoding
GTFS location search now uses Nominatim (OpenStreetMap) only.
No Google Maps, GrabMaps, or AWS credentials are required
The hosted MCP URL works as-is with zero credentials
Requests are throttled and cached to be friendlier to the public Nominatim service
Self-hosted operators can optionally set
NOMINATIM_CONTACT_EMAIL
Related MCP server: Weather Query MCP Server
Quick Start
Hosted server
Use the hosted endpoint directly:
https://mcp.techmavie.digital/datagovmy/mcpExample MCP client config:
{
"mcpServers": {
"malaysia-opendata": {
"transport": "streamable-http",
"url": "https://mcp.techmavie.digital/datagovmy/mcp"
}
}
}No API keys or geocoding credentials are needed.
Self-hosted
Detailed VPS instructions live in deploy/DEPLOYMENT.md.
npm install
npm run build
npm run start:httpTool Overview
Search and metadata
search_alllist_datasets_cataloguesearch_datasets_cataloguefilter_datasets_catalogueget_dataset_filtersget_dataset_detailslist_dashboardssearch_dashboardsget_dashboard_detailsget_dashboard_chartslist_dosm_datasetsget_dosm_dataset
Files and dashboards
parse_parquet_fileget_parquet_infofind_dashboard_for_parquet
Weather and floods
get_weather_forecastget_weather_warningsget_earthquake_warningsget_flood_warnings
Transport and GTFS
list_transport_agenciesget_transport_dataget_gtfs_staticget_gtfs_realtime_vehicle_positionparse_gtfs_staticparse_gtfs_realtimeget_transit_routesget_transit_stopsget_transit_arrivalssearch_transit_stops_by_locationfind_nearest_transit_stops
Misc
hello
More detail and usage guidance lives in TOOLS.md and PROMPT.md.
Local Development
# Install dependencies
npm install
# Run the HTTP server in development mode
npm run dev:http
# Build and run the production server locally
npm run build
npm run start:http
# Verify the server
curl http://localhost:8080/health
curl -X POST http://localhost:8080/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Analytics
The hosted server exposes:
/analyticsfor JSON stats/analytics/toolsfor tool usage stats/analytics/dashboardfor the HTML dashboard
Configuration
Core environment variables
Variable | Default | Description |
|
| HTTP server port |
|
| Bind address |
|
| Malaysia Open Data API base URL |
|
| Metadata cache TTL in ms |
|
| HTTP timeout in ms |
|
| Concurrent GitHub metadata fetches |
| empty | Optional GitHub token for higher GitHub API rate limits |
| empty | Secret key for analytics reset/import endpoints |
|
| Analytics storage directory |
| empty | Firebase Realtime Database URL for analytics persistence |
|
| Firebase service account path |
| empty | Optional contact email appended to Nominatim queries for self-hosted deployments |
Example .env:
GH_PAT=your_github_pat_here
NOMINATIM_CONTACT_EMAIL=your-email@example.com
ANALYTICS_RESET_KEY=your_analytics_reset_key_here
ANALYTICS_DIR=/app/data
FIREBASE_DATABASE_URL=your_firebase_database_url_here
FIREBASE_CREDENTIALS_PATH=.credentials/firebase-service-account.jsonNominatim Notes
The server now depends on public Nominatim for GTFS location-name searches. The code includes:
A custom
User-AgentOptional
emailsupport viaNOMINATIM_CONTACT_EMAILSerialized requests with a 1 request/second floor
Positive and negative result caching
If you expect sustained geocoding traffic, consider self-hosting a compatible geocoder or routing through your own approved service.
Project Structure
src/
index.ts
http-server.ts
config.ts
datacatalogue.tools.ts
dashboards.tools.ts
dosm.tools.ts
flood.tools.ts
gtfs.tools.ts
parquet.tools.ts
transport.tools.ts
unified-search.tools.ts
weather.tools.ts
firebase-analytics.ts
utils/
deploy/
DEPLOYMENT.md
nginx-mcp.confTroubleshooting
# Docker logs
docker compose logs -f
# Local health check
curl http://localhost:8080/health
# Hosted MCP tool list
curl -X POST https://mcp.techmavie.digital/datagovmy/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'License
MIT. See LICENSE.
Acknowledgments
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hithereiamaliff/mcp-datagovmy'
If you have feedback or need assistance with the MCP directory API, please join our Discord server