Economics
Data source: OECD SDMX REST API
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/oecd/
claude_desktop_config.json
{
"mcpServers": {
"gnist-oecd": {
"url": "https://context.gnist.ai/mcp/oecd/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/oecd/" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "search_datasets", "arguments": {"query": "example"}}}'
REST API
API Root
https://context.gnist.ai/rest/oecd/
6 endpoints available:
GET /rest/oecd/search_datasetsGET /rest/oecd/list_datasetsGET /rest/oecd/get_dataset_structureGET /rest/oecd/get_dataGET /rest/oecd/compare_countriesGET /rest/oecd/report_feedback
Shell
curl "https://context.gnist.ai/rest/oecd/search_datasets?query=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/oecd/search_datasets",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"query": "example"
},
)
print(resp.json())
Command Line
Command
gc oecd
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (6)
search_datasetsSearch the OECD dataset catalog by keyword.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Search term for OECD datasets (e.g. "gdp", "productivity", "education", "trade", "labour", "health"). |
limit | integer | optional | Number of results to return (1-50, default 20). (default: 20) |
list_datasetsList available OECD datasets, optionally filtered by topic.
| Parameter | Type | Required | Description |
|---|---|---|---|
topic | any | optional | Optional topic filter (e.g. "health", "labour", "education", "environment"). Omit to list all. |
limit | integer | optional | Maximum datasets to return (1-200, default 50). (default: 50) |
get_dataset_structureGet the dimension structure of an OECD dataset.
| Parameter | Type | Required | Description |
|---|---|---|---|
dataflow | string | required | OECD dataflow identifier from search_datasets (e.g. "OECD.SDD.TPS,DSD_PDB@DF_PDB_LV,1.0"). |
get_dataFetch data from an OECD dataset.
| Parameter | Type | Required | Description |
|---|---|---|---|
dataflow | string | required | OECD dataflow identifier (e.g. "OECD.SDD.TPS,DSD_PDB@DF_PDB_LV,1.0"). Use search_datasets to find IDs. |
key_filter | any | optional | SDMX dimension key (dot-separated, * for wildcard, e.g. "A.USA.*.*.*"). Use get_dataset_structure to find valid values. |
last_n_observations | any | optional | Return only the last N time periods (1-100). |
limit | integer | optional | Maximum observations to return (1-1000, default 200). (default: 200) |
compare_countriesCompare data across countries for a given OECD dataset.
| Parameter | Type | Required | Description |
|---|---|---|---|
dataflow | string | required | OECD dataflow identifier (e.g. "OECD.SDD.TPS,DSD_PDB@DF_PDB_LV,1.0"). |
country_codes | list[string] | required | ISO alpha-3 country codes to compare (e.g. ["USA", "DEU", "JPN", "NOR"]). Maximum 20. |
last_n_observations | integer | optional | Return last N time periods per country (1-100, default 5). (default: 5) |
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |