Skip to main content

Hong Kong law MCP Server providing law data tools

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hkopenai_hk_law_mcp_server-0.1.8.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file hkopenai_hk_law_mcp_server-0.1.8.tar.gz.

File metadata

File hashes

Hashes for hkopenai_hk_law_mcp_server-0.1.8.tar.gz
Algorithm Hash digest
SHA256 4a8dac673a0097c74fe8c182afc0ba104ea546ee68600f0551bcd46358481e78
MD5 89466a9b64540df6b13209e38a1e7939
BLAKE2b-256 11afad3cee20fcc3d7a1eea90e9bb0242b3fbd70365828c35c88564e697e566a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page