[Integrations](https://spiral.ai/integrations) › [Cursor](https://spiral.ai/integrations/cursor) › [IEA energy statistics](https://spiral.ai/integrations/cursor/iea-energy-statistics)

# How to Use IEA energy statistics in Cursor

Returns IEA energy observations with reporting periods, values, units, and source references. Use it to calculate country trends or compare electricity generation, energy consumption, and fuel combustion emissions.

|  |  |
| --- | --- |
| Model | IEA energy statistics |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with IEA energy statistics in Cursor

- Use IEA energy statistics to fetch France's monthly wind, solar, nuclear, and hydro generation for 2024, then build a chart in this project using the returned units.
- Use IEA energy statistics to compare total final energy consumption in France and Germany in 2023, then add a table with the reported values and units to the dashboard.
- Use IEA energy statistics to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from IEA energy statistics and tell me what changed since last week.
- Check IEA energy statistics and summarize what you find in three bullet points.

## How to set up IEA energy statistics in Cursor

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**: Use Add to Cursor on the console's Agents & MCP page, or add this to `.cursor/mcp.json` (one project) or `~/.cursor/mcp.json` (every project):

```json
{
  "mcpServers": {
    "spiral": { "url": "https://api.spiral.ai/mcp" }
  }
}
```

2. **Sign in**: Open Cursor Settings › MCP, click Connect next to spiral, sign in to Spiral and click Authorize. No API key. Spiral then shows as connected, with its tools listed.

### Use the Spiral skill

1. **Send Cursor this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run IEA energy statistics**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "iea-org/energy/data",
    "input": {
      "countries": [
        "<countries>"
      ],
      "dataset_id": "<dataset_id>"
    }
  }'
