ilostat-mcp
MCP server giving AI agents access to ILOSTAT employment and wage data, with automatic methodology-break detection.
Installation
Requires uv. Add this to your MCP client config. For Claude Desktop, edit claude_desktop_config.json (Settings → Developer → Edit Config):
{
"mcpServers": {
"ilostat-mcp": {
"command": "uvx",
"args": ["ilostat-mcp"]
}
}
}
Restart Claude Desktop. uvx downloads the package from PyPI and runs it — no separate install step. Confirm ilostat-mcp appears in the tools panel before running queries.
If Claude Desktop reports that uvx cannot be found, replace "uvx" with its full path (run which uvx on macOS/Linux or where uvx on Windows). Desktop apps do not always see the same PATH as your terminal.
Alternative — pip
pip install ilostat-mcp
Then use "command": "ilostat-mcp" (no args) in the config above.
Tools
| Tool | Purpose |
|---|---|
search_indicators(keyword) |
Find ILOSTAT dataflows by keyword. Dataflow IDs act as filters (per country, age, sex) rather than a flat indicator list, so this searches titles and descriptions. |
get_countries() |
List valid country codes from the CL_AREA codelist. |
get_indicator_metadata(dataflow_id) |
Definition, units, source, and last-updated date for a dataflow. |
get_time_series(dataflow_id, country, start, end) |
Raw data pull. Always includes a _breaks field — every series comes with its break status. |
get_yoy_change(dataflow_id, country, year) |
Year-over-year % change. |
get_cagr(dataflow_id, country, start, end) |
Compound annual growth rate. Warns or refuses if the range spans a detected methodology break. |
get_trend(dataflow_id, country, start, end) |
Linear trend and slope. Same break-spanning rule as get_cagr. |
Methodology-break detection
Every get_time_series call automatically checks 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 get_yoy_change, get_cagr or get_trend, the result carries a _break_warning — a trend line through a methodology break is a wrong number that looks right.
Example — get_cagr("DF_UNE_DEAP_SEX_AGE_RT", "AUS", "2015", "2020"). ILOSTAT flags a break in Australia's series 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
Benchmark ground truth verified against live ILOSTAT data by Kanza Nabeela Puteri.
License
MIT — see LICENSE.
Metadata
Release files for ilostat-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ilostat_mcp-0.1.0.tar.gz | 41.9 kB | With provenance | Details for ilostat_mcp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ilostat_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ilostat_mcp-0.1.0-py3-none-any.whl |
Total release size: 75.1 kB
Release files / ilostat_mcp-0.1.0.tar.gz
| Download URL | ilostat_mcp-0.1.0.tar.gz |
|---|---|
| Size | 41.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e9e5ccad4bab9a2a53f137a167122ed4e2aa3abb708ad7b17760fda098ff38c
|
|
BLAKE2b-256 checksum How to use checksums |
7bdc675c113874618fbe0bf9a9b6115f1cb45e67ae1f6e6fcdbea55db74f126e
|
| 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 logRelease files / ilostat_mcp-0.1.0-py3-none-any.whl
| Download URL | ilostat_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 33.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
992ca4ecd1b687508fef972539b18558cef5d346cfb57dcf1aefb684f92748de
|
|
BLAKE2b-256 checksum How to use checksums |
43532c2bc8078c4121b0222860a2cde00c4c40874513dbc4fb1b5dbbf1daa1ff
|
| 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 logSecurity for ilostat-mcp 0.1.0
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.
Attestation for ilostat_mcp-0.1.0.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 logA 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.