GCC Energy Sector Price Hub logo
GCC Energy Sector Price Hub

REST API & MCP Agent Documentation

Programmatic and AI-agent interfaces for ChatGPT, Claude, Antigravity & DeepSeek — returning verified prices, exact units/currencies, licensing metadata, staleness flags, and nearest alternatives.

Agent Protocol Telemetry
REST + OpenAPI + MCP Online
10 MCP Tools
API Key Required · /api/mcp · /api/v1/*Open Econometric Lab →
Secure Connector Prompt

Connect Your AI Agent Safely (Keep Your API Key in Tool Settings)

Configure your email-verified API key inside Custom GPT Actions or MCP client headers (X-API-Key). Never paste secret keys into chat transcripts.

ChatGPT (OpenAI) official logoClaude (Anthropic) official logoGoogle Antigravity official logoDeepSeek official logo
Canonical Reference Path
https://egcc.sci-database.com/docs
Use your configured GCC Energy Sector Price Hub Action / MCP connector (MCP: https://egcc.sci-database.com/api/mcp) to query verified GCC-6 energy, utility tariff, solar PPA, water, and industrial material prices without interpolation.
AI Agent Integration Hub

Add This API to ChatGPT, Claude, Antigravity & DeepSeek

ChatGPT (OpenAI) official logo

Import OpenAPI 3.1 directly into ChatGPT Custom GPT Actions

Website: chatgpt.com
  1. 1Open chatgpt.com → Explore GPTs → Create → Configure → Actions → Import from URL https://egcc.sci-database.com/api/v1/openapi.json?api_key=gccp_live_YOUR_KEY.
  2. 2Under Authentication, choose API Key → Custom Header Name: X-API-Key, and save your email-verified gccp_live_... key server-side (never paste keys into chat).
  3. 3Paste the Instructions below so ChatGPT fetches GCC-6 series and cites unit, currency, period, price_type, source_url, and licence.
GPT Instructions (Paste into Custom GPT)

Fetch GCC energy, utility tariff, retail fuel, petrochemical, and industrial materials prices via GCC Energy Sector Price Hub (https://egcc.sci-database.com/api/v1/openapi.json). Support queries across QAT, SAU, ARE, KWT, OMN, BHR, and global markers. Do not interpolate missing periods; report value, unit, currency, period, price_type, source_url, and licence.

OpenAPI 3.1 Action Schema URL
https://egcc.sci-database.com/api/v1/openapi.json?api_key=gccp_live_YOUR_KEY
Endpoints: https://egcc.sci-database.com/api/mcp • /api/v1/panelGet API Key (Required: 1,000 req/mo) →

1. REST API Endpoints

EndpointPurposeKey Parameters
GET /api/v1/seriesDiscover series across GCC & benchmarksq, country, commodity_group, price_type, storage_mode, stale_only
GET /api/v1/series/:idMetadata, staleness, tariff slabs, citation, alternativesid
GET /api/v1/series/:id/observationsHistorical observations with provenance & conversionstart, end, limit, target_currency, target_unit, format=json|csv
GET /api/v1/coverage3D Commodity × Country × Price Type matrix—
GET /api/v1/convertStandalone unit/currency conversionvalue, from_unit, to_unit, from_currency, to_currency, commodity_group
GET /api/v1/panelMulti-series aligned econometric panel & correlation statsids, start, end, target_currency, format=json|csv
GET /api/v1/statusPublic-safe data freshness summary & stale series notice (API key required)—
POST /api/v1/keysIssue free-trial developer API key (1,000 req/mo, 120 req/min){ label, email }

Worked Examples (API Key Required)

cURL — Query & Convert
# 1. Discover Qatari series (compact discovery mode)
curl -s -H "X-API-Key: gccp_live_YOUR_KEY" \
  "https://egcc.sci-database.com/api/v1/series?country=QAT&view=compact"

# 2. Fetch Saudi rebar converted to USD/mt
curl -s -H "X-API-Key: gccp_live_YOUR_KEY" \
  "https://egcc.sci-database.com/api/v1/series/sau.materials.steel_rebar.benchmark/observations?target_currency=USD&limit=5"

# 3. Private vs. Sovereign Subsidy Wedge across GCC-6
curl -s -H "X-API-Key: gccp_live_YOUR_KEY" \
  "https://egcc.sci-database.com/api/v1/wedge"

# 4. Physical conversion (preserve regulated_tariff or default derived_estimate)
curl -s -H "X-API-Key: gccp_live_YOUR_KEY" \
  "https://egcc.sci-database.com/api/v1/convert?value=0.13&from_unit=kWh&to_unit=MWh&from_currency=QAR&to_currency=USD&commodity_group=electricity&source_price_type=regulated_tariff"
Python — Research Notebook
import requests

r = requests.get(
  "https://egcc.sci-database.com/api/v1/series/wld.crude.dubai_fateh.benchmark/observations",
  params={"start": "2025-01", "target_currency": "QAR"},
  headers={"X-API-Key": "gccp_live_YOUR_KEY"}  # required
).json()

latest = r["observations"][0]
print(latest["period"], latest["value"], latest["currency"], latest["price_type"])
print("Source:", latest["source_url"], "| Licence:", latest["licence"])

2. MCP Server (Streamable HTTP & Local stdio)

Connect any MCP-compatible AI agent (Claude Desktop, Cursor, Antigravity, or custom SDK clients) either to the remote Streamable HTTP endpoint /api/mcp (with X-API-Key) or via local stdio (npm run mcp).

MCP Client Config (Remote HTTP or Local stdio)
{
  "mcpServers": {
    "gcc-energy-price-hub-claude": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://egcc.sci-database.com/api/mcp", "--header", "X-API-Key:gccp_live_YOUR_KEY"]
    },
    "gcc-energy-price-hub-http": {
      "serverUrl": "https://egcc.sci-database.com/api/mcp",
      "headers": {
        "X-API-Key": "gccp_live_YOUR_KEY"
      }
    },
    "gcc-energy-price-hub-stdio": {
      "command": "npm",
      "args": ["run", "--silent", "mcp"],
      "cwd": "/path/to/gcc-energy-price-hub"
    }
  }
}
Direct JSON-RPC Test (Streamable HTTP)
curl -s -X POST https://egcc.sci-database.com/api/mcp \
  -H "X-API-Key: gccp_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "get_latest_price",
      "arguments": { "series_id": "qat.electricity.kahramaa_res_tier1.tariff" }
    }
  }'