```

Then paste one of the prompts above: Cursor finds IEA energy statistics on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/cursor

## IEA energy statistics tools and prices

- [IEA · Data](https://spiral.ai/tools/alexandria/iea-org/energy/data) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| flows |  | — | Stats flow codes (TES, TFC, INDPROD, IMPORTS, EXPORTS, TOTIND, TOTTRANS, RESIDENT, ...; CO2: CO2FUEL, ELECHEAT, TOTTRANS, TOTIND, RESIDENT, ...) or price sectors (RESID, IND, TRANS, COMM, ELGEN). Not for MES. |
| cursor |  | — | next_cursor from the previous page of the same query; maximum offset 200000. |
| year_to | 1960 to 2100 | — | year_to |
| products |  | — | Stats product codes (TOTAL, COAL, NATGAS, ELECTR, MTOTOIL, COMRENEW, GEOTHERM, HEAT, TOTPRODS; CO2: COAL, OIL, GAS, OTHER, TOTAL), MES product names (Wind, Solar, Nuclear, Hydro, Coal, Natural gas, Net electricity production, ...) or price product codes (ELECTR, NATGAS, GASOLINE, DIESEL, LPG, KEROSENE, RESFUEL, COAL). |
| frequency | A, M | — | Must match the dataset (annual highlights: A; monthly electricity statistics and monthly oil prices: M). |
| page_size | 1 to 1000 | 20 | page_size |

## What can you do with IEA energy statistics in Cursor?

Build country energy comparisons into a dashboard using IEA observations and their reported units. Check dataset coverage and available years before joining the results to country records in your project.

### Compare national electricity mixes

Find an electricity dataset, check its available years, resolve France and Germany, and compare generation by source over a shared reporting window.

### Build an energy consumption benchmark

Identify the relevant energy balance series, verify country coverage and history, and compare total final consumption for Japan, Germany, and France using the returned units.

### Prepare a monthly electricity briefing

Resolve the countries in a European market watchlist, confirm the latest available period, and summarize changes in wind, solar, hydro, and nuclear generation.

### Compare fuel combustion emissions

Find the emissions dataset and its reporting window, match France and Germany to IEA country codes, and compare reported emissions by sector.

### Check a hydro generation shortfall

Check Norway's monthly electricity coverage, retrieve hydro generation for matching months across two years, and calculate the change in reported output.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Cursor guides](https://spiral.ai/integrations/cursor)

## IEA energy statistics in other agents

- [Amp](https://spiral.ai/integrations/amp/iea-energy-statistics)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/iea-energy-statistics)
- [Claude](https://spiral.ai/integrations/claude-desktop/iea-energy-statistics)
- [Claude Code](https://spiral.ai/integrations/claude-code/iea-energy-statistics)
- [Cline](https://spiral.ai/integrations/cline/iea-energy-statistics)
- [Codex](https://spiral.ai/integrations/codex/iea-energy-statistics)
- [Devin](https://spiral.ai/integrations/devin/iea-energy-statistics)
- [dots](https://spiral.ai/integrations/dots/iea-energy-statistics)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/iea-energy-statistics)
- [Gemini](https://spiral.ai/integrations/gemini/iea-energy-statistics)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/iea-energy-statistics)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/iea-energy-statistics)
- [goose](https://spiral.ai/integrations/goose/iea-energy-statistics)
- [Grok](https://spiral.ai/integrations/grok/iea-energy-statistics)
- [Grok Build](https://spiral.ai/integrations/grok-build/iea-energy-statistics)
- [Hermes](https://spiral.ai/integrations/hermes/iea-energy-statistics)
- [Instinct](https://spiral.ai/integrations/instinct/iea-energy-statistics)
- [Manus](https://spiral.ai/integrations/manus/iea-energy-statistics)
- [Muse](https://spiral.ai/integrations/muse/iea-energy-statistics)
- [Muse Code](https://spiral.ai/integrations/muse-code/iea-energy-statistics)
- [n8n](https://spiral.ai/integrations/n8n/iea-energy-statistics)
- [Notion](https://spiral.ai/integrations/notion/iea-energy-statistics)
- [OpenClaw](https://spiral.ai/integrations/openclaw/iea-energy-statistics)
- [opencode](https://spiral.ai/integrations/opencode/iea-energy-statistics)
- [Perplexity](https://spiral.ai/integrations/perplexity/iea-energy-statistics)
- [Raycast](https://spiral.ai/integrations/raycast/iea-energy-statistics)
- [VS Code](https://spiral.ai/integrations/vscode/iea-energy-statistics)
- [Windsurf](https://spiral.ai/integrations/windsurf/iea-energy-statistics)
- [Zapier](https://spiral.ai/integrations/zapier/iea-energy-statistics)

## More Cursor guides

- [IEA energy dataset details](https://spiral.ai/integrations/cursor/iea-energy-dataset-details)
- [India eCourts case details by CNR](https://spiral.ai/integrations/cursor/india-ecourts-case-details-by-cnr)
- [IEA energy dataset catalog](https://spiral.ai/integrations/cursor/iea-energy-dataset-catalog)
- [India eCourts court complexes](https://spiral.ai/integrations/cursor/india-ecourts-court-complexes)
- [IEA country codes](https://spiral.ai/integrations/cursor/iea-country-codes)
- [India eCourts court establishments](https://spiral.ai/integrations/cursor/india-ecourts-court-establishments)

## Questions about IEA energy statistics in Cursor

**Can Cursor use IEA energy statistics?**

Yes. Add Spiral to Cursor as an MCP server, and Cursor can find and run IEA energy statistics like any built-in tool.

**How much does IEA energy statistics cost in Cursor?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Cursor plan is separate.

**Do I need an Alexandria account to use IEA energy statistics in Cursor?**

No. Spiral runs IEA energy statistics on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up IEA energy statistics in Cursor?**

About two minutes: add the hosted server, then sign in.

**Does Cursor wait while IEA energy statistics runs?**

IEA energy statistics runs in the background. Cursor starts the run, checks on it and gives you the json when it's ready.

**Does every IEA dataset cover the same countries?**

No. The Energy Statistics Data Browser covers over 170 countries and regions, while Monthly Electricity Statistics advertises 47 countries. Check coverage for the dataset you intend to use.

**How often does IEA monthly electricity data change?**

Monthly Electricity Statistics is updated monthly. Use the dataset details lookup to check current availability, since the catalog's update date is not populated.

**How far back does monthly electricity history go?**

Coverage generally starts in January 2010 for OECD countries and January 2015 for non-OECD countries. Confirm the available years for the specific dataset before choosing a comparison period.

**Can I retrieve a large historical table in one extraction?**

Observation pagination stops at an offset of 200,000. Divide broad requests into smaller country or year ranges before reaching that boundary.

