MCP Hub
Back to servers

econstats-mcp

Economic data MCP server that connects FRED, BLS, BEA, IMF, World Bank, and ECB to any MCP-compatible client, with built-in methodology rules to guide LLMs in selecting appropriate economic indicators.

glama
Updated
Apr 24, 2026

econstats-mcp

Economic data MCP server with an economist's methodology guide. Connects FRED, BLS, BEA, IMF, World Bank, and ECB to any MCP-compatible client.

What makes it different

Not just data access — the server includes methodology rules that teach LLMs which series to pick:

  • CPI vs PCE for inflation (and why they diverge)
  • Prime-age EPOP vs headline unemployment for labor market tightness
  • YoY % change for CPI/PPI indexes, monthly change for employment
  • BLS direct on release day (FRED lags 30-60 minutes)
  • Real wages: explains which of 4 measures it's using and why

Quick Start

# Install Bun if needed
curl -fsSL https://bun.sh/install | bash

# Run (get a free FRED API key at https://fred.stlouisfed.org/docs/api/api_key.html)
FRED_API_KEY=your-key bunx econstats-mcp

Setup

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "econstats": {
      "command": "bunx",
      "args": ["econstats-mcp"],
      "env": { "FRED_API_KEY": "your-key" }
    }
  }
}

Claude Code

Add to ~/.claude/.mcp.json:

{
  "mcpServers": {
    "econstats": {
      "type": "stdio",
      "command": "bunx",
      "args": ["econstats-mcp"],
      "env": { "FRED_API_KEY": "your-key" }
    }
  }
}

OpenBB

Connect as an MCP server in the OpenBB workspace AI settings.

API Keys

KeyRequiredGet it
FRED_API_KEYYeshttps://fred.stlouisfed.org/docs/api/api_key.html (free)
BLS_API_KEYOptionalhttps://data.bls.gov/registrationEngine/ (free, higher rate limits)
BEA_API_KEYOptionalhttps://apps.bea.gov/API/signup/ (free, for GDP detail)

IMF, World Bank, and ECB need no keys.

Tools (11)

ToolDescription
fred_searchSearch FRED series by keyword
fred_get_seriesFetch FRED data with transformations (YoY%, change, etc.)
bls_get_seriesFetch BLS data with pre-computed YoY% and monthly changes
bls_series_lookupFind BLS series IDs by keyword
bea_get_dataBEA national accounts (GDP components, state data)
imf_get_dataIMF International Financial Statistics (190 countries)
worldbank_get_dataWorld Bank development indicators (200+ countries)
worldbank_searchSearch World Bank indicators
ecb_get_dataECB data (euro area rates, HICP, money supply)
inflation_adjustConvert dollar amounts between dates using CPI-U
check_release_calendarCheck if today is a data release day

Data Sources

All data comes from free, public government APIs. We attribute all data to its source agency (Federal Reserve, BLS, BEA, IMF, World Bank, ECB). No data is redistributed — each query fetches directly from the source.

License

MIT

Reviews

No reviews yet

Sign in to write a review