Skip to main content

MCP server for the Australian Bureau of Statistics Data API. Hides SDMX behind plain-English tools, with curated mappings for Labour Force, CPI, ERP, Building Approvals, and Lending Indicators.

Project description

abs-mcp

PyPI Python License Tests CodeQL Glama MCP server quality

Ask Claude about the Australian economy and get real, current numbers — not "I don't have access to that data." This MCP server gives Claude (and other MCP clients like Cursor) live access to the ABS Data API, with curated mappings for the 10 most-asked Australian economic indicators.

abs-mcp answering "What's the unemployment rate in NSW?" in Claude Desktop

Behind the scenes it wraps SDMX 2.1, but you never see SDMX codes — just plain-English filters like region: "nsw" and measure: "unemployment_rate". Five tools, ten curated dataflows (Labour Force, CPI, Wage Price Index, Job Vacancies, Average Weekly Earnings, GDP / National Accounts, quarterly + annual Estimated Resident Population, Building Approvals, Lending Indicators), and 1,200+ other ABS dataflows accessible via raw codes.

Companion to rba-mcp (Reserve Bank of Australia — cash rate, FX, lending rates), ato-mcp (Australian Taxation Office — postcode-level personal tax, company tax by industry, corporate tax transparency, ACNC charity register), and au-weather-mcp (Australian weather — 21 curated locations + postcode/place-name lookup, current observations, 16-day forecasts, 80yr historical archive). Install all four for the full AU macro / regulator / tax / climate stack.

What you can ask

Once installed, your LLM can answer questions like:

Question Real response (verified)
What's the unemployment rate in NSW? 4.27% (Mar 2026)
AU annual CPI inflation? 4.60% (Mar 2026)
AU annual wage growth? 3.40% (Q4 2025)
Average weekly earnings in Australia? $1,562 (Sep–Oct 2025)
AU GDP quarterly growth? 0.80% (Q4 2025)
AU GDP per capita? $24,900/qtr (Q4 2025)
Job vacancies in NSW? 101,200 (Q1 2026)
Dwelling approvals in NSW? 4,400/month (Mar 2026)
New NSW housing loan commitments? $19.7B (Q4 2025)
Quarterly population of Australia? 27.7M (Q3 2025)

Every answer comes with the period, units, and a link back to the ABS source page. Comparisons and time-series queries work just as well — see Worked examples below.

Install

# After publish:
uvx --upgrade abs-mcp

# Local dev install:
uv pip install -e .

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "abs": {
      "command": "uvx",
      "args": ["--upgrade", "abs-mcp"]
    }
  }
}

Why --upgrade? uvx abs-mcp (without the flag) uses whatever wheel is cached and never adopts new PyPI releases on its own — Claude Desktop's MCP child process keeps running the same wheel until you fully quit the app and refresh the cache by hand. --upgrade makes uvx check PyPI on each launch and pull a newer release if one exists. To verify which version is currently serving you, look at the server_version field on any DataResponse (added in 0.2.10).

For a local checkout (before PyPI publish):

{
  "mcpServers": {
    "abs": {
      "command": "uv",
      "args": ["run", "--directory", "/absolute/path/to/abs-mcp", "abs-mcp"]
    }
  }
}

Restart Claude Desktop. The abs server appears in the tools panel with five tools.

Cursor

Add to ~/.cursor/mcp.json (or workspace .cursor/mcp.json):

{
  "mcpServers": {
    "abs": {
      "command": "uvx",
      "args": ["--upgrade", "abs-mcp"]
    }
  }
}

Tools

Tool What it does
search_datasets(query, limit=10) Fuzzy-search ABS dataflow names. Returns the top matches.
describe_dataset(dataset_id) Plain-English description of a dataflow's dimensions and values.
get_data(dataset_id, filters, start_period, end_period, format) Query a dataflow with filters. Returns clean records (default), grouped series, or CSV.
latest(dataset_id, filters) Just the most recent observation(s) — wraps get_data with lastNObservations=1.
top_n(dataset_id, measure, n=10, filters=None, direction="top") Rank rows of a curated dataflow by a measure (e.g. unemployment_rate) at the most-recent period and return the top (or bottom) N.
list_curated() The ten dataflow IDs that have hand-curated plain-English support.

