Skip to main content

ilostat-mcp

MCP server that gives AI assistants such as Claude live access to ILOSTAT — the International Labour Organization's statistics database — for employment and wage data, with automatic detection of methodology breaks (points where a country changed how it measures a statistic, so values before and after aren't directly comparable).

Demo: Claude Desktop answering two questions with ilostat-mcp — a clean series for Japan, and an Australian series with a 2018 methodology break

Installation

Setup takes about five minutes and is done once. You don't need to know how to code.

Step 1 — Install uv (one time)

uv is a small, free tool that Claude Desktop uses to run ilostat-mcp. Installing uv does not install ilostat-mcp yet — that happens in Step 2.

  • Mac: open the Terminal app (press Cmd+Space, type "Terminal", press Enter), paste this line and press Enter:
    curl -LsSf https://astral.sh/uv/install.sh | sh
    
  • Windows: open PowerShell (Start menu → type "PowerShell"), paste this line and press Enter:
    powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
    

When it finishes, close the window.

Step 2 — Add ilostat-mcp to Claude Desktop

This step tells Claude Desktop to use ilostat-mcp. There is nothing to download by hand: the next time Claude Desktop starts, uv downloads ilostat-mcp (and Python, if your computer doesn't have it) automatically.

  1. In Claude Desktop, open Settings → Desktop app, scroll down to Extensions, click Manage, then Edit Config. This opens a file called claude_desktop_config.json.
  2. Open that file in a text editor (TextEdit on Mac, Notepad on Windows).
  3. If the file is empty or only contains {}, replace everything with:
    {
      "mcpServers": {
        "ilostat-mcp": {
          "command": "uvx",
          "args": ["ilostat-mcp"]
        }
      }
    }
    
    If the file already has text in it, don't delete anything. Look for "mcpServers": { and add the "ilostat-mcp": { ... } block inside it, with a comma between it and any entry before or after it. If there is no "mcpServers" yet, add the whole "mcpServers": { ... } section just after the first {, followed by a comma.
  4. Save the file.

Step 3 — Restart Claude Desktop

Quit Claude Desktop completely (Mac: Cmd+Q; Windows: right-click the Claude icon in the system tray → Quit), then open it again. Closing the window is not enough.

The first start can take a minute while uv downloads ilostat-mcp. To check it worked, go to Settings → Customize → Connectors — ilostat-mcp should be listed. Then try one of the questions below.

If it doesn't work

  • Claude says it can't find uvx, or ilostat-mcp doesn't appear: Claude Desktop sometimes can't find uv on its own. Give it the full location instead:
    1. Mac: in Terminal, run which uvx. Windows: in PowerShell, run where.exe uvx.
    2. Copy the line it prints (for example /Users/yourname/.local/bin/uvx).
    3. In the config file, replace "uvx" with that location in quotes. On Windows, double every backslash — C:\Users\yourname\.local\bin\uvx.exe.
    4. Save and restart Claude Desktop again.
  • It showed an error the very first time: the first download may have taken too long. Restart Claude Desktop once more.
  • Claude Desktop says the config file is invalid: a comma or bracket is usually missing or extra. Paste the file's contents into jsonlint.com to find the mistake.

For developers

pip install ilostat-mcp installs an ilostat-mcp command; use "command": "ilostat-mcp" (no args) in any MCP client config.

Try asking

  • How did Japan's unemployment rate change between 2015 and 2023?
  • What was the trend in Australia's unemployment rate from 2015 to 2020? — the answer should flag ILOSTAT's 2018 methodology break.
  • Compare unemployment in Germany and Canada from 2015 to 2023.
  • What were average monthly earnings in Brazil in 2022?

What it can do

Claude picks the right tools automatically; you only ask the question.

  • Find indicators — search ILOSTAT's employment and wage datasets by keyword (matches dataset titles), and look up definitions, units and last-updated dates.
  • Fetch time series — annual data for any country, with methodology breaks always reported alongside the numbers.
  • Derived statistics — year-over-year change, compound annual growth rate (CAGR) and linear trend. If a methodology break falls inside the requested range, the result carries a warning.
  • Labour market snapshot — a ready-made prompt that summarises the labour market for one to three countries.

Coverage is ILOSTAT's employment and wage themes only. When ILOSTAT has no data for a question, the server says so explicitly rather than returning an empty or estimated number.

Methodology-break detection

Every time series is checked for two signals: ILOSTAT's own break flag (obs_status = "B", which catches survey redesigns that keep the same name) and changes in the survey source. Each break lists which signal found it. When a break falls inside the range of a year-over-year, CAGR or trend calculation, the result carries a _break_warning — a trend line through a methodology break is a wrong number that looks right.

Example — CAGR of Australia's unemployment rate, 2015–2020. ILOSTAT flags a break in 2018, but the survey name is the same on both sides, so a source comparison alone would miss it:

"_breaks": [{"year": "2018",
             "source_before": "LFS - Labour Force Survey",
             "source_after": "LFS - Labour Force Survey",
             "reasons": ["ilostat_break_flag"]}],
"_break_warning": "Methodology break within 2015-2020 at 2018 (ILOSTAT flags a break in series). Values across a methodology break are not directly comparable — interpret this result with caution."

Data freshness

Everything comes from ILOSTAT's live SDMX API and is kept in memory for up to 24 hours, so repeated questions don't re-download the same data. An answer can therefore be up to 24 hours behind the live site; restarting the server always fetches fresh. Nothing is stored on disk.

Benchmark

A hallucination benchmark comparing bare-LLM vs. MCP-equipped agent answers across 30+ questions with ground truth pulled from the live ILOSTAT API. Results in benchmark/.

Development

uv sync
uv run pytest                       # live API tests
uv run ruff check src/ tests/       # lint
uv run ruff format src/ tests/      # format
uv run mypy src/                    # type check

CI runs on every push: lint → type check → tests.

Acknowledgements

Thanks to Kanza Nabeela Puteri for brainstorming input on the server's workflow and for verifying the benchmark ground truth against live ILOSTAT data.

License

MIT — see LICENSE.

Metadata

Release files for ilostat-mcp 0.1.0.post1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ilostat-mcp 0.1.0.post1
File Size Uploaded Provenance Actions
ilostat_mcp-0.1.0.post1.tar.gz 43.3 kB With provenance Details for ilostat_mcp-0.1.0.post1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ilostat-mcp 0.1.0.post1
File Interpreter ABI Platform Actions
ilostat_mcp-0.1.0.post1-py3-none-any.whl Python 3 none any Details for ilostat_mcp-0.1.0.post1-py3-none-any.whl

Total release size: 77.8 kB

Release files / ilostat_mcp-0.1.0.post1.tar.gz

Download URL ilostat_mcp-0.1.0.post1.tar.gz
Size 43.3 kB
Tags Source
SHA-256 checksum
How to use checksums
46b1f7ca949fe653b0ab8ce85fc99968b64006a45b20fac2f28a62137e6b0581
BLAKE2b-256 checksum
How to use checksums
3e111ef9ba6bfe95f0f08b2a20e02faa997ac06957fc594719f3ab73ff076a9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / ilostat_mcp-0.1.0.post1-py3-none-any.whl

Download URL ilostat_mcp-0.1.0.post1-py3-none-any.whl
Size 34.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e7cda549d9ba1541c6f58d10fd434b3ed028441e848cd8954bd2ee78bbd09eb3
BLAKE2b-256 checksum
How to use checksums
66e6f4934e9d39547798828e0d183a2e30c6474eea8345c9f18e94218d0e3213
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Security for ilostat-mcp 0.1.0.post1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ilostat_mcp-0.1.0.post1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page