MCP server for the Australian Energy Market Operator (AEMO) NEM. Plain-English access to 5-min dispatch prices, regional demand, interconnector flows, generation by fuel, and rooftop PV.
Project description
aemo-mcp
Ask Claude about Australia's electricity market and get real, current numbers — 5-minute spot prices, regional demand, generation by fuel, interconnector flows, rooftop solar — not "I don't have access to that data." This MCP server gives Claude (and other MCP clients like Cursor) live access to the Australian Energy Market Operator (AEMO) NEMWEB feeds, with curated mappings for the most-asked indicators.
Companion to abs-mcp (ABS macro stats), rba-mcp (RBA interest + FX rates), ato-mcp (ATO tax + ACNC charity), apra-mcp (banking + superannuation), aihw-mcp (health & welfare), asic-mcp (companies + financial advisers), and au-weather-mcp (Australian weather) — together they cover the most-asked Australian official data.
What you can ask
Once installed, your LLM can answer questions like:
| Question | What the tool does |
|---|---|
| What's the current NSW spot price? | latest("dispatch_price", filters={"region":"NSW1"}) |
| Did SA hit negative pricing in the last 24 hours? | get_data("dispatch_price", filters={"region":"SA1"}, start_period=…) and filter value < 0 |
| Generation by fuel type right now in QLD | latest("generation_scada", filters={"region":"QLD1"}), aggregated by fuel |
| Weekly average dispatch price for VIC, last 4 weeks | get_data("dispatch_price", filters={"region":"VIC1"}, start_period=…) |
| Rooftop PV forecast for tomorrow | get_data("rooftop_pv", filters={"section":"forecast"}, start_period="<tomorrow>") |
| What's the current flow across Heywood (VIC ↔ SA)? | latest("interconnector_flows", filters={"interconnector":"V-SA"}) |
| Total NEM demand right now | latest("dispatch_region") |
Every answer comes with the interval timestamp (AEMO market time, UTC+10), units (MW, $/MWh), and a link back to the NEMWEB source. The MCP wraps NEMWEB's CSV/ZIP feeds and exposes them through 5 plain-English tools.
Install
# After publish:
uvx --upgrade aemo-mcp
# Local dev:
uv pip install -e .
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"aemo": {
"command": "uvx",
"args": ["--upgrade", "aemo-mcp"]
}
}
}
Why
--upgrade?uvx aemo-mcp(without the flag) uses whatever wheel is cached and never adopts new PyPI releases on its own.--upgrademakes uvx check PyPI on each launch and pull a newer release if one exists. Recommended for everyone except offline-first / pinned-version workflows. To verify which version is currently serving you, look at theserver_versionfield on anyDataResponse.
If you also have rba-mcp / abs-mcp installed, all servers run side-by-side.
Claude disambiguates with the server prefix (aemo:get_data, rba:get_data,
abs:get_data).
For local dev (pre-PyPI):
{
"mcpServers": {
"aemo": {
"command": "uv",
"args": ["run", "--directory", "/absolute/path/to/aemo-mcp", "aemo-mcp"]
}
}
}
Cursor
Add to ~/.cursor/mcp.json (or workspace .cursor/mcp.json):
{
"mcpServers": {
"aemo": {
"command": "uvx",
"args": ["--upgrade", "aemo-mcp"]
}
}
}
Tools
| Tool | What it does |
|---|---|
search_datasets(query, limit=10) |
Fuzzy-search the 7 curated NEM datasets by name, topic, or region. |
describe_dataset(dataset_id) |
Schema, filters, source URL, cadence, and example queries for one dataset. |
get_data(dataset_id, filters, start_period, end_period, format) |
Query data. Records / series / csv format. |
latest(dataset_id, filters) |
Most recent 5-min or 30-min interval for time-series feeds. |
list_curated() |
The 7 curated dataset IDs. |
Curated datasets
The 7 datasets cover ~95% of typical NEM analytic queries:
dataset_id |
Cadence | Source | Use case |
|---|---|---|---|
dispatch_price |
5 min | DispatchIS / DISPATCHPRICE | Current spot price per region; negative-pricing detection |
dispatch_region |
5 min | DispatchIS / DISPATCHREGIONSUM | Demand + scheduled + semi-scheduled gen + net interchange |
interconnector_flows |
5 min | DispatchIS / DISPATCHINTERCONNECTORRES | MW flow + losses across NEM interconnectors |
generation_scada |
5 min | Dispatch_SCADA | DUID-level MW (every unit), aggregable by fuel |
rooftop_pv |
30 min | ROOFTOP_PV/ACTUAL + FORECAST | Regional rooftop solar (actual + forecast) |
predispatch_30min |
30 min | PredispatchIS | 30-min forecast, ~40h horizon |
daily_summary |
Daily | Daily_Reports | Yesterday's full data in one drop |
Use list_curated() to enumerate, describe_dataset(dataset_id) to learn
the filters available on each.
Regions
NSW1 (New South Wales), QLD1 (Queensland), SA1 (South Australia), TAS1 (Tasmania), VIC1 (Victoria). Western Australia (WEM) and the Northern Territory are not on the NEM and are out of scope.
Trust contract
Every DataResponse carries:
source = "Australian Energy Market Operator"attribution— AEMO Copyright Permissions verbatim attribution stringsource_url— the NEMWEB folder the data came fromretrieved_at— UTC timestamp of the fetchinterval_start/interval_end— period coveredstale—Trueif the latest interval is older than 2× the feed cadenceserver_version— the wheel that served the call
Licence + attribution
This package is MIT-licensed (see LICENSE).
The AEMO data it fetches is published under AEMO's Copyright Permissions policy: AEMO grants general permission to use AEMO Material for any purpose (commercial included) on the sole condition of accurate attribution of the relevant material and AEMO as its author. See https://aemo.com.au/privacy-and-legal-notices/copyright-permissions.
End-users redistributing data fetched via this server must credit AEMO.
The canonical attribution string is on every DataResponse.attribution.
Worked examples
"What's the current NSW spot price?"
latest(dataset_id="dispatch_price", filters={"region": "NSW1"})
→ {"records": [{"period": "2026-05-14T10:05:00+10:00", "value": 87.5, "dimensions": {"region": "NSW1", "metric": "rrp"}, "unit": "$/MWh"}], ...}
"NSW spot price for the last 24 hours"
get_data(dataset_id="dispatch_price", filters={"region": "NSW1"},
start_period="2026-05-13", end_period="2026-05-14")
"Did SA hit negative pricing in the last 24 hours?"
get_data(dataset_id="dispatch_price", filters={"region": "SA1"},
start_period="<24h ago>")
Then the LLM filters value < 0 client-side.
"Generation by fuel type right now in QLD"
latest(dataset_id="generation_scada", filters={"region": "QLD1"})
→ DUID-level rows with fuel attribution; the LLM aggregates by fuel.
How it works
- Live-fetch only. No NEMWEB archives in the wheel. Every request goes through the cache.
- Cache TTLs tuned per cadence. 60s for 5-min feeds, 5min for 30-min feeds, 1h forecasts, 24h daily archive. Timestamped historical files are immutable in NEMWEB and cache effectively forever.
- In-flight request deduplication. Concurrent callers for the same URL share one HTTP request. Critical at 5-min cadence with many users.
- Latest-file detection is purely lexicographic on the NEMWEB directory
listing — AEMO embeds the interval timestamp in every filename
(
PUBLIC_DISPATCHIS_YYYYMMDDHHmm_<seq>.zip), somax()is enough. - Multi-section CSV parser handles AEMO's
I,/D,row format where a single ZIP holds several tables (DISPATCHPRICE, DISPATCHREGIONSUM, DISPATCHINTERCONNECTORRES, etc.).
Development
git clone https://github.com/Bigred97/aemo-mcp
cd aemo-mcp
uv sync --extra dev
uv pip install -e .
uv run pytest -q
Run live tests (hit NEMWEB):
uv run pytest -q -m live
Zero-flake validation:
for i in $(seq 1 10); do uv run pytest -q || break; done
Companion MCPs
| MCP | Domain |
|---|---|
| abs-mcp | ABS macroeconomic statistics (SDMX) |
| rba-mcp | RBA interest + FX rates (F-tables) |
| ato-mcp | ATO tax + ACNC charity data |
| apra-mcp | APRA banking + superannuation statistics |
| aihw-mcp | AIHW health + welfare datasets |
| asic-mcp | ASIC company + financial-adviser registers |
| au-weather-mcp | Australian weather (Open-Meteo + BOM) |
Author
Built by Harry Vass. Issues + PRs welcome at github.com/Bigred97/aemo-mcp.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aemo_mcp-0.1.2.tar.gz.
File metadata
- Download URL: aemo_mcp-0.1.2.tar.gz
- Upload date:
- Size: 161.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10a6432f2eef171d93a85a6f36aa8478fb22eb9ce814418006e21315bb938baf
|
|
| MD5 |
627aef9211d174187f1e15755cbcfd85
|
|
| BLAKE2b-256 |
38735423361fa42f9667b0eaa6ff762762f940ba9be01101df80d09bfdeadc60
|
Provenance
The following attestation bundles were made for aemo_mcp-0.1.2.tar.gz:
Publisher:
release.yml on Bigred97/aemo-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aemo_mcp-0.1.2.tar.gz -
Subject digest:
10a6432f2eef171d93a85a6f36aa8478fb22eb9ce814418006e21315bb938baf - Sigstore transparency entry: 1541317282
- Sigstore integration time:
-
Permalink:
Bigred97/aemo-mcp@b119ef0cd7b9492bb01f07a4024fa8fa51a7fbc2 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Bigred97
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b119ef0cd7b9492bb01f07a4024fa8fa51a7fbc2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file aemo_mcp-0.1.2-py3-none-any.whl.
File metadata
- Download URL: aemo_mcp-0.1.2-py3-none-any.whl
- Upload date:
- Size: 51.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28361a8eeb74666393f54b9035d480ee2f520b3bccdb7608f5cbda39baf66b8e
|
|
| MD5 |
457824638deaefcc7089ea1b5d622f54
|
|
| BLAKE2b-256 |
fdd7698d0c26ec93161e3fc038ed836b0b4b58b44177213d7dc80e11f8305d28
|
Provenance
The following attestation bundles were made for aemo_mcp-0.1.2-py3-none-any.whl:
Publisher:
release.yml on Bigred97/aemo-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aemo_mcp-0.1.2-py3-none-any.whl -
Subject digest:
28361a8eeb74666393f54b9035d480ee2f520b3bccdb7608f5cbda39baf66b8e - Sigstore transparency entry: 1541317396
- Sigstore integration time:
-
Permalink:
Bigred97/aemo-mcp@b119ef0cd7b9492bb01f07a4024fa8fa51a7fbc2 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Bigred97
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b119ef0cd7b9492bb01f07a4024fa8fa51a7fbc2 -
Trigger Event:
push
-
Statement type: