Skip to main content
Glama
manfye

Data.gov.my MCP Server

by manfye

list_catalogue_ids

Fetch available data catalogue IDs from Malaysia's government open data platform to discover and access datasets programmatically.

Instructions

Fetch list of available data catalogue IDs from GitHub repository.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function for the 'list_catalogue_ids' tool. Fetches list of JSON files from the GitHub repository 'data-gov-my/datagovmy-meta/contents/data-catalogue', extracts catalogue IDs, and returns them as JSON.
    if (name === 'list_catalogue_ids') { console.error('[GitHub] Fetching catalogue list from GitHub...'); const response = await this.githubAxios.get('/repos/data-gov-my/datagovmy-meta/contents/data-catalogue'); const catalogues = (response.data as GitHubFile[]) .filter((item: GitHubFile) => item.type === 'file' && item.name.endsWith('.json')) .map((item: GitHubFile) => ({ id: item.name.replace('.json', ''), name: item.name, download_url: item.download_url, size: item.size })); return { content: [ { type: 'text', text: JSON.stringify({ catalogues, count: catalogues.length, message: 'Catalogue IDs fetched successfully from GitHub.' }, null, 2), }, ], };
  • src/index.ts:77-81 (registration)
    Registration of the 'list_catalogue_ids' tool in the MCP server's tool list, including name, description, and empty input schema.
    { name: 'list_catalogue_ids', description: 'Fetch list of available data catalogue IDs from GitHub repository.', inputSchema: { type: 'object', properties: {}, required: [] }, },
  • Input schema for 'list_catalogue_ids' tool: an empty object (no parameters required).
    inputSchema: { type: 'object', properties: {}, required: [] },

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/manfye/data-dosm-mcp-nodejs'

If you have feedback or need assistance with the MCP directory API, please join our Discord server