ckan-thaigdc-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CKAN_SITES | No | Comma-separated list of allowed CKAN sites in the format alias=URL, e.g. nso=https://catalog.nso.go.th,gdcatalog=https://gdcatalog.go.th. If not set, the server uses the default sites: nso, gdcatalog, datagoth, statprovince, and kalasin. Only localhost may use http://; other sites must use https://. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ckan_list_sitesA | List the CKAN catalogs this server may query, with the aliases other tools take as |
| ckan_site_infoA | Get a catalog's CKAN and Thai GDC versions, catalog type, dataset count and features. Use this to check whether a site supports something before relying on it: capabilities.datastore means tabular data may be queryable with ckan_query_data, capabilities.scheming means ckan_get_schema works. |
| ckan_search_datasetsA | Search one catalog's public datasets, with optional filters and counts per category (facets). Returns compact summaries; use ckan_get_dataset for full metadata and the file list. Examples:
Use names returned by facets, ckan_list_organizations or ckan_list_groups for the organization and group filters. |
| ckan_get_datasetA | Get one dataset's metadata and its files (resources). Each resource says whether it is queryable: if so, pass its id to ckan_query_data; if not, give the user its url. Use ckan_search_datasets to find ids. detail="full" returns the catalog's raw record, which is much longer. |
| ckan_find_federated_copiesA | Find datasets on other catalogs that were copied from a source catalog, using their reference_url_catalog field. Searches several sites and reports a per-site result, including sites that fail. Examples:
|
| ckan_get_resourceA | Get one file's details. For a queryable resource this also returns its columns, their types and the row count, which ckan_query_data needs for filters and sorting. Values are often stored as text, including years such as "2565Q2", so check column types before comparing them. |
| ckan_query_dataA | Read rows from a queryable resource, with filters, full-text search, column selection, sorting and distinct values. Only works where ckan_get_dataset shows the resource as queryable. Call ckan_get_resource first for the column names: an unknown column is an error. Examples:
|
| ckan_list_organizationsA | List a catalog's organizations with dataset counts, or find them by name. Pass the returned name as the organization filter of ckan_search_datasets. Example: "หน่วยงานที่ชื่อมีคำว่าสถิติ" -> query="สถิติ" (returns matches without dataset counts). |
| ckan_list_groupsA | List a catalog's groups with dataset counts, or find them by name. Pass the returned name as the group filter of ckan_search_datasets. Example: "หน่วยงานที่ชื่อมีคำว่าสถิติ" -> query="สถิติ" (returns matches without dataset counts). |
| ckan_search_tagsA | Find tags containing some text, plus search terms the catalog suggests where available. Pass a returned tag as the tag filter of ckan_search_datasets. Example: query="ประชากร". |
| ckan_get_schemaA | Get a catalog's metadata fields: their labels, whether they are required, and allowed values. Use this to learn what a field means, or the exact value to filter on: values are usually Thai and differ from English-looking names (update_frequency_unit is 'ปี', not 'year'). By default choices are only counted. Pass field="objective" or include_choices=true to see them. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 11 tools
Most tools target clearly distinct resources and actions (search datasets vs get dataset vs query data vs get resource). The main potential confusions are ckan_list_sites vs ckan_site_info (both about catalogs) and ckan_list_organizations vs ckan_list_groups, but the descriptions clarify the boundaries reasonably well.
All names share a ckan_ prefix and predominantly follow verb_noun (list_sites, search_datasets, get_dataset, query_data, get_schema). Minor deviations like ckan_site_info (noun-only, not get_site_info) and ckan_find_federated_copies (find instead of get/search) are small inconsistencies.
11 tools is well within the ideal 3-15 range and each tool covers a distinct facet of CKAN exploration. Nothing feels redundant or missing at the count level.
The surface covers discovery (sites, orgs, groups, tags), search, metadata retrieval, schema inspection, and tabular data querying, plus federated copy lookup — comprehensive for a read-only catalog client. There are no write/CRUD operations and no direct resource download tool (users are told to use the URL), but these are minor gaps for the apparent read-only purpose.