Hong Kong Government Election and Legislature MCP Server
This is an MCP server that provides access to government security incident data through a FastMCP interface.
Features
- Registered Electors Data: Retrieve the number of registered electors in Hong Kong's geographical constituencies for a specified range of years.
Data Source
- Registered electors data from Registration and Electoral Office (voterregistration.gov.hk)
Examples
- List number of registered electors in geographical constituencies in Hong Kong between 2009 and 2024
Setup
- Clone this repository
- Install Python dependencies:
pip install -r requirements.txt
- 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:
- Add this configuration to your Cline MCP settings (cline_mcp_settings.json):
{
"hk-election": {
"disabled": false,
"timeout": 3,
"type": "stdio",
"command": "uvx",
"args": [
"hkopenai.hk-election-mcp-server"
]
}
}
Testing
Tests are available in the tests/ directory. Run with:
pytest
Metadata
Release files for hkopenai.hk-election-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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hkopenai_hk_election_mcp_server-0.1.8.tar.gz | 6.4 kB | Without provenance | Details for hkopenai_hk_election_mcp_server-0.1.8.tar.gz |
Release files / hkopenai_hk_election_mcp_server-0.1.8.tar.gz
| Download URL | hkopenai_hk_election_mcp_server-0.1.8.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
afb34b005d88cb118d58174a878d6686c3746d8b10d5b2ce41226c63eaec0f61
|
|
BLAKE2b-256 checksum How to use checksums |
cdf2d3f1b8a77d857d5eae9ffee7543e024ba74a098209116d307e23028898b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Security for hkopenai.hk-election-mcp-server 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.