Listed from the MCP registry; nobody on Odel publishes it.

Is this yours? Claim it
MCP server: One MCP server.

ilostat-mcp-server

@cyanheadsMCP server · External

Search ILOSTAT labour indicators, query and compare series, build country profiles, run SQL.

Salary & labor market datav0.4.0Apache-2.0TypeScript
Freeno charge per call

One address for any MCP client. No sign-in needed on this server.

What it does

8 read

Grouped by tool name. At most: creates or changes data: records, files, settings.

What it costs

Free

Odel charges nothing per call. The publisher may charge for its own service.

Tools

8 · grouped by tool name · checked 16 Nov 2026

Read · 8Look things up

  • ilostat_search_indicators
  • ilostat_describe_indicator
  • ilostat_query_indicator
  • ilostat_get_country_profile
  • ilostat_compare_geographies
  • ilostat_list_reference
  • ilostat_dataframe_query
  • ilostat_dataframe_describe
Try it in the Inspector
README14 min read

@cyanheads/ilostat-mcp-server

Search ILOSTAT labour indicators, query and compare series, build country profiles, run SQL via MCP. STDIO or Streamable HTTP.

9 Tools • 1 Skill

Version License Docker MCP SDK npm TypeScript Bun

Install in Claude Desktop Install in Cursor Install in VS Code

Framework

Public Hosted Server: https://ilostat.caseyjhand.com/mcp


Overview

Labour statistics from ILOSTAT, the International Labour Organization's database. Find an indicator, pull observations for countries, regions, and income groups, compare areas, and build a labour-market profile, with every value marked as reported, modelled, or projected. No API key required.

Tools

ToolDescription
ilostat_search_indicatorsSearch the indicator catalog by plain-language terms and filters; each hit lists a dataset ID per available frequency
ilostat_describe_indicatorExplain one dataset: definition, unit and multiplier, breakdown codes in use, covered areas, and how its values are classed
ilostat_query_indicatorFetch observations for up to 3 datasets per call, filtered by area or area group, sex, breakdown codes, source, and period
ilostat_get_country_profileHeadline labour-market figures for one area: latest reported value and latest ILO modelled estimate, side by side
ilostat_compare_geographiesRank areas on one slice of one dataset at a common or latest period, with optional change over N years
ilostat_list_referenceDecode ILOSTAT's code vocabulary: areas, area groups, databases, subjects, sexes, breakdowns, sources, status flags, notes
ilostat_dataframe_describeDescribe a staged df_<id> dataframe by name, or list them all (off under HTTP with auth none), with provenance, coverage, basis counts, and column schema
ilostat_dataframe_queryRun one read-only SQL SELECT over staged dataframes, optionally storing the result as a new one
ilostat_dataframe_dropDrop a staged dataframe before its TTL

ilostat_dataframe_drop is off unless ILOSTAT_DATAFRAME_DROP_ENABLED=true, and CANVAS_PROVIDER_TYPE=none turns off all three dataframe tools.

Skill

SkillDescription
ilostat-guideGates for answering labour-market questions with these tools: choosing reported or ILO modelled data, finding a population group as a breakdown code, one classification version per sum, rates that do not add, source changes and breaks in trends, and SQL over staged dataframes

Ships in skills/ for plugin installs, the npm package, the Docker image, and the .mcpb bundle, and is served over MCP as skill://ilostat-guide/SKILL.md.

Capability reference

