io.github.cyanheads/oecd-mcp-server is an MCP server published by io.github.cyanheads, hosted at oecd.caseyjhand.com. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 7 tools, including oecd_list_agencies, oecd_search_datasets, oecd_get_dataset_info, oecd_get_dimension_values, oecd_query_dataset.
Search and query 1,500+ OECD statistical datasets via SDMX. Keyless.
428 connections through 5 shared values. Tap any node.
List OECD SDMX agencies, the directorate each belongs to, and the number of dataflows each publishes. Use to discover agency IDs before filtering oecd_search_datasets by department.
No parameters.
{
"name": "oecd_list_agencies",
"title": "Oecd List Agencies",
"description": "List OECD SDMX agencies, the directorate each belongs to, and the number of dataflows each publishes. Use to discover agency IDs before filtering oecd_search_datasets by department.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"agencies",
"total_agencies",
"total_dataflows",
"source"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"rate_limited",
"upstream_timeout",
"upstream_unavailable",
"upstream_redirect",
"upstream_error",
"upstream_unreadable"
],
"description": "Machine-readable failure mode. Declared by this tool: `rate_limited`: OECD throttled the request rate and was still refusing after the retries, or asked for a wait longer than the call's upstream budget had left. `upstream_timeout`: An OECD request ran past OECD_TIMEOUT_MS, or the call's requests and retries together ran past its upstream budget — 50 seconds, or OECD_TIMEOUT_MS when that is longer. `upstream_unavailable`: OECD returned a server fault or was unreachable once the retries ran out. `upstream_redirect`: The configured OECD host answered with a redirect, which this server never follows. `upstream_error`: OECD refused the request with a status this server does not model — an authorization challenge, a rejection from something sitting in front of the API, a request read as malformed or unprocessable (HTTP 400 or 422), or a method it does not implement (HTTP 501). `upstream_unreadable`: OECD answered with a body this server could not read — not JSON, or JSON whose fields do not have the shape SDMX gives them. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"source": {
"type": "string",
"const": "OECD",
"description": "Data source attribution — always \"OECD\"."
},
"agencies": {
"type": "array",
"items": {
"type": "object",
"required": [
"agency_id",
"dataflow_count"
],
"properties": {
"agency_id": {
"type": "string",
"description": "Agency identifier — e.g. OECD.SDD.NAD."
},
"directorate": {
"type": "string",
"description": "Name of the OECD directorate the agency sits in, resolved from the directorate segment of the identifier — OECD.SDD.NAD is \"Statistics and Data Directorate\". Absent for a publisher outside OECD and when the agency scheme could not be reached."
},
"dataflow_count": {
"type": "number",
"description": "Number of dataflows published by this agency."
}
},
"description": "An agency, its directorate, and its dataflow count.",
"additionalProperties": false
},
"description": "Agencies and their dataflow counts, sorted descending by count."
},
"total_agencies": {
"type": "number",
"description": "Total number of distinct agencies."
},
"total_dataflows": {
"type": "number",
"description": "Total number of dataflows across all agencies."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true
}
}None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Search OECD dataflows by keyword or theme, matching each query token at the start of a word in dataflow names and descriptions, with name matches ranked first. Returns flow_ref identifiers, names, and agency IDs for use with oecd_get_dataset_info.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum number of results to return. Default 20; a larger value returns at most 2,000 and says so. |
| query * | string | Keyword or phrase to search for in dataflow names and descriptions — e.g. "GDP", "house prices", "TiVA". Every whitespace-separated token must start a word in the name or description, ignoring case: "price" matches "Prices" and "tiva" matches "(TiVA)", but "tiva" does not match "activation". A word … |
| offset | integer | Zero-based index of the first match to return within the ranked match list, applied before limit. Page through results past the limit by advancing it; an offset at or past total_matches returns an empty list. |
| agency_id | string | Optional agency identifier to restrict the search scope — e.g. "OECD.SDD.NAD". Obtain valid agency IDs from oecd_list_agencies. |
{
"name": "oecd_search_datasets",
"title": "Oecd Search Datasets",
"description": "Search OECD dataflows by keyword or theme, matching each query token at the start of a word in dataflow names and descriptions, with name matches ranked first. Returns flow_ref identifiers, names, and agency IDs for use with oecd_get_dataset_info.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"default": 20,
"minimum": 1,
"description": "Maximum number of results to return. Default 20; a larger value returns at most 2,000 and says so."
},
"query": {
"type": "string",
"description": "Keyword or phrase to search for in dataflow names and descriptions — e.g. \"GDP\", \"house prices\", \"TiVA\". Every whitespace-separated token must start a word in the name or description, ignoring case: \"price\" matches \"Prices\" and \"tiva\" matches \"(TiVA)\", but \"tiva\" does not match \"activation\". A word starts after any character that is not a letter or digit, or at a lowercase-to-uppercase step (\"markers\" matches \"RioMarkers\"). A token that opens on such a character, like \"&\" or \"-oecd\", matches anywhere it occurs: \"&\" finds \"R&D\"."
},
"offset": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0,
"description": "Zero-based index of the first match to return within the ranked match list, applied before limit. Page through results past the limit by advancing it; an offset at or past total_matches returns an empty list."
},
"agency_id": {
"type": "string",
"description": "Optional agency identifier to restrict the search scope — e.g. \"OECD.SDD.NAD\". Obtain valid agency IDs from oecd_list_agencies."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"dataflows",
"result_count",
"total_matches",
"offset",
"source"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"no_match",
"agency_not_found",
"rate_limited",
"upstream_timeout",
"upstream_unavailable",
"upstream_redirect",
"upstream_error",
"upstream_unreadable"
],
"description": "Machine-readable failure mode. Declared by this tool: `no_match`: No dataflows matched the search query. `agency_not_found`: The supplied agency_id does not exist in the OECD SDMX catalog. `rate_limited`: OECD throttled the request rate and was still refusing after the retries, or asked for a wait longer than the call's upstream budget had left. `upstream_timeout`: An OECD request ran past OECD_TIMEOUT_MS, or the call's requests and retries together ran past its upstream budget — 50 seconds, or OECD_TIMEOUT_MS when that is longer. `upstream_unavailable`: OECD returned a server fault or was unreachable once the retries ran out. `upstream_redirect`: The configured OECD host answered with a redirect, which this server never follows. `upstream_error`: OECD refused the request with a status this server does not model — an authorization challenge, a rejection from something sitting in front of the API, a request read as malformed or unprocessable (HTTP 400 or 422), or a method it does not implement (HTTP 501). `upstream_unreadable`: OECD answered with a body this server could not read — not JSON, or JSON whose fields do not have the shape SDMX gives them. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"notice": {
"type": "string",
"description": "Present when a requested limit was above the per-call maximum, naming the limit requested and the one served."
},
"offset": {
"type": "number",
"description": "Zero-based index of the first returned result within the ranked match list."
},
"source": {
"type": "string",
"const": "OECD",
"description": "Data source attribution — always \"OECD\"."
},
"dataflows": {
"type": "array",
"items": {
"type": "object",
"required": [
"flow_ref",
"agency_id",
"name",
"matched_in"
],
"properties": {
"name": {
"type": "string",
"description": "Human-readable dataflow name."
},
"flow_ref": {
"type": "string",
"description": "Full flow reference — {agencyID},{dsd_id}@{df_id}, or {agencyID},{df_id} for the few dataflows OECD publishes without a datastructure prefix. Pass through unchanged to oecd_get_dataset_info or oecd_query_dataset."
},
"agency_id": {
"type": "string",
"description": "Publishing agency identifier."
},
"matched_in": {
"enum": [
"name",
"description",
"both"
],
"type": "string",
"description": "Which field carried every query token at a word start — \"name\" or \"description\" when only that one did, \"both\" when each did on its own or the tokens were split across the two."
},
"description": {
"type": "string",
"description": "Plain-text abstract of what the dataset covers, truncated to 240 characters. Matching runs against the full abstract, so a term reported in matched_in may sit past the cut. Absent when OECD publishes no description for the dataflow."
}
},
"description": "A matching OECD dataflow entry.",
"additionalProperties": false
},
"description": "Matching dataflows for the requested page, up to the requested limit, ranked in three tiers: the name carries every token; the tokens are split across name and description; the description alone carries every token. Catalog order holds within each tier."
},
"totalCount": {
"type": "number",
"description": "Total dataflows matching the query, disclosed when matches remain beyond the returned page."
},
"result_count": {
"type": "number",
"description": "Number of results returned (may be less than total_matches)."
},
"total_matches": {
"type": "number",
"description": "Total dataflows matching the query before applying offset and limit."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true
}
}Fetch a dataflow's dimensions, their order, and how to construct a query key. Returns per-dimension names, codelist references, and position in the dot-delimited key. Required before calling oecd_query_dataset to understand key structure.
| Parameter | Type | Description |
|---|---|---|
| flow_ref * | string | Full flow reference, either {agencyID},{dsd_id}@{df_id} — e.g. "OECD.SDD.NAD,DSD_NAAG@DF_NAAG_I" — or the bare {agencyID},{df_id} form OECD uses for the few dataflows published without a datastructure prefix. Obtain from oecd_search_datasets. |
{
"name": "oecd_get_dataset_info",
"title": "Oecd Get Dataset Info",
"description": "Fetch a dataflow's dimensions, their order, and how to construct a query key. Returns per-dimension names, codelist references, and position in the dot-delimited key. Required before calling oecd_query_dataset to understand key structure.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"flow_ref"
],
"properties": {
"flow_ref": {
"type": "string",
"description": "Full flow reference, either {agencyID},{dsd_id}@{df_id} — e.g. \"OECD.SDD.NAD,DSD_NAAG@DF_NAAG_I\" — or the bare {agencyID},{df_id} form OECD uses for the few dataflows published without a datastructure prefix. Obtain from oecd_search_datasets."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"flow_ref",
"dimensions",
"key_example",
"source"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"invalid_flow_ref",
"dataflow_not_found",
"rate_limited",
"upstream_timeout",
"upstream_unavailable",
"upstream_redirect",
"upstream_error",
"upstream_unreadable"
],
"description": "Machine-readable failure mode. Declared by this tool: `invalid_flow_ref`: The flow_ref parameter matches neither the {agencyID},{dsd_id}@{df_id} nor the {agencyID},{df_id} format. `dataflow_not_found`: OECD publishes no dataflow under the provided flow_ref, or the dataflow resolves to no datastructure. `rate_limited`: OECD throttled the request rate and was still refusing after the retries, or asked for a wait longer than the call's upstream budget had left. `upstream_timeout`: An OECD request ran past OECD_TIMEOUT_MS, or the call's requests and retries together ran past its upstream budget — 50 seconds, or OECD_TIMEOUT_MS when that is longer. `upstream_unavailable`: OECD returned a server fault or was unreachable once the retries ran out. `upstream_redirect`: The configured OECD host answered with a redirect, which this server never follows. `upstream_error`: OECD refused the request with a status this server does not model — an authorization challenge, a rejection from something sitting in front of the API, a request read as malformed or unprocessable (HTTP 400 or 422), or a method it does not implement (HTTP 501). `upstream_unreadable`: OECD answered with a body this server could not read — not JSON, or JSON whose fields do not have the shape SDMX gives them. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"source": {
"type": "string",
"const": "OECD",
"description": "Data source attribution — always \"OECD\"."
},
"flow_ref": {
"type": "string",
"description": "The resolved flow reference."
},
"dimensions": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"name",
"position"
],
"properties": {
"id": {
"type": "string",
"description": "Dimension identifier — e.g. REF_AREA."
},
"name": {
"type": "string",
"description": "Concept name for the dimension — e.g. \"Reference area\" for REF_AREA. Repeats the id when OECD publishes no concept for it."
},
"position": {
"type": "number",
"description": "1-based position in the dot-delimited key. Segment at this position corresponds to this dimension."
},
"codelist_ref": {
"type": "string",
"description": "Codelist reference in the form {agencyID},{codelistID} — use with oecd_get_dimension_values."
}
},
"description": "A dataflow dimension with its key position and codelist reference.",
"additionalProperties": false
},
"description": "Dimensions in ascending position order."
},
"key_example": {
"type": "string",
"description": "Example dot-delimited key with wildcards — each dot corresponds to one dimension in position order. Empty segments are wildcards. Replace with actual codes from oecd_get_dimension_values."
},
"time_dimension": {
"type": "object",
"required": [
"id",
"name",
"position"
],
"properties": {
"id": {
"type": "string",
"description": "Time dimension identifier — typically TIME_PERIOD."
},
"name": {
"type": "string",
"description": "Concept name for the time dimension, repeating the id when none is published."
},
"position": {
"type": "number",
"description": "Position after all regular dimensions."
}
},
"description": "Time dimension — used for start_period/end_period filtering in oecd_query_dataset.",
"additionalProperties": false
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true
}
}Fetch the valid codes and labels for one dimension of a dataflow. Use to resolve human-readable names (countries, measures) to SDMX codes before querying with oecd_query_dataset. Pass query to match a code or label by substring — codelists run to a thousand-plus entries, and the response is a page of at most limit codes either way. A codelist is shared across dataflows and can list codes this one holds no data for: pass available_only to list only the codes with data, or key to list the codes with data given the key's other segments — a structure read, never a data download.
| Parameter | Type | Description |
|---|---|---|
| key | string | Dot-delimited key in the oecd_query_dataset form, one segment per dimension in the order oecd_get_dataset_info gives — empty for a wildcard, "+" between codes, or "all". Lists the codes of this dimension that have data given the key's other segments, so pass the key you plan to query. Implies availa… |
| limit | integer | Maximum codes to return. Default 50; a larger value returns at most 10,000 and says so. |
| query | string | Case-insensitive substring matched against both the code and its label, so "PA" and "percent" each reach the code "PA" / "Percent per annum". Omit to page the whole codelist. |
| offset | integer | Zero-based index of the first code to return within the matching list, applied before limit. Advance it to page; an offset past the last match returns an empty page. |
| flow_ref * | string | Full flow reference — e.g. "OECD.SDD.NAD,DSD_NAAG@DF_NAAG_I", or the bare "OECD.TAD.ARP,DF_AEI2024_DASHBOARD" form for a dataflow published without a datastructure prefix. Obtain from oecd_search_datasets. |
| dimension_id * | string | Dimension identifier to fetch codes for — e.g. "REF_AREA" or "MEASURE". Obtain valid dimension IDs from oecd_get_dataset_info. |
| available_only | boolean | List only the codes of this dimension that have data in this dataflow, from OECD's availability record, with the time_range and observation_count they cover. Applied before query, offset, and limit. Default false: the whole codelist. |
{
"name": "oecd_get_dimension_values",
"title": "Oecd Get Dimension Values",
"description": "Fetch the valid codes and labels for one dimension of a dataflow. Use to resolve human-readable names (countries, measures) to SDMX codes before querying with oecd_query_dataset. Pass query to match a code or label by substring — codelists run to a thousand-plus entries, and the response is a page of at most limit codes either way. A codelist is shared across dataflows and can list codes this one holds no data for: pass available_only to list only the codes with data, or key to list the codes with data given the key's other segments — a structure read, never a data download.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"flow_ref",
"dimension_id"
],
"properties": {
"key": {
"type": "string",
"description": "Dot-delimited key in the oecd_query_dataset form, one segment per dimension in the order oecd_get_dataset_info gives — empty for a wildcard, \"+\" between codes, or \"all\". Lists the codes of this dimension that have data given the key's other segments, so pass the key you plan to query. Implies available_only."
},
"limit": {
"type": "integer",
"default": 50,
"minimum": 1,
"description": "Maximum codes to return. Default 50; a larger value returns at most 10,000 and says so."
},
"query": {
"type": "string",
"description": "Case-insensitive substring matched against both the code and its label, so \"PA\" and \"percent\" each reach the code \"PA\" / \"Percent per annum\". Omit to page the whole codelist."
},
"offset": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0,
"description": "Zero-based index of the first code to return within the matching list, applied before limit. Advance it to page; an offset past the last match returns an empty page."
},
"flow_ref": {
"type": "string",
"description": "Full flow reference — e.g. \"OECD.SDD.NAD,DSD_NAAG@DF_NAAG_I\", or the bare \"OECD.TAD.ARP,DF_AEI2024_DASHBOARD\" form for a dataflow published without a datastructure prefix. Obtain from oecd_search_datasets."
},
"dimension_id": {
"type": "string",
"description": "Dimension identifier to fetch codes for — e.g. \"REF_AREA\" or \"MEASURE\". Obtain valid dimension IDs from oecd_get_dataset_info."
},
"available_only": {
"type": "boolean",
"default": false,
"description": "List only the codes of this dimension that have data in this dataflow, from OECD's availability record, with the time_range and observation_count they cover. Applied before query, offset, and limit. Default false: the whole codelist."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"flow_ref",
"dimension_id",
"codes",
"code_count",
"available_only",
"source"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"codes": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"name"
],
"properties": {
"id": {
"type": "string",
"description": "SDMX code — use in the dimension key for oecd_query_dataset."
},
"name": {
"type": "string",
"description": "Human-readable label for the code — the code itself for a code with data that the codelist does not list."
}
},
"description": "A valid SDMX code and its human-readable label.",
"additionalProperties": false
},
"description": "The requested page of codes, after available_only, query, offset, and limit are applied."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"invalid_flow_ref",
"dataflow_not_found",
"dimension_not_found",
"invalid_key",
"rate_limited",
"upstream_timeout",
"upstream_unavailable",
"upstream_redirect",
"upstream_error",
"upstream_unreadable"
],
"description": "Machine-readable failure mode. Declared by this tool: `invalid_flow_ref`: The flow_ref parameter matches neither the {agencyID},{dsd_id}@{df_id} nor the {agencyID},{df_id} format. `dataflow_not_found`: The flow_ref does not correspond to a known dataflow. `dimension_not_found`: The dimension_id names no dimension of this dataflow's key — its time dimension included, which has no codelist. `invalid_key`: The key holds a character outside the SDMX key set, or fewer dot-delimited segments than the dataflow has dimensions. `rate_limited`: OECD throttled the request rate and was still refusing after the retries, or asked for a wait longer than the call's upstream budget had left. `upstream_timeout`: An OECD request ran past OECD_TIMEOUT_MS, or the call's requests and retries together ran past its upstream budget — 50 seconds, or OECD_TIMEOUT_MS when that is longer. `upstream_unavailable`: OECD returned a server fault or was unreachable once the retries ran out. `upstream_redirect`: The configured OECD host answered with a redirect, which this server never follows. `upstream_error`: OECD refused the request with a status this server does not model — an authorization challenge, a rejection from something sitting in front of the API, a request read as malformed or unprocessable (HTTP 400 or 422), or a method it does not implement (HTTP 501). `upstream_unreadable`: OECD answered with a body this server could not read — not JSON, or JSON whose fields do not have the shape SDMX gives them — or a datastructure naming a codelist outside the SDMX character set. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"notice": {
"type": "string",
"description": "Present when the page needs explaining — a limit above the per-call maximum, availability that could not be read, a key that matches no series or pins a code that matches only by letter case, a dimension with no codelist, a query that matched nothing, or codes beyond the page. One string when several apply; states how to reach the rest."
},
"source": {
"type": "string",
"const": "OECD",
"description": "Data source attribution — always \"OECD\"."
},
"flow_ref": {
"type": "string",
"description": "The flow reference this dimension belongs to."
},
"code_count": {
"type": "number",
"description": "Number of codes in this page — not the size of the dimension's codelist."
},
"time_range": {
"type": "object",
"required": [
"start",
"end"
],
"properties": {
"end": {
"type": "string",
"description": "Last day the observations cover, YYYY-MM-DD, inclusive."
},
"start": {
"type": "string",
"description": "First day the observations cover, YYYY-MM-DD, inclusive."
}
},
"description": "Span of the observations under key (the whole dataflow without one). Present when available_only applied and some series matches.",
"additionalProperties": false
},
"totalCount": {
"type": "number",
"description": "Codes matching before offset and limit, disclosed when the page does not cover them all."
},
"dimension_id": {
"type": "string",
"description": "The dimension whose codes are listed."
},
"available_only": {
"type": "boolean",
"description": "True when codes holds only the codes with data, as OECD records them. False for the whole codelist, including when availability was asked for and could not be read — the notice then says why."
},
"effectiveQuery": {
"type": "string",
"description": "The substring filter as applied. Absent when the whole codelist was paged."
},
"observation_count": {
"type": "number",
"description": "Observations under key (the whole dataflow without one), as OECD counts them. Present when available_only applied and OECD reported a count."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true
}
}Fetch observations from an OECD dataflow filtered by a dimension key and optional time range. Returns one row per observation, sorted by dimension code and then period, carrying the dimensions and attributes that vary — each label with its SDMX code beside it as <ID>_code — and values already scaled by the unit multiplier; the components holding one value across the whole result come back once, in constant_columns. Large multi-country time-series spill to a DataCanvas table holding every column, codes included — inspect columns with oecd_dataframe_describe, then query the full table with SQL using oecd_dataframe_query; without DataCanvas every row still comes back, but the rendered table stops at a preview slice. Call oecd_get_dataset_info first to learn the dimension order for constructing the key.
| Parameter | Type | Description |
|---|---|---|
| key * | string | Dot-delimited dimension key matching the dimension order from oecd_get_dataset_info. Empty segments are wildcards; "+" separates multiple values per segment. Example: "A.USA+DEU.B1GQ.." — Annual, USA or Germany, GDP, all remaining dimensions. |
| flow_ref * | string | Full flow reference — e.g. "OECD.SDD.NAD,DSD_NAAG@DF_NAAG_I", or the bare "OECD.TAD.ARP,DF_AEI2024_DASHBOARD" form for a dataflow published without a datastructure prefix. Obtain from oecd_search_datasets and pass it through unchanged. |
| canvas_id | string | Canvas ID from a prior oecd_query_dataset call — exactly 10 characters of letters, digits, hyphens, and underscores — to stage this result alongside that one if it spills; a result that fits inline comes back inline and leaves that canvas unchanged. Omit to let the server mint a canvas if this resul… |
| end_period | string | End of the time range — ISO period code such as "2023" or "2023-Q4". Omit to include up to the latest available period. |
| start_period | string | Start of the time range — ISO period code such as "2010", "2010-Q1", or "2010-01". Omit to include all history (may produce very large results). |
{
"name": "oecd_query_dataset",
"title": "Oecd Query Dataset",
"description": "Fetch observations from an OECD dataflow filtered by a dimension key and optional time range. Returns one row per observation, sorted by dimension code and then period, carrying the dimensions and attributes that vary — each label with its SDMX code beside it as <ID>_code — and values already scaled by the unit multiplier; the components holding one value across the whole result come back once, in constant_columns. Large multi-country time-series spill to a DataCanvas table holding every column, codes included — inspect columns with oecd_dataframe_describe, then query the full table with SQL using oecd_dataframe_query; without DataCanvas every row still comes back, but the rendered table stops at a preview slice. Call oecd_get_dataset_info first to learn the dimension order for constructing the key.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"flow_ref",
"key"
],
"properties": {
"key": {
"type": "string",
"description": "Dot-delimited dimension key matching the dimension order from oecd_get_dataset_info. Empty segments are wildcards; \"+\" separates multiple values per segment. Example: \"A.USA+DEU.B1GQ..\" — Annual, USA or Germany, GDP, all remaining dimensions."
},
"flow_ref": {
"type": "string",
"description": "Full flow reference — e.g. \"OECD.SDD.NAD,DSD_NAAG@DF_NAAG_I\", or the bare \"OECD.TAD.ARP,DF_AEI2024_DASHBOARD\" form for a dataflow published without a datastructure prefix. Obtain from oecd_search_datasets and pass it through unchanged."
},
"canvas_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{10}$",
"description": "Canvas ID from a prior oecd_query_dataset call — exactly 10 characters of letters, digits, hyphens, and underscores — to stage this result alongside that one if it spills; a result that fits inline comes back inline and leaves that canvas unchanged. Omit to let the server mint a canvas if this result needs one; a canvas_id comes back only when the result was large enough to spill."
},
"end_period": {
"type": "string",
"description": "End of the time range — ISO period code such as \"2023\" or \"2023-Q4\". Omit to include up to the latest available period."
},
"start_period": {
"type": "string",
"description": "Start of the time range — ISO period code such as \"2010\", \"2010-Q1\", or \"2010-01\". Omit to include all history (may produce very large results)."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"rows",
"row_count",
"constant_columns",
"query_flow_ref",
"query_key",
"source"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"rows": {
"type": "array",
"items": {
"type": "object",
"properties": {},
"description": "Decoded observation row: \"value\" — the observation already multiplied by \"value_scale\", the power of ten from UNIT_MULT (1 when the dataflow declares no multiplier; divide value by it for the figure as OECD published it) — plus one key per dimension and attribute that varies across the result (e.g. REF_AREA, TIME_PERIOD, OBS_STATUS), holding its human-readable label, with \"<ID>_code\" beside each coded one (REF_AREA: \"Germany\", REF_AREA_code: \"DEU\"). TIME_PERIOD and uncoded attributes carry no _code key, since their value is the code. An attribute with no value on this row is omitted. Components holding one value on every row are in constant_columns instead.",
"additionalProperties": {}
},
"description": "Observation rows, sorted by each dimension's code in key order with TIME_PERIOD last. Every row of the result when truncated is absent; the leading preview slice when truncated is true — query the canvas table for the rest."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"invalid_flow_ref",
"dataflow_not_found",
"no_results",
"invalid_key",
"invalid_period",
"rate_limited",
"download_limit",
"canvas_not_found",
"upstream_timeout",
"upstream_unavailable",
"upstream_redirect",
"upstream_error",
"upstream_unreadable"
],
"description": "Machine-readable failure mode. Declared by this tool: `invalid_flow_ref`: The flow_ref parameter matches neither the {agencyID},{dsd_id}@{df_id} nor the {agencyID},{df_id} format. `dataflow_not_found`: The flow_ref does not correspond to a known OECD dataflow. `no_results`: The dataflow exists but no observations matched the key and time range. `invalid_key`: The key holds a character outside the SDMX key set, or OECD rejected it — the wrong number of segments, or an unsupported format. `invalid_period`: OECD could not parse start_period or end_period. `rate_limited`: OECD throttled the request rate and was still refusing after the retries, or asked for a wait longer than the call's upstream budget had left. `download_limit`: OECD refused the query for exceeding its data-download or data-range limit. `canvas_not_found`: The canvas_id has expired or was never created. It is checked before anything is fetched from OECD. `upstream_timeout`: An OECD request ran past OECD_TIMEOUT_MS, or the call's requests and retries together ran past its upstream budget — 50 seconds, or OECD_TIMEOUT_MS when that is longer. `upstream_unavailable`: OECD returned a server fault or was unreachable once the retries ran out. `upstream_redirect`: The configured OECD host answered with a redirect, which this server never follows. `upstream_error`: OECD refused the request with a status this server does not model — an authorization challenge, a rejection from something sitting in front of the API, a request read as malformed, or a method it does not implement (HTTP 501). `upstream_unreadable`: OECD answered with a body this server could not read — not JSON, or JSON whose fields do not have the shape SDMX gives them. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"notice": {
"type": "string",
"description": "How to inspect and query the staged result, including its canvas_id and table name; present only after a spill."
},
"source": {
"type": "string",
"const": "OECD",
"description": "Data source attribution — always \"OECD\"."
},
"canvas_id": {
"type": "string",
"description": "Canvas handle for the staged result. Present only when DataCanvas is configured and the result exceeded the inline budget; absent when DataCanvas is off, and absent when it is on but the result fit inline. Pass to oecd_dataframe_query or oecd_dataframe_describe."
},
"query_key": {
"type": "string",
"description": "Dimension key used in this query."
},
"row_count": {
"type": "number",
"description": "Total rows in the result (or on the canvas when truncated)."
},
"truncated": {
"type": "boolean",
"description": "True when rows is a preview slice and the full result was staged on DataCanvas; omitted entirely (never false) when rows holds the complete result. Use oecd_dataframe_query with the canvas_id for analytics over the full set. A complete rows never means a complete rendered table — content_table_capped reports that separately."
},
"table_name": {
"type": "string",
"description": "Canvas table name holding the full result — present when canvas_id is set. Inspect columns with oecd_dataframe_describe, then query this table with SQL using oecd_dataframe_query."
},
"query_flow_ref": {
"type": "string",
"description": "Flow reference used in this query."
},
"constant_columns": {
"type": "object",
"description": "Each dimension and attribute holding one value on every row of the whole result — the staged canvas table included, not only the rows returned here — keyed by component ID in structure order: dimensions in key order, then attributes. These components are left out of rows. Empty when every component varies.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "object",
"required": [
"code",
"label"
],
"properties": {
"code": {
"type": "string",
"description": "SDMX code of the value — for TIME_PERIOD and an uncoded attribute, the published value itself."
},
"label": {
"type": "string",
"description": "Human-readable label of the value."
}
},
"description": "The one value this component holds on every row.",
"additionalProperties": false
}
},
"query_end_period": {
"type": "string",
"description": "End period filter applied in this query, if any."
},
"content_table_rows": {
"type": "number",
"description": "Rows the rendered table shows when content_table_capped is true."
},
"query_start_period": {
"type": "string",
"description": "Start period filter applied in this query, if any."
},
"content_table_capped": {
"type": "boolean",
"description": "True when the rendered table shows only the leading rows of the result. Distinct from truncated: nothing was staged anywhere, and structuredContent.rows still holds every row. To shrink the result itself, name fewer values per key segment or set a narrower start_period / end_period; to reach the full set as a queryable table instead, run with CANVAS_PROVIDER_TYPE=duckdb and follow up with oecd_dataframe_query."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true
}
}List tables and columns staged on a DataCanvas by a prior oecd_query_dataset spill. Call this before oecd_dataframe_query to discover exact table and column names for SQL. Unavailable when the server runs with DataCanvas disabled.
| Parameter | Type | Description |
|---|---|---|
| canvas_id * | string | Canvas ID returned by oecd_query_dataset — exactly 10 characters of letters, digits, hyphens, and underscores. Identifies the DataCanvas session holding the staged observation tables. |
{
"name": "oecd_dataframe_describe",
"title": "Oecd Dataframe Describe",
"description": "List tables and columns staged on a DataCanvas by a prior oecd_query_dataset spill. Call this before oecd_dataframe_query to discover exact table and column names for SQL. Unavailable when the server runs with DataCanvas disabled.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"canvas_id"
],
"properties": {
"canvas_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{10}$",
"description": "Canvas ID returned by oecd_query_dataset — exactly 10 characters of letters, digits, hyphens, and underscores. Identifies the DataCanvas session holding the staged observation tables."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"canvas_id",
"tables",
"table_count"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"canvas_disabled",
"canvas_not_found"
],
"description": "Machine-readable failure mode. Declared by this tool: `canvas_disabled`: DataCanvas is not configured — CANVAS_PROVIDER_TYPE=none. `canvas_not_found`: The canvas_id has expired or was never created. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"tables": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"kind",
"row_count",
"columns"
],
"properties": {
"kind": {
"type": "string",
"description": "Object kind: \"table\" or \"view\"."
},
"name": {
"type": "string",
"description": "Table name — use in SQL FROM clauses."
},
"columns": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"type"
],
"properties": {
"name": {
"type": "string",
"description": "Column name."
},
"type": {
"type": "string",
"description": "DuckDB column type — e.g. VARCHAR, DOUBLE, BIGINT."
}
},
"description": "A column in the table with its DuckDB type.",
"additionalProperties": false
},
"description": "Columns in the table."
},
"row_count": {
"type": "number",
"description": "Number of rows in the table."
}
},
"description": "A canvas table or view with row count and column schema.",
"additionalProperties": false
},
"description": "Tables and views staged on this canvas."
},
"canvas_id": {
"type": "string",
"description": "The canvas ID whose tables are listed."
},
"table_count": {
"type": "number",
"description": "Total number of tables and views."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}Run a read-only SQL SELECT against OECD observation tables staged on a DataCanvas by oecd_query_dataset. Call oecd_dataframe_describe first to discover exact table and column names, then use this tool for aggregation, filtering, GROUP BY, JOIN, and window functions. Returns up to `limit` rows (default 100, at most 1,000 per call); truncated: true marks a result with more rows than came back, and its notice says how to reach the rest. A query still running after 30 seconds is stopped. Unavailable when the server runs with DataCanvas disabled.
| Parameter | Type | Description |
|---|---|---|
| sql * | string | Read-only SELECT statement. Reference tables by the names returned by oecd_dataframe_describe. Only SELECT statements are allowed — DDL, DML, and file-reading functions are rejected. |
| limit | integer | Most rows to return; for more than one call returns, aggregate in SQL or page with ORDER BY … LIMIT … OFFSET. Default 100; a larger value returns at most 1,000 and says so. |
| canvas_id * | string | Canvas ID returned by oecd_query_dataset — exactly 10 characters of letters, digits, hyphens, and underscores. Identifies the DataCanvas session holding the observation tables. |
{
"name": "oecd_dataframe_query",
"title": "Oecd Dataframe Query",
"description": "Run a read-only SQL SELECT against OECD observation tables staged on a DataCanvas by oecd_query_dataset. Call oecd_dataframe_describe first to discover exact table and column names, then use this tool for aggregation, filtering, GROUP BY, JOIN, and window functions. Returns up to `limit` rows (default 100, at most 1,000 per call); truncated: true marks a result with more rows than came back, and its notice says how to reach the rest. A query still running after 30 seconds is stopped. Unavailable when the server runs with DataCanvas disabled.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"canvas_id",
"sql"
],
"properties": {
"sql": {
"type": "string",
"description": "Read-only SELECT statement. Reference tables by the names returned by oecd_dataframe_describe. Only SELECT statements are allowed — DDL, DML, and file-reading functions are rejected."
},
"limit": {
"type": "integer",
"default": 100,
"minimum": 1,
"description": "Most rows to return; for more than one call returns, aggregate in SQL or page with ORDER BY … LIMIT … OFFSET. Default 100; a larger value returns at most 1,000 and says so."
},
"canvas_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{10}$",
"description": "Canvas ID returned by oecd_query_dataset — exactly 10 characters of letters, digits, hyphens, and underscores. Identifies the DataCanvas session holding the observation tables."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"rows",
"row_count",
"column_names"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"rows": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"description": "Result rows in query order: at most limit rows, and at most 1,000 per call. When truncated is true the result has more rows than these."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"canvas_disabled",
"canvas_not_found",
"table_not_found",
"invalid_sql",
"sql_execution_error",
"query_timeout"
],
"description": "Machine-readable failure mode. Declared by this tool: `canvas_disabled`: DataCanvas is not configured — CANVAS_PROVIDER_TYPE=none. `canvas_not_found`: The canvas_id has expired or was never created. `table_not_found`: The SQL names a table this canvas does not hold — it expired, was dropped, or the name is wrong. `invalid_sql`: The SQL is not a valid SELECT statement or contains disallowed operations. `sql_execution_error`: The SQL parsed and ran, then failed on the staged observation data — a conversion, an invalid input, a value out of range, or an integer division or modulo by zero. `query_timeout`: The query was still running after 30 seconds and was stopped. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"notice": {
"type": "string",
"description": "Present when a requested limit was above the per-call maximum (naming the limit requested and the one served), or when truncated is true (naming the ways to reach the rows not returned)."
},
"row_count": {
"type": "number",
"description": "Number of rows returned — the length of rows, never the size of the full result."
},
"truncated": {
"type": "boolean",
"description": "True when the result has more rows than this call returned — cut at limit; the notice says how to reach the rest. Omitted (never false) when rows is the complete result."
},
"column_names": {
"type": "array",
"items": {
"type": "string"
},
"description": "Column names in the result, in order."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}OECD Statistics MCP server — keyless access to 1,500+ OECD dataflows via SDMX 2.1. Workflow: oecd_list_agencies → oecd_search_datasets → oecd_get_dataset_info → oecd_get_dimension_values (available_only lists only the codes with data) → oecd_query_dataset. Each coded component carries <ID>_code beside its label; components that hold one value across a result arrive once in constant_columns. Large results (multi-country time-series) spill to DataCanvas; use oecd_dataframe_describe + oecd_dataframe_query for SQL analytics. The oecd-guide skill (skill://oecd-guide/SKILL.md) covers key construction, confirming which series a dataflow carries, and reading results without mixing breakdowns or aggregates. All data is attributed to OECD per their terms of use.
Names, descriptions and schemas were written by the server and are shown as data.
Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators.