
This is an MCP (Model Context Protocol) server that provides access to data from [DATA.GOV.HK](https://data.gov.hk), the official open data portal of the Hong Kong government.
概览
This is an MCP (Model Context Protocol) server that provides access to data from DATA.GOV.HK, the official open data portal of the Hong Kong government. To install mcp-open-data-hk for Claude Desktop automatically via Smithery: When using uv no specific installation is needed. We will use uvx to directly run mcp-server-fetch. Alternatively you can install mcp-server-fetch via pip: After installation, you can run it as a script using: After installation, configure your MCP-compatible client (like Cursor, Claude Code, or Claude Desktop) by adding the following to your settings.json: The server provides the following tools to interact with the DATA.GOV.HK API: 1. list_datasets - Get a list of dataset IDs 2. get_dataset_details - Get detailed information about a specific dataset 3. list_categories - Get a list of data categories 4. get_category_details - Get detailed information about a specific category 5.
README
以下为原文 README 节选,完整内容请查看原文。
mcp-open-data-hk
This is an MCP (Model Context Protocol) server that provides access to data from DATA.GOV.HK, the official open data portal of the Hong Kong government.
Installation
Installing via Smithery
To install mcp-open-data-hk for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @mcp-open-data-hk/mcp-open-data-hk --client claude
Using uv (recommended)
When using uv no specific installation is needed. We will
use uvx to directly run mcp-server-fetch.
Using PIP
Alternatively you can install mcp-server-fetch via pip:
pip install mcp-open-data-hk
After installation, you can run it as a script using:
python -m mcp_open_data_hk
After installation, configure your MCP-compatible client (like Cursor, Claude Code, or Claude Desktop) by adding the following to your settings.json:
Features
The server provides the following tools to interact with the DATA.GOV.HK API:
list_datasets- Get a list of dataset IDsget_dataset_details- Get detailed information about a specific datasetlist_categories- Get a list of data categoriesget_category_details- Get detailed information about a specific categorysearch_datasets- Search for datasets by query term with advanced optionssearch_datasets_with_facets- Search datasets and return faceted resultsget_datasets_by_format- Get datasets by file formatget_supported_formats- Get list of supported file formats
Tools
list_datasets
Get a list of dataset IDs from DATA.GOV.HK
Parameters:
limit(optional): Maximum number of datasets to return (default: 1000)offset(optional): Offset of the first dataset to returnlanguage(optional): Language code (en, tc, sc) - defaults to “en”
get_dataset_details
Get detailed information about a specific dataset
Parameters:
dataset_id: The ID or name of the dataset to retrievelanguage(optional): Language code (en, tc, sc) - defaults to “en”include_tracking(optional): Add tracking information to dataset and resources - defaults to False
list_categories
Get a list of data categories (groups)
Parameters:
order_by(optional): Field to sort by (‘name’ or ‘packages’) - deprecated, use sort instead
安装
uvx mcp-open-data-hk配置
{
"mcpServers": {
"mcp-open-data-hk": {
"command": "uvx",
"args": ["mcp-open-data-hk"]
}
}
}