freshcrate
Home > MCP Servers > openecon-data

openecon-data

Give your AI agent accurate economic data. 330K indicators from FRED, World Bank, IMF, Eurostat & more. MCP server + web UI.

Description

Give your AI agent accurate economic data. 330K indicators from FRED, World Bank, IMF, Eurostat & more. MCP server + web UI.

README

OpenEcon logo

OpenEcon Data

Give your AI agent accurate economic data.
330K indicators from FRED, World Bank, IMF, Eurostat, and 6 more sources β€” one MCP command away.

Live DemoAGPL-3.0 LicenseStarsIssuesPythonMCP ServerLast Commit Website Β· Live App Β· Docs Β· Contributing


Install (One Line, Then Just Talk)

curl -fsSL https://raw.githubusercontent.com/hanlulong/openecon-data/main/scripts/install.sh | bash

That's it. The script auto-detects Claude Code and Codex, configures everything. Then just ask:

You: "What's the US GDP growth rate?"         β†’ your agent fetches real data from FRED
You: "Compare inflation across G7 countries"   β†’ World Bank data for 7 countries
You: "Bitcoin price last 30 days"              β†’ CoinGecko live data

No special syntax. No "use query_data". Just ask naturally β€” your agent handles the rest.

Manual install (if you prefer)

Claude Code:

claude mcp add --transport sse openecon-data https://data.openecon.ai/mcp --scope user

Codex:

codex mcp add openecon-data --url https://data.openecon.ai/mcp

Any MCP agent: Endpoint https://data.openecon.ai/mcp (SSE transport)

See skills/README.md for slash commands and auto-trigger options.


OpenEcon Data β€” type a query in plain English, get a chart with data from FRED, World Bank, and more

Why Your Agent Needs This

AI agents hallucinate economic data. When you ask an LLM "What is US GDP?", you get a plausible-sounding number that may be outdated or wrong. OpenEcon solves this:

Without OpenEcon With OpenEcon
Data source LLM's training data (stale) Official APIs (FRED, World Bank, IMF)
Accuracy Approximate, often wrong Verified, with source attribution
Coverage Whatever the LLM remembers 330K+ indicators, 200+ countries
Recency Months or years behind Up to real-time (FRED, ExchangeRate)
Verifiable No source link Every result includes source URL

How It Compares

Feature OpenEcon fredapi pandas-datareader fred-mcp-server
Natural language queries Yes No No No
Data sources 10+ 1 (FRED) 5 1 (FRED)
MCP server for AI agents Yes No No Yes
Web UI with charts Yes No No No
Conversational follow-ups Yes No No No
Smart indicator discovery 330K indexed Manual codes Manual codes Manual codes
Self-hostable Yes N/A N/A Yes
No code required Yes No No No

What You Can Ask

"US GDP growth last 10 years"                    β†’ FRED, quarterly chart
"Compare China, India, Brazil GDP 2018-2024"     β†’ World Bank, multi-country comparison
"Inflation rate BRICS countries 2019-2023"        β†’ World Bank, 5 countries auto-expanded
"EUR/USD exchange rate last 24 months"            β†’ ExchangeRate-API, currency pair chart
"US unemployment and CPI together since 2010"     β†’ FRED, dual-axis overlay
"China exports to the US 2020-2024"               β†’ UN Comtrade, bilateral trade flow
"Credit to GDP ratio US, UK, Japan from BIS"      β†’ BIS, financial stability data
"Bitcoin price last year"                         β†’ CoinGecko, crypto chart
"What inflation indicators does FRED have?"       β†’ Indicator discovery, text response

Conversational follow-ups work naturally:

You: "US GDP last 5 years"          β†’ chart with US GDP
You: "add Germany and Japan"         β†’ updates to 3 countries
You: "what about per capita?"        β†’ switches to GDP per capita
You: "show only 2020-2023"           β†’ narrows time range

Quick Start

Use the web app (no setup)

data.openecon.ai/chat β€” no signup, no install.

Self-host

git clone https://github.com/hanlulong/openecon-data.git
cd openecon-data
cp .env.example .env          # Add your OPENROUTER_API_KEY
pip install -r requirements.txt
npm install
python3 scripts/restart_dev.py
# Backend: http://localhost:3001  |  Frontend: http://localhost:5173
Requirements
  • Python 3.10+
  • Node.js 18+
  • An OpenRouter API key (required for LLM parsing)
  • Optional: FRED API key, Comtrade API key, CoinGecko API key
  • Optional: Supabase credentials (for auth + persistent history)

See Getting Started Guide for full setup instructions.

How It Works

  "Compare US and           β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
   Japan inflation"    ───▢ β”‚  LLM Parser  β”‚  ───▢  β”‚  LLM Router    β”‚
                            β”‚  (intent,    β”‚        β”‚  (semantic      β”‚
                            β”‚   countries, β”‚        β”‚   routing +     β”‚
                            β”‚   dates)     β”‚        β”‚   330K index)   β”‚
                            β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜        β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                                            β”‚
                            β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”          β”Œβ”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”
                            β”‚ Chart +    β”‚  ◀────── β”‚  Fetch from    β”‚
                            β”‚ CSV/JSON/  β”‚          β”‚  best provider β”‚
                            β”‚ DTA/Python β”‚          β”‚  (FRED, WB,    β”‚
                            β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜          β”‚   IMF, ...)    β”‚
                                                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  1. Parse β€” An LLM extracts intent, countries, indicators, and date range from plain English
  2. Route β€” Semantic routing picks the best provider and series from 330K+ indicators
  3. Fetch β€” Data retrieved from official APIs with automatic fallback if a source is down
  4. Return β€” Interactive chart, or structured data via MCP for your agent