ilostat_search_indicators tool

  • Plain-language query (every term must match a word or word prefix; a term no catalog word starts with matches by its stem, so informality finds informal and disabled finds disability; female, women, male, and men match every indicator broken down by sex, and the notice names the sex filter for ilostat_query_indicator; youth, young, and adult match every indicator broken down by age, and the notice says where that band's AGE_* codes come from; case, accents, and labour/labor folded) plus frequency, database, subject, breakdown, measure, and aggregates_only filters; omit query to browse by filters
  • Up to 50 hits per page (default 10; a larger limit is applied as 50, with a notice), continued with next_cursor; each hit is one indicator with a dataset_id per frequency, coverage years, n_ref_area, last_update, and has_aggregates, and facets count the whole match set
  • An unrecognized database, subject, breakdown, or measure code fails as unknown_filter_code

ilostat_describe_indicator tool

  • One dataset_id (UNE_DEAP_SEX_AGE_RT_A) or a bare indicator code, which describes every frequency; an unknown code returns found: false with guidance
  • Definition, unit and its multiplier, frequency variants, breakdowns (sex codes, plus classif1 / classif2 codes with totals marked is_total), default_slice, covered ref_areas, basis_rule, and the first 20 related_datasets with related_total
  • When the SDMX API can't answer, structure_status is unavailable and breakdowns and areas are absent rather than the call failing; the unit keeps the catalog's labels. A failed lookup is remembered for a minute per indicator, so calls during an SDMX outage degrade at once

ilostat_query_indicator tool

  • Up to 100 dataset_ids; the first 3 distinct datasets are queried and the rest come back as remaining_dataset_ids for another call. Filter by ref_areas (up to 300) and/or an area_group, sex, classif1, classif2, sources, and period: one exact time, a time_from / time_to year window, latest_only, or both
  • latest_only keeps each series' own latest period; a request whose full history is too large to read in one call falls back to the latest period per area and dataset, and applied_filters.latest_mode and the notice say so. The fallback is remembered for ILOSTAT_CACHE_TTL_SECONDS, so later pages and repeat calls of that request go straight to it
  • source_selection is best by default, all, or secondary; rows carry source, obs_status, notes, and basis, decoded in legend, and applied_filters echoes every parameter sent
  • Rows come back limit (default 50, at most 5,000) at a time from offset, continued by next_offset. On the first page a result past the staging threshold (ILOSTAT_PREVIEW_CHARS) also stages in full as a df_<id> dataframe, unless it passes ILOSTAT_MAX_ROWS; an unfiltered request over that ceiling fails as request_too_broad, and a page reaching past it as result_too_large
  • A result of more than 5,000 rows is not cached, so each later page re-reads the request from its start; for a large result, SQL over the staged dataframe (dataframes on) or a narrower request is the cheap path
  • When the result was read to its end (summary.complete), summary.areas_without_rows names every requested area that returned no rows, per dataset, as not_covered (outside the dataset's area list) or no_rows, and the notice says the same

ilostat_get_country_profile tool

  • One ref_area with annual data, an ISO3 country (KEN) or an X-coded aggregate (X01 World, regions, income groups), and sex (SEX_T by default, SEX_M, or SEX_F)
  • Nine headline indicators (labour force participation, employment-to-population ratio, unemployment, youth unemployment, youth NEET, informal employment, employment, labour income share, working poverty), each with its latest reported value for that slice and, separately, its latest non-projected modelled estimate
  • A missing reported value stays missing and is listed in reported_missing; aggregates carry modelled values only

ilostat_compare_geographies tool

  • One dataset_id and one slice (sex, classif1, classif2, defaulting to the dataset's totals); areas from ref_areas (up to 300), an area_group, or both, and at least one is required
  • period puts every area at one period; without it, each area gets its latest value within lookback_years (default 10), projections excluded unless include_projections; change_years (1–30) adds each value's change over that span
  • A change carries the earlier value's source, basis, status, and notes, with source_changed, basis_changed, and break_in_series flags; the notice counts the changes that are not like-for-like
  • Rows carry rank, value, period, basis, and source; areas without a value land in missing with a reason, and comparability reports mixed_periods, basis_counts, and distinct_sources
  • Areas come back limit (default 50) at a time from offset in the sort order, continued by next_offset; ranks, missing, and comparability cover every area on every page, and a first page whose comparison passes the staging threshold (ILOSTAT_PREVIEW_CHARS) also stages in full as a df_<id> dataframe

ilostat_list_reference tool

  • topic: ref_areas, area_groups, databases, subjects, sexes, classifications, classification_types, sources, obs_status, notes, or frequencies
  • A text filter or up to 100 exact codes (misses in not_found; exact area_groups lookups list member countries); ref_area narrows sources, and classification_type narrows classifications
  • Up to 500 entries per page (default 50; a larger limit is applied as 500, with a notice), continued with next_cursor

ilostat_dataframe_describe tool

  • Pass one df_XXXXX_XXXXX, or omit name to list every staged dataframe, newest first (listing is off under HTTP with auth none; use the exact name)
  • Each entry carries the producing source_tool and its query_params, datasets, coverage, basis_counts, attribution, created_at / expires_at, row_count, and the column_schema to write SQL against
  • Each dataset keeps its full unit beside unit: unit_measure, unit_type, unit_type_label, unit_multiplier, and unit_multiplier_label; values are never rescaled

ilostat_dataframe_query tool

  • One DuckDB SELECT (joins, aggregates, window functions, CTEs) over df_<id> tables, up to 20,000 characters; writes, DDL, multi-statement SQL, file references and file-reading functions, engine-setting reads, and system catalogs are rejected
  • row_limit caps the rows materialized (default 1,000; capped at 10,000 per call, with row_count_capped flagging a hit) and preview the rows returned inline, which also stop at ILOSTAT_PREVIEW_CHARS; applied_limits echoes the values applied, and BIGINT values arrive as strings
  • register_as stores the full result as a new dataframe with a fresh TTL; a result over 1,000,000 rows fails as register_as_too_large, and evicted names any older dataframes dropped to make room

ilostat_dataframe_drop tool

  • Drops one staged dataframe by name before its TTL; idempotent, with dropped: false when nothing matched
  • Listed only when ILOSTAT_DATAFRAME_DROP_ENABLED=true and dataframes are on; it is the only destructive tool

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.

ILOSTAT-specific:

  • Two keyless ILO APIs: the ILOSTAT data API serves the catalog, the code dictionaries, and observations; the ILO SDMX API serves each dataset's breakdown codes, default slice, covered areas, and unit labels (the unit itself comes from the catalog)
  • The catalog and code dictionaries are held in memory and rechecked every ILOSTAT_CATALOG_REFRESH_HOURS; every code a tool takes is validated against them before a request goes upstream
  • A request pacer per upstream host; a 429 or challenge page reaches the caller as a retryable upstream_busy carrying retryAfter. Data responses of up to 5,000 rows are cached for ILOSTAT_CACHE_TTL_SECONDS
  • Dataframes on by default: a query or comparison whose first page finds it larger than ILOSTAT_PREVIEW_CHARS stages in full as a DuckDB df_<id> table that lives for ILOSTAT_DATASET_TTL_SECONDS, up to 1,000,000 rows in 100 dataframes per tenant (older ones are evicted and named in evicted). With CANVAS_PROVIDER_TYPE=none, or in the .mcpb bundle (no DuckDB binding), results page with next_offset and the notice says they are not staged
  • ILOSTAT data and metadata are published under the ILO Open Access policy as CC BY 4.0; every data response carries an attribution to keep with the numbers

Agent-friendly output:

  • Basis on every value: each row is reported, modelled_estimate, or projection, and results carry basis_counts. The country profile returns reported and modelled values in separate fields and never fills one from the other
  • Provenance and decoding: rows keep source, obs_status, and note codes with a legend that decodes them, and query and comparison responses echo applied_filters, defaults included
  • Misses as data: an unknown dataset returns found: false with guidance, and compared areas without a value land in missing with a typed reason
  • Typed errors: failures carry a reason (unknown_code, request_too_broad, upstream_busy, …) and a recovery hint

Getting started

Public Hosted Instance

A public instance is available at https://ilostat.caseyjhand.com/mcp — no installation required. Point any MCP client at it via Streamable HTTP:

json
{
  "mcpServers": {
    "ilostat-mcp-server": {
      "type": "streamable-http",
      "url": "https://ilostat.caseyjhand.com/mcp"
    }
  }
}

Every caller of the hosted instance shares one request pacer per ILO API and one dataframe workspace, so ilostat_dataframe_describe takes a table's exact name there; listing is off.

Self-Hosted / Local

Add the following to your MCP client configuration file.

json
{
  "mcpServers": {
    "ilostat-mcp-server": {
      "type": "stdio",
      "command": "bunx",
      "args": ["@cyanheads/ilostat-mcp-server@latest"],
      "env": {
        "MCP_TRANSPORT_TYPE": "stdio",
        "MCP_LOG_LEVEL": "info"
      }
    }
  }
}

Or with npx (no Bun required):

json
{
  "mcpServers": {
    "ilostat-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@cyanheads/ilostat-mcp-server@latest"],
      "env": {
        "MCP_TRANSPORT_TYPE": "stdio",
        "MCP_LOG_LEVEL": "info"
      }
    }
  }
}

Or with Docker:

json
{
  "mcpServers": {
    "ilostat-mcp-server": {
      "type": "stdio",
      "command": "docker",
      "args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/ilostat-mcp-server:latest"]
    }
  }
}

