Twinkle HubTwinkle Hub
登入

📌 2026-08-17 新增:⚖️ 台灣法條時光機 — 歷史法條原文 · 修法沿革 · 全文檢索 · 條文關聯圖(935 個 dataset · 35,454+ 筆 row)

查看完整 Changelog →

地址查郵遞區號

tw_address_to_postal_code

台灣​專屬MIT

從中文地址推 3 碼郵遞區號 + 縣市區(district-precision)。

Args:
    address: 中文地址,例 "臺北市信義區忠孝東路五段 7 號"。

Returns: {postal_3, county, district, name_zh, precision}。
    5/6 碼街道精度不在範圍內(避免 bundle 中華郵政 80MB 表 +
    上游 schema 不穩);嚴格 5 碼請走中華郵政 web tool。

輸入 schema

{
  "properties": {
    "address": {
      "title": "Address",
      "type": "string"
    }
  },
  "required": [
    "address"
  ],
  "title": "address_to_postal_codeArguments",
  "type": "object"
}

呼叫​方式

配置​好 Twinkle Hub 的 MCP client 後,​agent 會​看到 tw_address_to_postal_code。直接讓它呼叫​即可,​例如:

# Ask Claude / any MCP client:
請用 tw_address_to_postal_code 處理 "台北市中正區忠孝東路1段1號"。

# It will call:
tw_address_to_postal_code(input="台北市中正區忠孝東路1段1號")

尚未​設定 Client?

Claude Desktop 約 3 分鐘即可完成​設定 — 下載 .mcpb 檔案並雙擊​即可,或參閱​文件中的各 Client 安裝​步驟。

查看使用者設定​文件