oecd-mcp-server
Search, explore, and query 1,500+ OECD statistical datasets (national accounts, employment, trade, education, health) from the OECD SDMX API via MCP. STDIO or Streamable HTTP.
Install / Use
claude mcp add cyanheads -- npx -y github:cyanheads/oecd-mcp-serverIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
MarketingSupported Platforms
Tags
Our assessment of oecd-mcp-server
oecd-mcp-server scores 83/100 on our quality scale, 472nd of 589 Marketing skills we index.
Its MCP Server is 15 KB long, well organised into 24 sections with 5 code examples: a thorough specification that gives an agent plenty to work with.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 4 days ago, so oecd-mcp-server is actively maintained.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 92/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
oecd-mcp-server compared with similar skills
All 4 of these similar skills score higher than oecd-mcp-server; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| oecd-mcp-server (this skill)by cyanheads | 83 | 3 | 4d ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 107.8k | 1d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.6k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.8k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 92.4k | today | MCP Server |
Frequently asked questions
- How do I install oecd-mcp-server?
- Run
claude mcp add cyanheads -- npx -y github:cyanheads/oecd-mcp-server. The install tabs above show the steps for each supported agent. - Which AI agents does oecd-mcp-server work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is oecd-mcp-server safe to use?
- It is Apache-2.0-licensed and scores 92/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is oecd-mcp-server still maintained?
- The repository was last updated 4 days ago, so oecd-mcp-server is actively maintained.
Skill content
View source on GitHubPublic Hosted Server: https://oecd.caseyjhand.com/mcp
</div>Overview
OECD statistics across 1,500+ datasets on national accounts, employment, trade, education, and health. Search datasets, inspect their dimensions, query observations, and run SQL over large multi-country time series. No API key required.
Tools
Five discovery and data tools plus three DataCanvas tools for large query results:
| Tool | Description |
|:-----|:------------|
| oecd_list_agencies | List OECD SDMX agencies with their directorate and the number of dataflows each publishes |
| oecd_search_datasets | Search 1,500+ OECD dataflows by keyword or theme |
| oecd_get_dataset_info | Fetch a dataflow's dimensions, key order, and codelist references |
| oecd_get_dimension_values | Fetch valid codes and labels for one dimension (countries, measures, frequencies) |
| oecd_query_dataset | Fetch observations filtered by dimension key and time range; spills large results to DataCanvas |
| oecd_dataframe_describe | List DataCanvas tables and columns staged by a prior oecd_query_dataset spill |
| oecd_dataframe_query | Run a read-only SQL SELECT against DataCanvas tables |
| oecd_dataframe_drop | Drop a staged DataCanvas table or view once the analysis is done — opt-in via OECD_DATAFRAME_DROP_ENABLED=true |
Resources
| Resource | Description |
|:---------|:------------|
| oecd://dataflow/{agency_id}/{flow_id} | Dimension metadata for a single OECD dataflow — same content as oecd_get_dataset_info |
All resource data is also reachable via tools. Use oecd_get_dataset_info for the same content.
Skill
| Skill | Description |
|:------|:------------|
| oecd-guide | Building SDMX keys, confirming which series a dataflow carries, and reading results without mixing breakdowns, units, or country aggregates. Served over MCP at skill://oecd-guide/SKILL.md |
Capability reference
oecd_list_agencies <sub>tool</sub>
- No inputs; returns every agency ID (e.g.
OECD.SDD.NAD) with its directorate name and dataflow count, sorted by count - Publishers outside OECD that ship dataflows through the same catalog (
ESTAT,IAEG-SDGs) carry no directorate
oecd_search_datasets <sub>tool</sub>
querytoken-matched across dataflow names and descriptions; optionalagency_idscope;limit(1–100) andoffsetpaging withtotal_matches- Each result carries its
flow_ref— the identifier every other tool takes — andmatched_in(name,description, orboth)
oecd_get_dataset_info <sub>tool</sub>
- Takes a
flow_ref; returns every dimension in key order with its concept name and codelist reference, plus akey_exampleforoecd_query_dataset - Fails
invalid_flow_reffor a string that is not a flow reference anddataflow_not_foundfor one OECD does not publish
oecd_get_dimension_values <sub>tool</sub>
- Takes a
flow_refanddimension_id; optionalquerysubstring-matches both code and label limit(1–500, default 50) andoffsetpage the matches, with the full match count when more remain
oecd_query_dataset <sub>tool</sub>
flow_refplus a dot-delimitedkey(+for multiple values, empty segments as wildcards) and optionalstart_period/end_period- One row per observation with every dimension and attribute as its own column;
valueis pre-multiplied byvalue_scale - Large results spill to DataCanvas with
truncated: true,canvas_id, andtable_name; without a canvas every row stays instructuredContentand only the rendered table is capped (content_table_capped) - A spill includes a
noticenaming the canvas and table: inspect columns withoecd_dataframe_describe, then useoecd_dataframe_queryfor SQL over the full result. Fitting results allocate no new canvas; an explicitcanvas_idis still validated.
oecd_dataframe_describe <sub>tool</sub>
- Takes the
canvas_idoecd_query_datasetreturned; lists each staged table and view with its row count and column names and types
oecd_dataframe_query <sub>tool</sub>
canvas_idplus one read-only SQLSELECT; writes, DDL, and system-catalog access are rejected- Returns rows capped at the canvas row limit, with
row_countreporting the rows returned
oecd_dataframe_drop <sub>tool</sub>
canvas_idplus atable_nameasoecd_dataframe_describelists it; returns the dropped object'skindand theremaining_tables- Opt-in: listed but not callable unless
OECD_DATAFRAME_DROP_ENABLED=true
oecd://dataflow/{agency_id}/{flow_id} <sub>resource</sub>
- Same content as
oecd_get_dataset_info, asapplication/json {flow_id}is{dsd_id}@{df_id}with@encoded as%40(e.g.oecd://dataflow/OECD.SDD.NAD/DSD_NAAG%40DF_NAAG_I), or the bare{df_id}
Features
Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
OECD-specific:
- Keyless access — no API key required; OECD SDMX 2.1 REST API is fully public
- Covers 1,500+ dataflows across 20+ OECD statistical departments (national accounts, employment, inflation, trade, education, health, environment, taxation, inequality)
- Delegated dataflows and codelist revisions resolved end to end — a dataflow OECD catalogues on one service root but defines on another follows the catalog's own link for structure, codes, and observations, and codes come from the revision the datastructure names rather than the endpoint's current latest
AllDimensionsobservation mode — one-pass SDMX-JSON decoding into flat row objects, no nested series key reconstructionoecd_query_datasetmaterializes large observation sets (multi-country time-series) on a DuckDB DataCanvas for in-conversation SQL analytics; theoecd_dataframe_*tools work on it; DataCanvas is on by default andCANVAS_PROVIDER_TYPE=nonedisables it
Agent-friendly output:
- Workflow-aware tool surface —
flow_reffrom search flows directly into info, values, and query tools without reconstruction - Spill signaling —
truncated: true+canvas_idtells the agent to switch to SQL instead of parsing a truncated inline list - Full SDMX decoding server-side — agents see
{ REF_AREA: "United States", MEASURE: "Gross domestic product", UNIT_MULT: "Billions", value: 26054614000000, value_scale: 1000000000 }, not raw index arrays
Getting started
Connect to the hosted instance, no install:
claude mcp add --transport http oecd-mcp-server https://oecd.caseyjhand.com/mcp
Or run it locally:
claude mcp add oecd-mcp-server -- npx -y @cyanheads/oecd-mcp-server
For other clients, add this to the MCP config file:
{
"mcpServers": {
"oecd-mcp-server": {
"command": "npx",
"args": ["-y", "@cyanheads/oecd-mcp-server"]
}
}
}
No API key is needed — OECD SDMX is a free, public API. DataCanvas SQL analytics over large query results is on by default; set CANVAS_PROVIDER_TYPE=none to get capped inline previews instead. For Docker or a source build, see Running the server.
Configuration
All configuration is validated at startup via Zod schemas in src/config/server-config.ts. Key environment variables:
| Variable | Description | Default |
|:---------|:------------|:--------|
| OECD_BASE_URL | OECD SDMX REST API base URL. Must be an https origin that answers directly — no redirect is followed, so a plaintext http:// origin fails instead of being upgraded to https. | https://sdmx.oecd.org/public/rest |
| OECD_TIMEOUT_MS | Per-request timeout in milliseconds. | 30000 |
| CANVAS_PROVIDER_TYPE | Canvas engine. With duckdb, a large oecd_query_dataset result spills to a queryable table instead of just capping the rendered preview; with none, every row still comes back in structuredContent and only the rendered table is capped. | duckdb |
| OECD_DATAFRAME_DROP_ENABLED | Set to true to register oecd_dataframe_drop. Off, the tool is listed as disabled and clients cannot call it. | false |
| MCP_TRANSPORT_TYPE | Transport: stdio or http. | stdio |
| MCP_HTTP_PORT | Port for HTTP server. | 3010 |
| MCP_SESSION_MODE | HTTP session posture: stateful, stateless, or auto. The server declares stateless in source — it keeps no per-session state, and a DataCanvas handle is keyed by canvas_id — so set this only to override that. | stateless |
| MCP_AUTH_MODE | Auth mode: none, jwt, or oauth. | none |
| MCP_LOG_LEVEL | Log level (RFC 5424). | info |
| LOGS_DIR | Directory for log files (Node.js only). | <project-root>/logs |
| LOG_TOOL_FAILURE_PAYLOADS | Log each failed tool call's arguments and result, redacted by key name and capped at LOG_TOOL_FAILURE_PAYLOAD_MAX_BYTES (default 16384). A secret inside a free-form value is not redacted. | false |
| OTEL_ENABLED | Enable OpenTelemetry instrumentation. | false |
See .env.example for the full list of optional overrides.
Running the server
Local development
Requires Bun v1.4.0 or higher (or Node.js v24+).
-
Clone and install:
git clone https://github.com/cyanheads/oecd-mcp-server.git cd oecd-mcp-server && bun install cp .env.example .env # optional — every variable has a default -
Build and run:
# One
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
107.8kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
78.6kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.8kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Scrapling
92.4k🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
