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.
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.
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.
Add This API to ChatGPT, Claude, Antigravity & DeepSeek
Import OpenAPI 3.1 directly into ChatGPT Custom GPT Actions
Website: chatgpt.com- 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.
- 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).
- 3Paste the Instructions below so ChatGPT fetches GCC-6 series and cites unit, currency, period, price_type, source_url, and licence.
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.
https://egcc.sci-database.com/api/v1/openapi.json?api_key=gccp_live_YOUR_KEY
https://egcc.sci-database.com/api/mcp • /api/v1/panelGet API Key (Required: 1,000 req/mo) →1. REST API Endpoints
| Endpoint | Purpose | Key Parameters |
|---|---|---|
| GET /api/v1/series | Discover series across GCC & benchmarks | q, country, commodity_group, price_type, storage_mode, stale_only |
| GET /api/v1/series/:id | Metadata, staleness, tariff slabs, citation, alternatives | id |
| GET /api/v1/series/:id/observations | Historical observations with provenance & conversion | start, end, limit, target_currency, target_unit, format=json|csv |
| GET /api/v1/coverage | 3D Commodity × Country × Price Type matrix | — |
| GET /api/v1/convert | Standalone unit/currency conversion | value, from_unit, to_unit, from_currency, to_currency, commodity_group |
| GET /api/v1/panel | Multi-series aligned econometric panel & correlation stats | ids, start, end, target_currency, format=json|csv |
| GET /api/v1/status | Public-safe data freshness summary & stale series notice (API key required) | — |
| POST /api/v1/keys | Issue free-trial developer API key (1,000 req/mo, 120 req/min) | { label, email } |
Worked Examples (API Key Required)
# 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"
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).
{
"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"
}
}
}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" }
}
}'