Curated dataflows

For these curated dataflows, filters accepts plain-English values (e.g. "region": "nsw" instead of "REGION": "1"):

  • LF — Labour Force, monthly: employment, unemployment, participation by state/sex
  • CPI — Consumer Price Index, quarterly inflation (cat 6401.0 — the headline rate)
  • CPI_MONTHLY — Monthly CPI Indicator (cat 6484.0), full sub-category and per-city breakdown
  • WPI — Wage Price Index, quarterly wage growth by industry/sector/state
  • PPI_FD — Producer Price Index Final Demand, quarterly producer inflation
  • JV — Job Vacancies, quarterly labour demand by industry/sector/state
  • AWE — Average Weekly Earnings, half-yearly by industry/sector/state
  • ANA_AGG — National Accounts: GDP, GDP per capita, terms of trade, real income (Australia, quarterly)
  • ABS_ANNUAL_ERP_ASGS2021 — Estimated Resident Population, annual by state and sub-state geography
  • ERP_Q — Quarterly Estimated Resident Population, by state/sex/age
  • BA_GCCSA — Building Approvals, monthly by state/capital region and building type
  • LEND_HOUSING — Lending Indicators, quarterly new housing loan commitments by purpose, lender, and state
  • HSI_M — Monthly Household Spending Indicator (ABS-blessed retail-trade replacement)
  • RT — Retail Trade (43-year historical series, ceased Jul 2025)
  • C21_G01_POA / C21_G02_POA / C21_G02_SA2 — Census 2021 selected characteristics and medians by postcode / SA2

Any other ABS dataflow still works — pass raw SDMX dimension IDs and codes.

Worked examples

Cross-source compatibility. All location filters accept canonical state codes ("NSW"), full names ("New South Wales"), case-insensitive variants ("nsw"), ISO 3166-2 ("AU-NSW"), and 4-digit postcodes ("2000" → NSW). Powered by aus-identity — the same input format works across abs-mcp, ato-mcp, apra-mcp, aihw-mcp, and asic-mcp.

"What's the current unemployment rate in NSW?"

Claude calls:

latest(dataset_id="LF", filters={"region": "nsw", "measure": "unemployment_rate"})

Returns:

{
  "dataset_id": "LF",
  "dataset_name": "Labour Force",
  "query": {"region": "nsw", "measure": "unemployment_rate"},
  "period": {"start": "2026-03", "end": "2026-03"},
  "unit": "Percent",
  "records": [
    {
      "period": "2026-03",
      "value": 4.27,
      "dimensions": {"measure": "Unemployment rate", "region": "New South Wales", "sex": "Persons"},
      "unit": "Percent"
    }
  ],
  "source": "Australian Bureau of Statistics",
  "retrieved_at": "2026-05-11T03:14:22Z",
  "abs_url": "https://www.abs.gov.au/statistics/labour/employment-and-unemployment/labour-force-australia"
}

"Show me NSW housing approvals over the last two years"

get_data(dataset_id="BA_GCCSA", filters={"region": "nsw", "measure": "dwelling_units"}, start_period="2024")

"Compare monthly CPI inflation in Sydney vs Melbourne"

get_data(dataset_id="CPI_MONTHLY", filters={"region": ["sydney", "melbourne"], "measure": "change_year"}, start_period="2023")

(CPI itself publishes only the national weighted average at quarterly cadence; the monthly indicator carries per-city series.)

Period formats

ABS uses different period formats per dataflow. Pass start_period / end_period in the matching format:

Dataflows Frequency Format Example
LF, BA_GCCSA Monthly YYYY-MM "2026-03"
CPI, WPI, PPI_FD, JV, ANA_AGG, LEND_HOUSING, ERP_Q Quarterly YYYY-Q* "2025-Q4"
CPI_MONTHLY, HSI_M Monthly YYYY-MM "2025-12"
AWE Half-yearly YYYY-S* "2025-S2"
ABS_ANNUAL_ERP_ASGS2021 Annual YYYY "2025"

Verifying your install

The running MCP server reports its version on every DataResponse:

