MO

mcp-open-data-hk/mcp-open-data-hk

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

8 stars 7 forks 质量 63 趋势 16MIT

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

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:

  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. search_datasets - Search for datasets by query term with advanced options
  6. search_datasets_with_facets - Search datasets and return faceted results
  7. get_datasets_by_format - Get datasets by file format
  8. get_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 return
  • language (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 retrieve
  • language (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
在 GitHub 查看完整 README

安装

uvx mcp-open-data-hk
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "mcp-open-data-hk": { "command": "uvx", "args": ["mcp-open-data-hk"] } } }