loading…
Search for a command to run...
loading…
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 s
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.
Economic data MCP server with an economist's methodology guide. Connects FRED, BLS, BEA, IMF, World Bank, and ECB to any MCP-compatible client.
Not just data access — the server includes methodology rules that teach LLMs which series to pick:
# 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
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"econstats": {
"command": "bunx",
"args": ["econstats-mcp"],
"env": { "FRED_API_KEY": "your-key" }
}
}
}
Add to ~/.claude/.mcp.json:
{
"mcpServers": {
"econstats": {
"type": "stdio",
"command": "bunx",
"args": ["econstats-mcp"],
"env": { "FRED_API_KEY": "your-key" }
}
}
}
Connect as an MCP server in the OpenBB workspace AI settings.
| Key | Required | Get it |
|---|---|---|
FRED_API_KEY |
Yes | https://fred.stlouisfed.org/docs/api/api_key.html (free) |
BLS_API_KEY |
Optional | https://data.bls.gov/registrationEngine/ (free, higher rate limits) |
BEA_API_KEY |
Optional | https://apps.bea.gov/API/signup/ (free, for GDP detail) |
IMF, World Bank, and ECB need no keys.
The server now uses a two-layer cache:
If you are running a shared MCP endpoint for OpenBB users, set these optional env vars:
| Key | Required | Purpose |
|---|---|---|
UPSTASH_REDIS_REST_URL |
Optional | Shared cache backend URL |
UPSTASH_REDIS_REST_TOKEN |
Optional | Shared cache backend token |
CACHE_NAMESPACE |
Optional | Cache prefix, defaults to econstats:v2 |
PREFETCH_HOT_SERIES |
Optional | Set to true only for long-lived hosted processes |
TTL policy is source-aware:
PAYEMS, UNRATE, CPIAUCSL, CPILFESL, PCEPILFE: 15 minutesThe cache layer also deduplicates in-flight requests, so a burst of identical OpenBB tool calls only triggers one upstream API request.
Startup prefetch is disabled by default because short-lived stdio clients can create unnecessary upstream traffic. Turn it on only when you are running a persistent shared MCP service.
| Tool | Description |
|---|---|
fred_search |
Search FRED series by keyword |
fred_get_series |
Fetch FRED data with transformations (YoY%, change, etc.) |
bls_get_series |
Fetch BLS data with pre-computed YoY% and monthly changes |
bls_series_lookup |
Find BLS series IDs by keyword |
bea_get_data |
BEA national accounts (GDP components, state data) |
imf_get_data |
IMF International Financial Statistics (190 countries) |
worldbank_get_data |
World Bank development indicators (200+ countries) |
worldbank_search |
Search World Bank indicators |
ecb_get_data |
ECB data (euro area rates, HICP, money supply) |
inflation_adjust |
Convert dollar amounts between dates using CPI-U |
check_release_calendar |
Check if today is a data release day |
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.
MIT
Run in your terminal:
claude mcp add econstats-mcp -- npx CSA PROJECT - FZCO © 2026 IFZA Business Park, DDP, Premises Number 31174 - 001
Security
Low riskAutomated heuristic from public metadata — not a security guarantee.