Listed from the MCP registry; nobody on Odel publishes it.
Typed Alberta electricity market data and analytics via official AESO APIs.
Runs on your machine from its package; the steps are below.
At most: only reads or looks up information.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
uvx aeso-mcp
MCP client config
{
"mcpServers": {
"aeso-mcp": {
"command": "uvx",
"args": [
"aeso-mcp"
]
}
}
}Agent-native, strongly typed access and analytics for Alberta's electricity market using official AESO data.
Independent open-source project. Not affiliated with or endorsed by the Alberta Electric System Operator (AESO).
aeso-mcp is a Model Context Protocol (MCP) server that exposes Alberta electricity-market observations and deterministic analytics to AI clients. It is designed for energy analysts, researchers, developers, journalists, market participants, and AI agents that need reliable, structured AESO data—not a thin REST decorator layer.
2026-07-28, with FastMCP's per-connection
negotiation for legacy session-based clientsget_forecast contract, with persisted publication vintages and point-in-time
as_of selection that excludes unknown publication chronologyAESO_API_KEY: public ETS reports and CSD archives work
without credentials; authenticated APIM/GridStatus datasets explicitly request a keyRetry-After handling, and
secret-safe machine-readable errors| Dataset | Tool | Notes |
|---|---|---|
| Market snapshot | get_market_snapshot | Current cohesive view |
| Pool Price | get_pool_prices | Hourly CAD/MWh |
| System Marginal Price | get_system_marginal_prices | Minute-level CAD/MWh |
| Alberta Internal Load | get_load | MW; optional forecast |
| Generation / fuel mix | get_generation | Current all fuels; historical wind/solar |
| Interchange | get_interchange | Current path flows MW |
| Operating reserves | get_reserves | Current MW indicators |
| Generator outages | get_outages | Hourly outage capacity by fuel/technology |
| AIES capacity/outages | get_generation_capacity | Hourly MC, AC, operating, and mothball outage MW |
| Load outage forecast | get_load_outage_forecast | Hourly forecast MW |
| Energy Merit Order | get_energy_merit_order | Historical blocks; 60-day publication delay |
| Unit commitments | get_unit_commitments | Generating-unit commitment directives |
| Intertie capability | get_intertie_capability | Import/export ATC, TTC, margins, gross offers |
| Intertie capability outages | get_intertie_outages | Outages affecting interties/flowgates |
| Metered volumes | get_metered_volumes | Hourly MWh by asset; optional ID filters |
| OR offer control | get_operating_reserve_offer_control | Historical reserve offer blocks; 60-day delay |
| Approved Tx outages | get_approved_transmission_outages | AESO-approved planned transmission outages |
| Long-range Tx outages | get_long_range_transmission_outages | Tentative ~24-month significant outages |
| MCSINR | get_monthly_cumulative_net_revenue | Cumulative net revenue vs offer-cap trigger |
| Secondary offer limit | get_secondary_offer_price_limit | Whether secondary offer cap is in effect |
| Assets | get_assets | Registry with filters |
| Historical CSD generation | get_historical_generation | Individual assets; hourly / five-minute operational MW |
| Official forecasts | get_forecast | AIL / Pool Price / wind / solar; source-specific horizons and cadence |
| Official research archive | get_research_data | Historical adequacy/cushion, transmission, planning-area, constraint, EEA, OR-directive, and current participant records |
| Supply adequacy / cushion | get_supply_adequacy | Official hourly categorical status bands |
| Supply surplus | get_supply_surplus | Official hourly zero-price forecast status |
| FFR Net Schedule | get_ffr_net_schedule | Hourly scheduled imports (negative) / exports (positive) MW |
| Dispatch Down Service | get_dispatch_down_service | Published DDS availability MW |
| TMR reference price | get_tmr_reference_price | Published CAD/MWh value by effective date |
| AIES system events | get_system_events | Bounded event-log comments; no inferred event end |
| UC settlement summary | get_uc_settlement_summary | Hourly CAD amount and charged MW |
| OR prices | get_operating_reserve_prices | Active and standby price components and volumes |
| OR forecast | get_operating_reserve_forecast | Current seven-day hourly MW forecast |
| OR activations | get_operating_reserve_activations | Hourly standby volume and activation price |
Analytics: summarize_market_history, assess_supply_tightness, compare_market_periods,
find_price_events, explain_market_conditions, compare_forecast_to_actual,
get_price_statistics, get_price_duration_curve, analyze_market_event,
calculate_capture_prices, analyze_net_load, analyze_supply_stack,
analyze_intertie_utilization, analyze_generation_mix, analyze_asset_dispatch,
analyze_outage_impact, analyze_forecast_error, calculate_asset_energy_revenue,
compare_csd_to_metered, analyze_ramps, analyze_supply_surplus_events,
summarize_operating_reserve_market, analyze_participant_concentration,
analyze_regional_load_generation, analyze_constrained_volume, analyze_scarcity, and
analyze_system_frequency.
The documentation site includes a full architecture and MCP Inspector walkthrough and an MCP interoperability and security matrix.
MCP clients
|
v
FastMCP adapter (aeso_mcp/mcp)
|
v
Domain services (market, grid, history, forecasts, reports, research, reserves, operations)
|
+---------------+----------------+----------------+----------------+
| | | |
v v v v
GridStatus Direct APIM Public reports CSD archive
| | (ets.aeso.ca) (Box)
+-------+-------+
|
v
AESO APIM gateway
Domain code does not depend on FastMCP. Framework changes should stay in aeso_mcp/mcp/.
All upstream clients are implementation details of this single server: the APIM key is sent only
to apimgw.aeso.ca and is never sent to the allow-listed ETS or Box hosts.
uv recommendedSee LIMITATIONS.md for an honest gap inventory.
uvx aeso-mcp # public reports / historical CSD archive
# Export AESO_API_KEY=your-key for complete market coverage.
For incremental DuckDB/Parquet historical storage:
uvx --from 'aeso-mcp[analytics]' aeso-mcp
To run the current repository version directly:
export AESO_API_KEY=your-key
uvx --from git+https://github.com/bchoi-qwe/aeso-mcp.git aeso-mcp
git clone https://github.com/bchoi-qwe/aeso-mcp.git
cd aeso-mcp
uv sync --group dev --extra analytics --extra docs
cp .env.example .env # set AESO_API_KEY
uv run aeso-mcp
docker build -t aeso-mcp .
docker run --rm \
-e AESO_API_KEY=your-key \
-e AESO_MCP_HTTP_BEARER_TOKEN=replace-with-a-long-random-token \
-p 8000:8000 \
aeso-mcp
Send the same token in the MCP client's Authorization: Bearer ... header. The image binds to
0.0.0.0, so it intentionally requires bearer authentication by default. The built-in HTTP listener
does not terminate TLS; for off-host traffic, terminate TLS at a trusted reverse proxy and never
send bearer credentials over public plaintext HTTP. See MCP interoperability and security.
AESO_API_KEY in your environment (never commit it)Without a key the server starts and public-report/archive tools work; authenticated tools return an actionable missing-key error. A configured key is never returned through MCP tools or logged.
See the documentation site's MCP client configurations for maintained Codex, ChatGPT desktop app, Claude Desktop, Claude Code, and Cursor setup instructions.
{
"mcpServers": {
"aeso": {
"command": "uvx",
"args": ["aeso-mcp"],
"env": {
"AESO_API_KEY": "your-key"
}
}
}
}
uv run aeso-mcp --transport http --host 127.0.0.1 --port 8000
HTTP always validates Host and Origin. A non-loopback bind now refuses to start unless
AESO_MCP_HTTP_BEARER_TOKEN is configured. The built-in listener is plain HTTP; terminate TLS at a
trusted ingress before exposing it beyond a trusted private network. An explicit
AESO_MCP_HTTP_ALLOW_INSECURE_REMOTE=true override exists for isolated environments that accept
the risk; it is never the default. Also set AESO_MCP_HTTP_ALLOWED_HOSTS and
AESO_MCP_HTTP_ALLOWED_ORIGINS for the deployment. /healthz and /readyz contain no market data
or secrets. See .env.example for all bounded runtime settings.
FastMCP 4.2.0 exposes the alberta-market-research skill as a normal MCP resource at
skill://alberta-market-research/SKILL.md. Agents can use it to select authoritative AESO
datasets, interpret timestamps and units, check publication vintages and source completeness,
and distinguish statistical association from causation. Compatible clients can also discover it
through the experimental MCP Skills extension; ordinary MCP resource clients can read it without
that extension. This is a guide for client workflows, not an additional API endpoint,
credential grant, or replacement for the typed data tools.
The standard mode retains the full tool catalog for clients that can afford its context cost.
For clients with limited tool budgets, set AESO_MCP_TOOL_DISCOVERY_MODE=compact in the
server environment. Compact mode uses FastMCP's BM25 search transform: it exposes
get_market_snapshot, analyze_market_event, get_forecast, search_tools, and
call_tool initially. search_tools returns full schemas for matching hidden tools and
call_tool invokes those tools without exposing the entire catalog up front. This reduces
initial context substantially but adds a search step and can return irrelevant suggestions;
it does not replace judgment about whether a tool is appropriate.
The server also sends five-minute public cache hints for its shared tool catalog and static MCP resources to compatible MCP 2026-07-28 clients. These are discovery/resource hints, not caches of changing market observations.
With more than 60 typed tools, start with search_aeso_tools when you do not know which
dataset or analytical workflow matches your question. Search is credential-free, uses the
actual registered tool descriptions, returns bounded ranked results, and never calls AESO.
All original tools remain directly discoverable; searching is an optional convenience.
| Tool | Purpose |
|---|---|
get_market_snapshot | Current market overview |
get_pool_prices | Hourly Pool Price history |
get_system_marginal_prices | Minute-level SMP history |
get_load | Alberta Internal Load |
get_generation | Fuel mix / renewable history |
get_interchange | Intertie flows |
get_reserves | Operating reserve indicators |
get_outages | Hourly generator outage capacity by fuel |
get_generation_capacity | AIES capability and outage grouping by fuel |
get_load_outage_forecast | Hourly load-outage forecast |
get_energy_merit_order | Historical energy merit-order blocks |
get_unit_commitments | Generating-unit commitment directives |
get_intertie_capability | Intertie/flowgate ATC, TTC, and margins |
get_intertie_outages | Outages affecting intertie capability |
get_metered_volumes | Metered energy by asset |
get_operating_reserve_offer_control | Historical reserve offer-control blocks |
get_approved_transmission_outages | Approved planned transmission outages |
get_long_range_transmission_outages | Tentative long-range transmission outages |
get_assets | Asset registry |
get_monthly_cumulative_net_revenue | Current MCSINR publication |
get_secondary_offer_price_limit | Current secondary offer-cap status |
compare_market_periods | Aggregate period comparison |
find_price_events | High-price event detection |
explain_market_conditions | Structured evidence (not causal prose) |
compare_forecast_to_actual | AIL forecast vs actual accuracy |
summarize_market_history | Compact hourly/daily/weekly/monthly price and load summaries |
assess_supply_tightness | Transparent reserve-adjusted supply-margin screening |
get_historical_generation | Official individual-asset CSD archive history |
sync_historical_store | Incremental local DuckDB/Parquet ingestion |
get_historical_store_status | Local coverage, manifests, and partition status |
get_forecast | Official AIL, Pool Price, wind, solar, and combined wind/solar forecasts |
get_research_data | Bounded page from one verified official historical/spatial/reliability archive |
get_supply_adequacy | Official supply-adequacy and market-supply-cushion status bands |
get_supply_surplus | Official hourly supply-surplus forecast status |
get_ffr_net_schedule | Historical scheduled FFR intertie transfer |
get_dispatch_down_service | Dispatch Down Service availability report |
get_tmr_reference_price | Published TMR reference price |
get_system_events | Bounded AIES Event Log messages |
get_uc_settlement_summary | Public hourly UC amount and charged volume |
get_price_statistics | Price distribution and volatility statistics |
get_price_duration_curve | Pool Price exceedance curve |
analyze_market_event | Focus versus baseline multi-series associations |
calculate_capture_prices | Generation-weighted price and capture rate |
analyze_net_load | AIL minus selected renewable generation |
analyze_supply_stack | Historical offer-stack analysis |
analyze_intertie_utilization | Gross-offer to capability proxy |
analyze_generation_mix | CSD energy and share by fuel |
analyze_asset_dispatch | Asset output, capacity factor, and ramps |
analyze_outage_impact | Hourly outage-price association |
analyze_forecast_error | General forecast error, percentiles, market-hour and lead-time profiles |
calculate_asset_energy_revenue | Metered MWh × Pool Price gross energy revenue |
compare_csd_to_metered | Operational CSD output versus metered MWh |
analyze_ramps | Cadence-aware AIL, net-load, renewable, or asset ramps |
analyze_supply_surplus_events | Price/load/renewable associations during explicit surplus states |
get_operating_reserve_prices | Active/standby price components and volumes |
get_operating_reserve_forecast | Seven-day reserve-volume forecast |
get_operating_reserve_activations | Hourly standby activations |
summarize_operating_reserve_market | Product price/volume/activation summary |
analyze_participant_concentration | Offered-volume shares and HHI using current participant mapping |
analyze_regional_load_generation | Planning-area and regional load/generation aggregates |
analyze_constrained_volume | Planning-area/fuel constrained MWh and optional price association |
analyze_scarcity | Historical adequacy/cushion web codes, EEA, and price context |
analyze_system_frequency | Compact six-hour 10-second frequency statistics; no raw row output |
Market and research tools are read-only. sync_historical_store writes only to the configured
local historical-store root; it does not mutate AESO or another external system.
| URI | Content |
|---|---|
aeso://glossary | Market terminology |
aeso://datasets | Dataset catalog |
aeso://methodology/pool-price | Pool Price interpretation |
aeso://methodology/system-marginal-price | SMP interpretation |
aeso://capabilities | Complete tool, prompt, and resource surface |
aeso://methodology/{dataset} | Dataset-specific interpretation and caveats |
Prompts: daily_market_brief, investigate_price_event, and compare_market_days.
America/Edmonton (AESO market time). DST days may have 23 or 25 local hours.interval_start / interval_end (half-open ranges in requests).actual / forecast / etc. Forecasts are never implied to be settled actuals.as_of selects only vintages with known issue/publication times and retrieval times at
or before the boundary. Unknown chronology is excluded; target intervals absent from persisted
history remain unobserved rather than being backfilled from a later publication.page metadata
with next_offset. Use summarize_market_history before retrieving long raw series.retrieved_at identifies the upstream fetch; served_at, cache_hit, and
cache_age identify when and how the response was served.analyze_market_event.analysis_manifest records exact sources,
parameters, methodology version, warnings, and a deterministic SHA-256 analysis_id.uv sync --group dev --extra analytics --extra docs
uv run ruff check src tests scripts
uv run ruff format --check src tests scripts
uv run pyright src
uv run pytest tests/unit tests/contract tests/mcp tests/evals tests/packaging --cov=aeso_mcp
uv run python scripts/generate_catalog.py --check
uv run mkdocs build --strict
uv run python tests/packaging/check_release_metadata.py
uv run python tests/packaging/check_lock_prereleases.py
uv build
Optional live tests:
AESO_API_KEY=... uv run pytest tests/integration -m integration
MCP Inspector:
# Prefer the console entrypoint; or point Inspector at:
# uv run aeso-mcp
npx @modelcontextprotocol/inspector uv run aeso-mcp
tests/unit — time, bounds, analytics, configtests/contract — AESO APIM fixtures via respxtests/mcp — tool/resource discovery and structured outputstests/integration — opt-in live AESO callsSee SECURITY.md. Highlights: no arbitrary URL/shell/SQL tools, host allow-list, secret hygiene, bounded queries, stderr logging for stdio.
Version 0.4.0 includes the historical store, full CSD generation adapter, official forecast/report providers, general research analytics, operating-reserve market surface, eval suite, and documentation site. It also includes point-in-time forecast vintages, reproducibility manifests, release-policy hardening, and the verified official research-data archive.
See CONTRIBUTING.md.
MIT — see LICENSE.
This project is an independent open-source interface to publicly documented AESO APIs. It is not an official AESO product and is not affiliated with or endorsed by AESO. Market data may be preliminary or incomplete; verify critical decisions against official AESO publications.