For Streamable HTTP, set the transport and start the server:

sh
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
# Server listens at http://localhost:3010/mcp

Prerequisites

  • Bun v1.4.4 or higher (or Node.js v24+).
  • No API key or account: both ILO APIs are open.

Installation

  1. Clone the repository:
sh
git clone https://github.com/cyanheads/ilostat-mcp-server.git
  1. Navigate into the directory:
sh
cd ilostat-mcp-server
  1. Install dependencies:
sh
bun install
  1. Configure environment:
sh
cp .env.example .env
# every variable is optional; see Configuration below

Configuration

VariableDescriptionDefault
ILOSTAT_CATALOG_REFRESH_HOURSHours between catalog refresh checks (1–168).6
ILOSTAT_MAX_ROWSCeiling on the rows one query reads or stages (1,000–1,000,000); a filtered result past it is paged but not staged, an unfiltered request estimated above it is refused with request_too_broad, and a page reaching past it fails as result_too_large.500000
ILOSTAT_PREVIEW_CHARSStaging trigger in serialized characters (at least 1,000): a query or comparison whose first page finds its result past it is staged as a dataframe. Query and compare pages are bounded by limit; also the inline row budget of ilostat_dataframe_query.40000
ILOSTAT_CACHE_TTL_SECONDSSeconds an upstream data response of up to 5,000 rows stays cached, and a read that fell back to a narrower request is remembered; 0 disables the cache.900
ILOSTAT_DATASET_TTL_SECONDSPer-table TTL for staged dataframes, in seconds (at least 60).86400
ILOSTAT_DATAFRAME_DROP_ENABLEDSet true to expose ilostat_dataframe_drop.false
CANVAS_PROVIDER_TYPEDataCanvas engine for staged dataframes: duckdb, or none to turn dataframes and the three dataframe tools off.duckdb
MCP_TRANSPORT_TYPETransport: stdio or http.stdio
MCP_HTTP_PORTHTTP server port.3010
MCP_SESSION_MODEHTTP session mode: stateless, stateful, or auto.stateless
MCP_AUTH_MODEAuthentication: none, jwt, or oauth.none
MCP_LOG_LEVELLog level (debug, info, warning, error, etc.).info
LOGS_DIRDirectory for log files (Node.js only).<app-root>/logs
STORAGE_PROVIDER_TYPEStorage backend: in-memory, filesystem, supabase, cloudflare-kv/r2/d1.in-memory
OTEL_ENABLEDEnable OpenTelemetry.false

