hk-law-mcp-server
by hkopenai
README.md
# Hong Kong law Data MCP Server
[](https://github.com/hkopenai/hk-law-mcp-server)
[](https://opensource.org/licenses/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:
```bash
pip install -r requirements.txt
```
3. Run the server:
```bash
python server.py
```
### Running Options
- Default stdio mode: `python server.py`
- SSE mode (port 8000): `python server.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):
```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:
```bash
pytest
```
TDQS
A3.5/5.0
Scored across 2 tools
Disambiguation5/5
The two tools target clearly distinct statistics topics: Student Visa/Entry Permit versus Foreign Domestic Helpers. There is no overlap in purpose or data source.
Naming Consistency5/5
Both tool names follow the exact same 'get_' + descriptive noun pattern, making the naming convention consistent and predictable.
Tool Count3/5
With only 2 tools, the server feels thin for a domain like Hong Kong law/immigration statistics, but it is not unreasonably small for a focused niche.
Completeness3/5
The tools cover only two specific immigration statistics categories, leaving out many other visa types and legal data that could be expected from a Hong Kong law server. This is a notable gap.
Maintenance
ActivitySlowing
ResponsivenessNo issues