Skip to main content
Glama
mcp-open-data-hk

Hong Kong Open Data MCP Server

Official

get_supported_formats

Lists available file formats for accessing Hong Kong government open data on DATA.GOV.HK to help users identify compatible data types.

Instructions

Get a list of file formats supported by data.gov.hk

Returns: A list of supported file formats

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'get_supported_formats' tool. It is decorated with @mcp.tool, which also serves as its registration in the FastMCP server. The function makes an API request to retrieve the list of supported file formats from data.gov.hk and returns them as a list of strings.
    @mcp.tool async def get_supported_formats() -> List[str]: """ Get a list of file formats supported by data.gov.hk Returns: A list of supported file formats """ result = await make_api_request(FILE_FORMATS_URL) return result.get("formats", [])

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/mcp-open-data-hk/mcp-open-data-hk'

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