← Economic Indicators MCP Server

MCP Usage & Endpoint Reference

How to call this server and what JSON to expect. Intended for humans and AI agents.

Endpoint

Protocol: MCP Streamable HTTP (JSON-RPC 2.0 over POST, responses as text/event-stream).

Base URL: https://surn-economic-mcp.hf.space/mcp

1. Initialize a session

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.

2. Call a tool

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.

Tools

get_current_values

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."
}

get_next_releases

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."
}

get_estimates

Consensus forecasts (manual overrides; no free live API).

Arguments: indicator (optional).

{
  "estimates": {
    "CPI_next": {"headline_mom": 0.2, "core_mom": 0.3}
  }
}

get_indicator_summary

Combined view for one indicator: latest, next release, estimate.

Arguments: indicator (required).

Response includes indicator, latest, next_release, estimate, and optional projected_next.

get_btc_powerlaw

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)."
}

Series IDs

CPIAUCSL (headline CPI), CPILFESL (core), PAYEMS (payrolls), UNRATE, PCEPI, PCEPILFE (core PCE), PPIACO, FEDFUNDS, GDP.

Economic Indicators MCP Server · Home