Skip to main content
Glama

nemcp

An MCP server that lets AI assistants query, and explain, Australian National Electricity Market (NEM) data from nemweb.com.au.

What it can do for you

  • Find market patterns from natural language queries. Search any region and date range for price spikes, long runs of negative prices, and violated constraints, ranked by intensity.

  • Run a postmortem on price spikes. Ask "why did SA hit $19,000/MWh at 7:30pm on 26 January?" and get findings computed from AEMO data: interconnector limits, binding network constraints, which fuels ramped up or ran out, and whether any constraint was violated.

  • See the grid's plumbing. Interconnector flows against their limits, the constraint setting each limit (with AEMO's own description), and generation by fuel or by unit (gas, wind, solar, batteries, coal, hydro).

  • Give live updates on if you should run your dishwasher. Hook your agent up to nemcp and Home Assistant, and intelligently schedule your appliances based on wholesale electricity prices.

  • Reveal which units and companies make the most on bids. get_generation by unit, multiplied by price, gives revenue per station. Group by participant_id and you have revenue per company. One caveat: hedge contracts aren’t in the data, so this is pool revenue, not profit.

  • Fact check outside analysis. Every response states its time convention, units, caveats, and data freshness, and links back to the exact AEMO file it came from.

Related MCP server: EIA MCP Server

Installation

Requirements: Node 22+, pnpm, unzip on your PATH, and roughly 5–10 GB of disk for a year of data.

git clone https://github.com/OWNER/nemcp.git
cd nemcp
pnpm install
pnpm test

Load data: a year of prices and demand, unit reference data, and fuel types.

pnpm backfill --from=2025-10 --to=2026-09
pnpm backfill --tables=DUDETAILSUMMARY,STATION --from=2025-10 --to=2026-09
pnpm fuel     # AEMO registration list; if the download is blocked, pass a downloaded .xlsx path

Optional deeper data, for constraints, interconnectors and unit output (large downloads, so pick months):

pnpm backfill --tables=DISPATCHINTERCONNECTORRES,DISPATCHCONSTRAINT,DISPATCH_UNIT_SCADA --from=2026-01 --to=2026-01
pnpm backfill --tables=GENCONDATA,SPDINTERCONNECTORCONSTRAINT,SPDCONNECTIONPOINTCONSTRAINT --from=2024-01 --to=2026-09

Connect it to Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "nem": {
      "command": "/path/to/node",
      "args": ["/path/to/nemcp/node_modules/tsx/dist/cli.mjs", "/path/to/nemcp/src/server/index.ts"],
      "env": { "NEM_DATA_DIR": "/path/to/nemcp/data", "NEM_INGEST": "1" }
    }
  }
}

NEM_INGEST=1 keeps live 5-minute data flowing while the server runs. Don't also run pnpm ingest --watch at the same time.

Or with Claude Code:

claude mcp add nem -e NEM_DATA_DIR="$PWD/data" -e NEM_INGEST=1 -- pnpm --dir "$PWD" tsx src/server/index.ts

Restart the client, then try: "Call get_coverage, then explain the biggest SA price spike in January 2026."

Disclaimer

This was vibe coded: built quickly in conversation with an AI assistant, tested against real data, but not audited. Expect rough edges, check anything important against AEMO's own reports, and open an issue if you find something wrong.

Not affiliated with AEMO. Market data © AEMO, used under its Copyright Permissions Notice. Nothing here is financial or trading advice. Wholesale "energy value" figures are pool estimates, not what consumers pay.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides AI models with real-time data about New England's power grid through a Model Context Protocol interface, enabling questions about current power generation, fuel mix, and marginal fuels.
      1
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      Provides access to U.S. Energy Information Administration (EIA) data, covering electricity grid operations, retail sales, and natural gas production metrics. It enables natural language querying of energy market statistics, infrastructure profiles, and real-time balancing authority data.
      14
      6
      -
    • A
      license
      A
      quality
      F
      maintenance
      One-call Australian energy-market plumbing via AEMO — cited, structured responses for market data and analysis, not a data broker.
      5
      129 PyPI
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables real-time access to US electricity generation, fuel mix, and demand data through natural language queries.
      277 npm
      MIT