aeso-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@aeso-mcpWhat is Alberta's current grid situation?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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).
What it is
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.
Related MCP server: EnergyAtIt MCP Server
Features
Typed MCP tools with Pydantic inputs/outputs and structured results
Current market snapshot combining price, load, generation, interchange, and reserves
Historical Pool Price and System Marginal Price retrieval with explicit units and timezones
Deterministic analytics: period comparison, price-event detection, condition evidence
GridStatus-backed AESO adapters plus a direct APIM httpx client for contracts (not a full second production stack)
Query bounds, caching, retries, and secret-safe error handling
Resources for glossary, dataset catalog, and methodology notes
Implemented datasets
Dataset | Tool | Notes |
Market snapshot |
| Current cohesive view |
Pool Price |
| Hourly CAD/MWh |
System Marginal Price |
| Minute-level CAD/MWh |
Alberta Internal Load |
| MW; optional forecast |
Generation / fuel mix |
| Current all fuels; historical wind/solar |
Interchange |
| Current path flows MW |
Operating reserves |
| Current MW indicators |
Generator outages |
| When upstream data available |
Assets |
| Registry with filters |
Analytics: compare_market_periods, find_price_events, explain_market_conditions,
compare_forecast_to_actual.
Architecture
MCP clients
|
v
FastMCP adapter (aeso_mcp/mcp)
|
v
Domain services (market, grid, assets, analytics)
|
+------------------+
| |
v v
GridStatus provider Direct AESO APIM (httpx)
| |
+---------+--------+
|
v
AESO APIsDomain code does not depend on FastMCP. Framework changes should stay in aeso_mcp/mcp/.
Requirements
Python 3.13+
AESO APIM API key from developer-apim.aeso.ca
uvrecommended
Installation
See LIMITATIONS.md for an honest gap inventory. PyPI publication is deferred until after human review.
From GitHub (current)
Until the package is published to PyPI:
export AESO_API_KEY=your-key
uvx --from git+https://github.com/bchoi-qwe/aeso-mcp.git aeso-mcpOr install editable for development:
git clone https://github.com/bchoi-qwe/aeso-mcp.git
cd aeso-mcp
uv sync --group dev
cp .env.example .env # set AESO_API_KEY
uv run aeso-mcpFrom PyPI (deferred)
Not published yet. After review and an intentional publish, install with:
export AESO_API_KEY=your-key
uvx aeso-mcpDocker
docker build -t aeso-mcp .
docker run --rm -e AESO_API_KEY=your-key -p 8000:8000 aeso-mcpObtaining an AESO API key
Register at the AESO developer portal
Subscribe to the AESO public API product
Copy the primary/secondary subscription key
Set
AESO_API_KEYin your environment (never commit it)
Missing credentials produce an actionable startup error. The key is never returned through MCP tools or logged.
Example MCP client configuration
Cursor / Claude Desktop style (stdio)
{
"mcpServers": {
"aeso": {
"command": "uvx",
"args": ["--from", "git+https://github.com/bchoi-qwe/aeso-mcp.git", "aeso-mcp"],
"env": {
"AESO_API_KEY": "your-key"
}
}
}
}HTTP transport
uv run aeso-mcp --transport http --host 127.0.0.1 --port 8000Example prompts
What is Alberta's current grid situation?
What is the current pool price?
Show Alberta pool prices over the last 24 hours.
Compare today's pool prices with yesterday's.
Which hours had the highest prices this week?
How much wind and solar are producing right now?
What happened during the largest price spike this week?
Explain the evidence associated with today's price increase.
Tools
Tool | Purpose |
| Current market overview |
| Hourly Pool Price history |
| Minute-level SMP history |
| Alberta Internal Load |
| Fuel mix / renewable history |
| Intertie flows |
| Operating reserve indicators |
| Generator outages |
| Asset registry |
| Aggregate period comparison |
| High-price event detection |
| Structured evidence (not causal prose) |
| AIL forecast vs actual accuracy |
All tools are read-only, non-destructive, and network-dependent.
Resources
URI | Content |
| Market terminology |
| Dataset catalog |
| Pool Price interpretation |
| SMP interpretation |
Data semantics
Timezone:
America/Edmonton(AESO market time). DST days may have 23 or 25 local hours.Intervals: Explicit
interval_start/interval_end(half-open ranges in requests).Units: Pool Price / SMP → CAD/MWh; load / generation / interchange / reserves → MW.
Status: Metadata includes
actual/forecast/ etc. Forecasts are never implied to be settled actuals.Finality: Operational feeds may be preliminary; do not assume final settlement.
Development
uv sync --group dev
uv run ruff check src tests
uv run pyright src
uv run pytest tests/unit tests/contract tests/mcp --cov=aeso_mcp
uv buildOptional live tests:
AESO_API_KEY=... uv run pytest tests/integration -m integrationMCP Inspector:
# Prefer the console entrypoint; or point Inspector at:
# uv run aeso-mcp
npx @modelcontextprotocol/inspector uv run aeso-mcpTests
tests/unit— time, bounds, analytics, configtests/contract— AESO APIM fixtures viarespxtests/mcp— tool/resource discovery and structured outputstests/integration— opt-in live AESO calls
Security
See SECURITY.md. Highlights: no arbitrary URL/shell/SQL tools, host allow-list, secret hygiene, bounded queries, stderr logging for stdio.
Roadmap
Human review against LIMITATIONS.md before any PyPI / MCP Registry publish
Merit order, metered volumes, and unit commitments when reliable sources exist
Optional DuckDB/Parquet historical analytics store
Broader forecast vs actual tools
Contributing
See CONTRIBUTING.md.
License
MIT — see LICENSE.
Disclaimer
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.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server for the Australian Energy Market Operator (AEMO) National Electricity Market. Plain-English access to 5-min dispatch prices, regional demand, interconnector flows, generation by fuel, rooftop PV.5MIT
- AlicenseBqualityDmaintenanceConnects AI agents to energy infrastructure with 30+ tools for managing sites, assets, dispatch, settlements, compliance, and carbon tracking.34311MIT
- Alicense-qualityAmaintenanceProvides real-time European and GB electricity grid data via MCP, including generation, prices, carbon intensity, and grid infrastructure.2095MIT
- Flicense-qualityBmaintenanceA read-only MCP server that exposes European day-ahead electricity prices for ~41 bidding zones via tools like hourly prices, cheapest hours, current price, and cross-zone summary, enabling AI agents to query energy market data.
Related MCP Connectors
Real-time electricity prices for AI agents. 40+ countries, 100+ zones. No auth required.
European day-ahead electricity prices (43 zones), accuracy-published forecasts, carbon, optimize.
Agent-native crypto market-data over MCP+REST: order flow, whales, liquidations, calibrated scores
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bchoi-qwe/aeso-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server