← Economic Indicators MCP Server
How to call this server and what JSON to expect. Intended for humans and AI agents.
Protocol: MCP Streamable HTTP (JSON-RPC 2.0 over POST, responses as text/event-stream).
Base URL: https://surn-economic-mcp.hf.space/mcp
POST /mcp
Content-Type: application/json
Accept: application/json, text/event-stream
{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2024-11-05",
"capabilities": {},
"clientInfo": {"name": "my-client", "version": "1.0"}
}
}
Response header mcp-session-id contains the session UUID. Include it on every subsequent request.
POST /mcp Content-Type: application/json Accept: application/json, text/event-stream mcp-session-id:{ "jsonrpc": "2.0", "id": 2, "method": "tools/call", "params": { "name": "get_btc_powerlaw", "arguments": {} } }
The body is Server-Sent Events. Find the line that starts with data: and parse the JSON. The tool result is in result.content[0].text (a JSON string) or in result.structuredContent.
Latest FRED observations.
Arguments: series_ids (optional list of FRED series IDs).
{
"series": {
"CPIAUCSL": {"name": "Headline CPI (SA)", "date": "2026-10-01", "value": "320.5", "units": "Index"}
},
"note": "Data from FRED. Requires FRED_API_KEY."
}
Upcoming release dates (FRED + BEA ICS, cached 6 h). FOMC uses static fallback.
Arguments: indicator (optional: "CPI", "PPI", "NFP", "PCE", "FOMC", "GDP").
{
"upcoming": {
"CPI": [{"date": "2026-12-10", "source": "FRED"}]
},
"as_of": "2026-11-19T00:00:00",
"note": "Dynamic from FRED + BEA ICS; FOMC static. Cached 6 hours."
}
Consensus forecasts (manual overrides; no free live API).
Arguments: indicator (optional).
{
"estimates": {
"CPI_next": {"headline_mom": 0.2, "core_mom": 0.3}
}
}
Combined view for one indicator: latest, next release, estimate.
Arguments: indicator (required).
Response includes indicator, latest, next_release, estimate, and optional projected_next.
Bitcoin log-log power-law residual quantile and 0–100 score.
Fits log10(close) = a + b · log10(days since genesis) on the stored daily series and returns the empirical residual quantile of the latest point.
Arguments: force_rebuild (optional bool, default false).
{
"metadata": {
"name": "btc_powerlaw_daily",
"genesis_date": "2009-01-03",
"built_at": "2026-11-19T00:06:54+00:00",
"updated_by": "3.212.25.85",
"date_next_update": "2026-11-19T12:06:54+00:00",
"n_observations": 366,
"date_range": {"start": "2025-11-19", "end": "2026-11-19"}
},
"latest": {
"date": "2026-11-19",
"days_since_genesis": 6529,
"close": 62857.58,
"source": "coingecko"
},
"quantile": 0.015,
"score": 98.5,
"fit": {"a": -16.51, "b": 5.69, "residual": -0.42, "n": 366},
"date_next_update": "2026-11-19T12:06:54+00:00",
"updated_by": "3.212.25.85",
"should_refresh": false,
"note": "quantile = empirical CDF of log residual (low = below trend). score = 100 * (1 - quantile)."
}
quantile (0–1): fraction of historical residuals ≤ current residual. Low = price far below the power-law trend (historically cheap).score (0–100): 100 × (1 − quantile). A 1.5% quantile → score ≈ 98.5 (very green).should_refresh: true only when date_next_update has passed. Dataset updates at most every 12 hours.CPIAUCSL (headline CPI), CPILFESL (core), PAYEMS (payrolls), UNRATE, PCEPI, PCEPILFE (core PCE), PPIACO, FEDFUNDS, GDP.
Economic Indicators MCP Server · Home