Twinkle HubTwinkle Hub
登入

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

查看完整 Changelog →

英國 開放資料 資料集搜尋 (data.gov.uk)

uk_search_datasets

台灣​專屬MIT

**關鍵字 / Keywords**: 英國 開放資料 資料集 搜尋 CKAN ONS 政府 UK united kingdom opendata dataset search CKAN ONS BGS Environment Agency Companies House NHS Land Registry Ordnance Survey census statistics

Scope: UK data.gov.uk · 64,306 datasets across 1,480 organisations.

Live server-side full-text search via CKAN Action API 3
(`package_search`). Unlike SG's broken v2 REST search, UK CKAN
FTS works properly — Solr syntax supported: quoted phrases,
boolean AND/OR, wildcards.

Args:
    query: Solr full-text query. Empty string browses all
           (returns sorted by metadata_modified desc).
    organization: exact org slug filter (e.g.
                  "office-for-national-statistics"). Discover
                  slugs via `uk_list_organizations`.
    format: exact resource format filter (e.g. "CSV", "GeoJSON",
            "SHP", "XLS"). Matches ANY resource on the dataset.
    limit: max results (default 20, hard cap 100).

Returns dict with `data: [{name, title, org, license,
license_title, num_resources, formats, updated, url}, ...]`
sorted by CKAN default (relevance if query set, updated desc
otherwise) and `note` with total match count.

License: portal default Open Government Licence v3
(OGL-UK-3.0) · per-dataset license_id may override. ~41k of
64k datasets have null license_id and default to portal OGL v3
by T&C — do NOT silently backfill; check per-row `license`.

輸入 schema

{
  "properties": {
    "query": {
      "default": "",
      "title": "Query",
      "type": "string"
    },
    "organization": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Organization"
    },
    "format": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Format"
    },
    "limit": {
      "default": 20,
      "title": "Limit",
      "type": "integer"
    }
  },
  "title": "uk_search_datasetsArguments",
  "type": "object"
}

呼叫​方式

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

# Ask Claude / any MCP client:
請用 uk_search_datasets 處理 "…"。

# It will call:
uk_search_datasets(input="…")

尚未​設定 Client?

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

查看使用者設定​文件