Features

MCP Server β€” First-class Model Context Protocol support. Give Claude Code, Codex, or any MCP-compatible agent access to verified economic data.

Natural Language β€” No API docs, no country codes, no series IDs. Just describe what you want.

330K Indicator Discovery β€” Full-text search across FRED, World Bank, IMF, Eurostat, BIS, and more. Ask "What trade data does Comtrade have?" and get a browsable list.

Multi-Round Conversations β€” Follow up naturally: add countries, change time ranges, switch indicators. Context is preserved across turns, so "now add Germany" just works.

Smart Routing β€” The system understands what you mean, not just what you type. It picks the right provider (FRED for US data, World Bank for global comparisons, Comtrade for trade flows) based on the meaning of your query.

Multi-Country Comparisons β€” Say "G7", "BRICS", "EU", "ASEAN", "Nordic" or list specific countries. Auto-expands to all members.

Fast β€” Repeat queries return in ~0.1 seconds. First-time queries take ~4 seconds end-to-end.

Resilient β€” If one provider is down, the system automatically falls back to the next-best source. No manual retries needed.

Clarifies Ambiguity β€” When a query could mean multiple things ("inflation" could be CPI, PCE, or GDP deflator), the system asks you to pick rather than guessing wrong.

Multi-Format Export β€” CSV, JSON, DTA (Stata), and Python code. Every export includes source attribution.

Streaming β€” Real-time progress via Server-Sent Events.

Self-Hostable β€” AGPL-3.0 licensed. Add new providers by implementing a single base class.

Performance

Metric Value
First query ~4.3s end-to-end
Repeat query (cached) ~0.1s
Indicator database 330,000+ indexed series across 10 providers

Data Sources

10 providers, 330K+ indexed indicators:

Provider Coverage Indicators API Key
FRED US macroeconomic data (GDP, CPI, employment, rates) 90,000+ series Free
World Bank Global development (200+ countries, poverty, health) 16,000+ indicators None
IMF Balance of payments, exchange rates, fiscal data Extensive None
Eurostat EU member states (HICP, labor, trade) Extensive None
UN Comtrade Bilateral trade flows by HS commodity code All HS codes Free
BIS Credit-to-GDP, property prices, debt securities Curated None
Statistics Canada Canadian economic tables (labor, trade, prices) 40,000+ tables None
OECD OECD member country statistics Extensive None
ExchangeRate-API 160+ currency pairs, live and historical Live & historical Free
CoinGecko Cryptocurrency prices and market data 10,000+ coins Free

Who Is This For?

Role How they use it
AI Agent Builders Add economic data capabilities to any MCP-compatible agent β€” verified data, not hallucinations
Economists & Researchers Quick data pulls for papers without writing API code
Policy Analysts Cross-country comparisons (G7, BRICS, EU) with one query
Students Learn by exploring β€” ask questions, see data, export for assignments
Journalists Fact-check economic claims against official sources in seconds

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  User / Agent   │────▢│  FastAPI Backend  │────▢│  Data Providers          β”‚
β”‚                 β”‚     β”‚                  β”‚     β”‚                          β”‚
β”‚  "US inflation" β”‚     β”‚  LLM Parser      β”‚     β”‚  FRED Β· World Bank Β· IMF β”‚
β”‚                 │◀────│  LLM Router      │◀────│  Eurostat Β· BIS Β· ...    β”‚
β”‚  Chart + Data   β”‚     β”‚  330K Index      β”‚     β”‚                          β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
        β”‚                        β”‚
   React Frontend          MCP Endpoint
   (Vite + Recharts)     (SSE Transport)

Stack: Python Β· FastAPI Β· React Β· TypeScript Β· Vite Β· Recharts Β· Redis Β· OpenRouter

Contributing

Contributions welcome! See the Developer & Contributor Guide.

If you find this useful, a star helps others discover the project.

License

AGPL-3.0 β€” Free to use, modify, and self-host. If you run a modified version as a service, you must share your changes. For commercial licensing, contact us.

Release History

VersionChangesUrgencyDate
main@2026-04-19Latest activity on main branchHigh4/19/2026
0.0.0No release found β€” using repo HEADHigh4/9/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

MCP---Agent-Starter-KitπŸš€ Build and explore multi-agent AI workflows with ready-to-use projects for document serving, Q/A bots, and orchestration.main@2026-04-21
headroomThe Context Optimization Layer for LLM Applicationsv0.8.0
developers-guide-to-aiThe Developer's Guide to AI - A Field Guide for the Working Developermain@2026-04-09
aiA productive AI coworker that learns, self-improves, and ships work.main@2026-04-21
comfy-pilotπŸ€– Create and modify workflows effortlessly with ComfyUI's AI assistant, enabling natural conversations with agents like Claude and Gemini.main@2026-04-21