HongKongAddressMCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@HongKongAddressMCPcorrect '科士商業中心 宏開道8號 九龍灣'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Address MCP Server
A Model Context Protocol (MCP) server for Hong Kong address lookup and correction using the Address Lookup Service (ALS) open data from the HKSAR Government.
Features
Fuzzy address matching — Corrects typos in building names, street names, estate names (Chinese & English)
Structured input parsing — Parses the standard HK address form format (室/層/樓/大廈名稱/街名及街號/地區)
Free-text search — Search by any combination of address fields
Bilingual — Full support for Traditional Chinese and English addresses
LLM-powered correction — Uses Dify LLM API to compose the final corrected full address
Offline fallback — Falls back to local-only matching if LLM is unavailable
GeoAddress & Coordinates — Returns GeoAddress identifiers and WGS84 coordinates
Related MCP server: Hong Kong Open Data MCP Server
Data Source
Uses the ALS GeoJSON files (18 district files) from DATA.GOV.HK:
als_addresses_(district_name).geojson— One file per District Council district
Tools
check_address
Look up and correct a Hong Kong address using structured fields.
Parameters:
Field | Description | Example |
| Building name (大廈名稱) |
|
| Street name (街名) |
|
| Street number (街號) |
|
| Estate name (屋邨/屋苑) |
|
| Village name (村) |
|
| District (地區) |
|
| Region (地區選項) |
|
| Floor (層) |
|
| Unit/Room (室) |
|
parse_and_check_address
Parse a structured Chinese address form and look up/correct it.
Input example:
室:215
層:8
樓:(未填寫)
大廈名稱:科士商業中心
屋邨/屋苑/村:(未填寫)
街名及街號:宏開道 8號
地區:九龍灣
地區選項:已勾選 九龍Output: Identifies that "科士商業中心" should be "其士商業中心" (CHEVALIER COMMERCIAL CENTRE).
correct_address ⭐ (Recommended)
The main tool — parses, looks up, and corrects an address using ALS open data + Dify LLM. Returns the final corrected full address.
Parameters:
Field | Description |
| Any address text — structured form or free text (Chinese/English) |
Example output:
CHINESE: 九龍觀塘區宏開道8號其士商業中心8樓215室
ENGLISH: Unit 215, 8/F, CHEVALIER COMMERCIAL CENTRE, 8 WANG HOI ROAD, KWUN TONG DISTRICT, KLN
GEOADDRESS: 3981120257T20050430
CORRECTIONS: 大廈名稱: "科士商業中心" → "其士商業中心" (CHEVALIER COMMERCIAL CENTRE)search_address_by_text
Free-text search for addresses.
Parameters:
Field | Description |
| Free-text query (Chinese or English) |
| Max results (default: 5) |
Setup
Install dependencies
npm installConfigure Environment Variables
Copy the example environment file and update with your credentials:
cp .env.example .envEdit .env to set your Dify API credentials:
DIFY_API_KEY=your-api-key-here
DIFY_API_ENDPOINT=https://your-dify-endpoint.com/v1Note: The .env file is gitignored to protect your credentials.
Run as MCP server
node index.jsConfigure in your MCP client
Add to your MCP settings (e.g. ~/.cursor/mcp.json or Windsurf MCP config):
{
"mcpServers": {
"address-mcp": {
"command": "node",
"args": ["/Users/hillmantam/AddressMCP/index.js"]
}
}
}Environment Variables Reference
Variable | Required | Description |
| Yes | Your Dify API key |
| Yes | Your Dify API base URL (e.g., |
Run tests
npm testExample Correction
Input: 科士商業中心 at 宏開道 8號, 九龍灣
Output:
⚠️ 大廈名稱: "科士商業中心" → "其士商業中心" (CHEVALIER COMMERCIAL CENTRE)
Correct address: 九龍觀塘區宏開道8號其士商業中心
GeoAddress:
3981120257T20050430Coordinates: 22.32133, 114.21127
Architecture
User Input → Parse structured fields → Fuse.js fuzzy search (local GeoJSON)
↓
Top 5 candidates
↓
Dify LLM API → Final corrected address
↓
(Fallback: local-only if LLM fails)Fuse.js — Fuzzy string matching for Chinese and English text
Dify LLM — AI-powered address correction and formatting
MCP SDK — Standard Model Context Protocol server over stdio
GeoJSON — All 18 district files loaded into memory with indexed search
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/OctHex2016/HongKongAddressMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server