GnistAI GnistAI
Log in

OECD Statistics

OECD economic statistics — GDP, trade, education, health, labour, and environment data across 38+ member economies.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 6 tools tools 6 6 Economics

Data source: OECD SDMX REST API

MCP 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"}}}'

API REST API

API Root https://context.gnist.ai/rest/oecd/

6 endpoints available:

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())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc oecd

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (6)

search_datasets
Search the OECD dataset catalog by keyword.
ParameterTypeRequiredDescription
querystringrequiredSearch term for OECD datasets (e.g. "gdp", "productivity", "education", "trade", "labour", "health").
limitintegeroptionalNumber of results to return (1-50, default 20). (default: 20)
list_datasets
List available OECD datasets, optionally filtered by topic.
ParameterTypeRequiredDescription
topicanyoptionalOptional topic filter (e.g. "health", "labour", "education", "environment"). Omit to list all.
limitintegeroptionalMaximum datasets to return (1-200, default 50). (default: 50)
get_dataset_structure
Get the dimension structure of an OECD dataset.
ParameterTypeRequiredDescription
dataflowstringrequiredOECD dataflow identifier from search_datasets (e.g. "OECD.SDD.TPS,DSD_PDB@DF_PDB_LV,1.0").
get_data
Fetch data from an OECD dataset.
ParameterTypeRequiredDescription
dataflowstringrequiredOECD dataflow identifier (e.g. "OECD.SDD.TPS,DSD_PDB@DF_PDB_LV,1.0"). Use search_datasets to find IDs.
key_filteranyoptionalSDMX dimension key (dot-separated, * for wildcard, e.g. "A.USA.*.*.*"). Use get_dataset_structure to find valid values.
last_n_observationsanyoptionalReturn only the last N time periods (1-100).
limitintegeroptionalMaximum observations to return (1-1000, default 200). (default: 200)
compare_countries
Compare data across countries for a given OECD dataset.
ParameterTypeRequiredDescription
dataflowstringrequiredOECD dataflow identifier (e.g. "OECD.SDD.TPS,DSD_PDB@DF_PDB_LV,1.0").
country_codeslist[string]requiredISO alpha-3 country codes to compare (e.g. ["USA", "DEU", "JPN", "NOR"]). Maximum 20.
last_n_observationsintegeroptionalReturn last N time periods per country (1-100, default 5). (default: 5)
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related