{ ..., "server_version": "0.2.11", ... }

If you see a value below the latest on PyPI, your uvx cache is stale. Either switch to ["--upgrade", "abs-mcp"] in your config (recommended), or refresh manually:

uvx --refresh abs-mcp --help
# Then fully quit and relaunch Claude Desktop (Cmd+Q — window-close is not enough).

Claude Desktop's MCP child processes are long-lived; refreshing the wheel cache does not restart an already-running server. Cold app launch is required.

Development

git clone https://github.com/Bigred97/abs-mcp.git
cd abs-mcp
uv sync --extra dev
uv pip install -e .

# Unit tests (no network)
uv run pytest

# Live integration tests (hits real ABS API)
uv run pytest -m live

The SQLite cache lives at ~/.abs-mcp/cache.db. Catalogue refreshes every 24h, codelists every 7 days, data responses every hour, latest 15 minutes. Delete the file to force a refresh.

How it works

When you ask Claude an ABS question, it picks the right tool, fills in the curated filters, and calls the live ABS API. You see the reasoning + tool call inline:

Claude reasoning + tool call panel

Claude does the picking; this server does the SDMX translation, unit attribution, and clean response shaping. You don't have to know what M13.3.1599.20.1.M means — and neither does Claude.

How it differs from existing ABS MCP servers

The one existing community option (seansoreilly/abs) exposes a single query_dataset tool that passes raw SDMX through. This package offers semantic tools and curated mappings for the highest-value dataflows so an LLM can answer real questions without you needing to know what M13.3.1599.20.1.M means.

Sister MCPs (Australian Public Data portfolio)

  • abs-mcp — this one. Australian Bureau of Statistics (CPI, unemployment, ERP, building approvals)
  • rba-mcp — Reserve Bank of Australia (cash rate, lending stats, exchange rates)
  • ato-mcp — Australian Taxation Office (tax stats, ACNC charities)
  • apra-mcp — Australian Prudential Regulation Authority (banking, insurance, super)
  • aihw-mcp — Australian Institute of Health and Welfare
  • asic-mcp — Australian Securities and Investments Commission (company registers)
  • aemo-mcp — Australian Energy Market Operator (NEM dispatch, spot prices, generation)
  • au-weather-mcp — Open-Meteo (Bureau of Meteorology aggregator)
  • wgea-mcp — Workplace Gender Equality Agency
  • aus-identity — Postcode / state / ABN normalisation helper used by all sisters

Changelog

See CHANGELOG.md for release history.

License

MIT — Harry Vass, 2026.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

abs_mcp-0.11.3.tar.gz (737.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

abs_mcp-0.11.3-py3-none-any.whl (70.8 kB view details)

Uploaded Python 3

File details

Details for the file abs_mcp-0.11.3.tar.gz.

File metadata

  • Download URL: abs_mcp-0.11.3.tar.gz
  • Upload date:
  • Size: 737.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for abs_mcp-0.11.3.tar.gz
Algorithm Hash digest
SHA256 62d93cad0219fc7b8aa1534873748e0c8e69b295f1c4861302e8b9121f0b3cd5
MD5 4e24a05c1c582269388733847ae0a945
BLAKE2b-256 9ffe034522e8836893e0468da2887157a4c6a736f7b67e18c07a4e0e454dae00

See more details on using hashes here.

Provenance

The following attestation bundles were made for abs_mcp-0.11.3.tar.gz:

Publisher: release.yml on Bigred97/abs-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file abs_mcp-0.11.3-py3-none-any.whl.

File metadata

  • Download URL: abs_mcp-0.11.3-py3-none-any.whl
  • Upload date:
  • Size: 70.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for abs_mcp-0.11.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9229ccb116bd705de95d447631295ad842acacac439d716c80c1c47970037f56
MD5 b870d3d5e4b96a7ad6ea36056887e83e
BLAKE2b-256 6c57e524e37df8f1d90586d1428203f178ccccd3820b5c9e4d8e4b12f4aaeddb

See more details on using hashes here.

Provenance

The following attestation bundles were made for abs_mcp-0.11.3-py3-none-any.whl:

Publisher: release.yml on Bigred97/abs-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page