# openecon-data [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/hanlulong/openecon-data  
**GitHub Stars:** 97  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/openecon-data

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

## Tools
Capabilities this server exposes over MCP:

- **query_data** — Fetch economic and financial statistics from a natural-language question

Official time series from FRED (US macro), World Bank, IMF, Eurostat, Statistics Canada, BIS, UN Comtrade (trade flows), exchange rates, crypto prices (CoinGecko) and ChinaMacro (latest China headline macro: PMI, M2, monthly 社融/TSF increment, CPI/PPI, 10Y yield); OECD only when explicitly requested. 330,000+ indicators. Call this whenever the user wants numbers, time series, charts or cross-country comparisons of economic or financial data. Pass the user's question as `query`, verbatim, in any language, e.g. 'US unemployment rate monthly since 2020', 'Germany vs France HICP inflation 2015-2024 from Eurostat', '中国制造业PMI最近12个月', '中国M2货币供应量同比增速'. Responses carry the data points with source, units, frequency and sourceUrl. For follow-ups ('now add Japan') pass the returned conversationId. If clarificationNeeded is true, show the options (or pick the one matching the user's intent) and call again with the same conversationId.

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "openecon-data": {
    "url": "https://data.openecon.ai/mcp"
  }
}
```

## Documentation

## What openecon-data does

openecon-data gives MCP-compatible AI agents access to economic and financial statistics without requiring the agent to know provider-specific series IDs. A natural-language request is interpreted and routed to relevant official or specialized data sources, covering more than 330,000 indicators across 200+ countries.

The service is suited to questions about macroeconomic conditions, financial stability, trade flows, exchange rates, cryptocurrency prices, and China’s headline macroeconomic releases. Results include the returned observations together with metadata such as the indicator, source, unit, frequency, and a URL for verification.

It also provides a browser-based interface at `data.openecon.ai/chat`, a hosted MCP endpoint, and an HTTP API for applications that do not use MCP directly.

## How it works

The main MCP tool is `query_data`. Pass the user’s complete question in the `query` field, in any language. Example requests include asking for US unemployment since 2020, comparing German and French HICP inflation, or retrieving China’s recent manufacturing PMI.

The request is parsed for intent, indicators, geography, dates, frequency, and source selection. The service can return one or more time series for comparisons, overlays, and related measures. Sources include FRED for US macroeconomic data; World Bank, IMF, Eurostat, and Statistics Canada for international statistics; BIS for financial indicators; UN Comtrade for trade flows; exchange-rate data; CoinGecko for cryptocurrency prices; and ChinaMacro for selected Chinese releases such as PMI, M2, social financing, CPI/PPI, and the 10-year yield. OECD data is used when explicitly requested.

For a follow-up, send the `conversationId` returned by the previous request. If the response sets `clarificationNeeded` to true, present the available choices or select the one matching the user’s intent, then call the tool again with that conversation ID.

## Setup and configuration

The hosted MCP service is available at `https://data.openecon.ai/mcp` over SSE. Claude Code and Codex can be configured with that endpoint, and the repository includes an installation script that detects those clients and applies configuration.

To self-host the application, clone the repository and run `./scripts/setup.sh`. The setup creates the Python environment, installs the Node and Python dependencies, and copies `.env.example` to `.env`. The documented runtime requirements are Python 3.10+ and Node.js 18+.

Set `OPENROUTER_API_KEY` for LLM-based query parsing and `JWT_SECRET` for application authentication. A local LLM provider such as vLLM, Ollama, or LM Studio can be selected instead of OpenRouter. FRED, Comtrade, and CoinGecko API keys are optional. Supabase credentials are also optional and enable persistent history, real authentication, and Google sign-in; development uses mock authentication when they are omitted.

After setup, activate `backend/.venv` and run `npm run dev`. The backend runs on port 3001 and the frontend on port 5173.

## Tools and capabilities

- Query economic and financial statistics with natural-language questions through `query_data`.
- Search across more than 330,000 indicators and multiple data providers.
- Retrieve historical time series, multi-country comparisons, and related indicators.
- Return source attribution, units, frequency, data points, and source URLs.
- Continue a conversation with `conversationId` for changes to countries, indicators, or date ranges.
- Access the same query workflow through the hosted or self-hosted HTTP API.

## Limitations and notes

Some provider coverage depends on the selected source and its available API data. OECD data requires an explicit request. The self-hosted backend needs an LLM parsing configuration: OpenRouter by default or a supported local provider. Provider API keys such as FRED, Comtrade, and CoinGecko keys are optional rather than mandatory.

The HTTP API also exposes `POST /api/query/stream`, which returns progress as Server-Sent Events. The web application can be used without local setup through its hosted chat interface.

_Full upstream README: https://allmcps.com/mcp/openecon-data/readme_

