UK open data dataset search
uk_search_datasets
TW-specificMIT
**關鍵字 / 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`.Input 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"
}How to call
Once your Twinkle Hub MCP client is configured, your agent will see uk_search_datasets. Just ask it to call — example:
# Ask Claude / any MCP client: 請用 uk_search_datasets 處理 "…"。 # It will call: uk_search_datasets(input="…")
Haven't set up a client yet?
Claude Desktop in 3 minutes — download the .mcpb and double-click, or see docs for other clients.
See user docs