Skip to main content

Hong Kong law Data MCP Server

GitHub Repository License: MIT

This is an MCP server that provides access to law and security related data in Hong Kong through a FastMCP interface.

Features

Foreign Domestic Helpers Statistics

  • Get statistics on the number of Foreign Domestic Helpers in Hong Kong by country and year

Data Source

  • Foreign Domestic Helpers statistics from Immigration Department

Examples

  • Get Foreign Domestic Helpers statistics for 2023
  • Get all Foreign Domestic Helpers statistics

Setup

  1. Clone this repository
  2. Install Python dependencies:
    pip install -r requirements.txt
    
  3. Run the server:
    python app.py
    

Running Options

  • Default stdio mode: python app.py
  • SSE mode (port 8000): python app.py --sse

Cline Integration

To connect this MCP server to Cline using stdio:

  1. Add this configuration to your Cline MCP settings (cline_mcp_settings.json):
{
  "hk-law": {
    "disabled": false,
    "timeout": 3,
    "type": "stdio",
    "command": "uvx",
    "args": [
      "hkopenai.hk-law-mcp-server"
    ]
  }
}

Testing

Tests are available in the tests/ directory. Run with:

pytest

Metadata

Release files for hkopenai.hk-law-mcp-server 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hkopenai.hk-law-mcp-server 0.1.8
File Size Uploaded
hkopenai_hk_law_mcp_server-0.1.8.tar.gz 5.4 kB Details

Release files / hkopenai_hk_law_mcp_server-0.1.8.tar.gz

Download URL hkopenai_hk_law_mcp_server-0.1.8.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4a8dac673a0097c74fe8c182afc0ba104ea546ee68600f0551bcd46358481e78
BLAKE2b-256 checksum
How to use checksums
11afad3cee20fcc3d7a1eea90e9bb0242b3fbd70365828c35c88564e697e566a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.1.8 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page