See .env.example for the full list of optional overrides.

Running the server

Local development

  • Build and run the production version:

    sh
    # One-time build
    bun run rebuild
    
    # Run the built server
    bun run start:http
    # or
    bun run start:stdio
    
  • Run checks and tests:

    sh
    bun run devcheck  # Lints, formats, type-checks, and more
    bun run test      # Runs the test suite
    

Project structure

DirectoryPurpose
src/index.tscreateApp() entry point. Turns dataframes on by default, registers the tools, starts the catalog load.
src/configServer-specific environment variable parsing and validation with Zod.
src/mcp-server/toolsTool definitions (*.tool.ts) and the input and rendering helpers they share. Nine tools.
src/services/rplumber, src/services/sdmxClients for the ILOSTAT data API and the ILO SDMX API, on the paced, retried HTTP layer in src/services/upstream.
src/services/catalogIn-memory catalog snapshot, indicator search, reference listings, paging.
src/services/structurePer-indicator SDMX structure, cached.
src/services/observationsRequest validation, size preflight, row decoding, comparisons, response cache.
src/services/profileHeadline country profile.
src/services/basisRules classing each value as reported, modelled estimate, or projection.
src/services/canvas-bridgeDataCanvas adapter: df_<id> staging, provenance, SQL, drop.
skills/ilostat-guide/Published agent skill, served over MCP as skill://ilostat-guide/SKILL.md.
tests/Vitest suite mirroring src/, with recorded upstream fixtures.

Development guide

See CLAUDE.md for development guidelines and architectural rules. The short version:

  • Handlers throw, framework catches — no try/catch in tool logic
  • Use ctx.log for logging, ctx.state for storage
  • Register new tools in buildToolDefinitions() in src/mcp-server/tools/definitions/index.ts
  • Wrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields

Contributing

Issues are welcome. Run checks and tests before submitting:

sh
bun run devcheck
bun run test

License

This project is licensed under the Apache 2.0 License. See the LICENSE file for details. The ILOSTAT data the tools return belongs to the International Labour Organization and is published under CC BY 4.0; cite ILOSTAT and the dataset ID.

Similar modules

Browse Salary & labor market data