Thailand NSO MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| discover_dataflowsA | Discover available TNSO (Thailand National Statistical Office) dataflows. Optionally filter by comma-separated keywords (matched against id, Thai/English name and description). Start here to find a dataset, then call get_constraints. |
| get_structureA | Get the data structure (DSD) for a datastructure id: the ordered list of dimensions and the codelist each uses. Fast path when you already know the codes. |
| get_constraintsA | Get all valid dimension values (with Thai/English labels) and the available time range for a dataflow. One call returns everything needed to build a get_data query. Time periods are Buddhist Era (BE = Gregorian + 543). |
| get_codelist_descriptionA | Get Thai and English labels for every code in a codelist (e.g. 'CL_CWT'). |
| get_conceptsA | Resolve a TNSO SDMX concept id to its Thai or English name (searches all TNSO concept schemes; result cached). Use lang='th' or lang='en'. |
| get_dataA | Fetch observations for a dataflow as a TSV table, with reproducible CSV/curl URLs. Supports dimension filtering and a time range. Omit dimensions from dimension_filters to get all their values; pass multiple codes per dimension as an array. If no period is given, the latest available year is returned. IMPORTANT: start_period/end_period are Buddhist Era years (e.g. 2567 = 2024). |
| get_cache_diagnosticsA | Check persistent-cache health (exists, size, writability). Pass debug=true to additionally reveal the cache path and stored keys (host-sensitive). For debugging. |
| get_territorial_codesA | Look up Thai geography codes used by the AREA / CWT dimensions: level='region' (CL_AREA), 'province' (CL_CWT, 77 changwat), or 'district' (CL_AMPHOE). Filter by 'name' (Thai or English substring). Use this to find codes before calling get_data. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
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/aard-ai/tnso-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server