Global Economic Statistical MCP
This server is an MCP toolset for finding, retrieving, validating, comparing, and analysing official macroeconomic statistics from institutions like the Bank of Korea, OECD, IMF, BIS, ECB, Eurostat, and World Bank.
Search: discover concepts, indicators, datasets, ECOS tables/items, and institutional dataflows (
search_statistics).Explore metadata: inspect dataset structures, dimensions, codelists, and SDMX/ECOS keys (
get_metadata).Retrieve data: get validated time series by concept+country, ECOS table, or SDMX dataflow, with provenance, citation, transforms, rebasing, and formatting (
get_data).Cross-validate: compare the same concept across institutions and see MATCH/DIFFER/UNRESOLVED status (
get_datawithcross_validate=Trueorcompare_series).Compare series: align multiple economies, institutions, or concepts, compute correlations, and normalize (index/z-score) (
compare_series).Analyse trends: calculate summary statistics like growth, volatility, drawdowns, CAGR, and trend fits (
calculate_statistics).Explain indicators: get definitions, source mappings per economy, and Korean glossary/methodology notes (
explain_indicator).
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Global Economic Statistical MCP Compare CPI inflation in the US and Euro area since 2020."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π Global Economic Statistical MCP
Global economic statistics infrastructure for AI-powered macro research.
An MCP server that lets an LLM find, retrieve, compare and analyse official macroeconomic statistics from central banks and international organisations. You ask for a concept (policy rate, CPI inflation, real GDP, current account, β¦) for an economy. The server fetches it from the right institution, converts it to one common time-series format, checks it against other institutions, and cites its source.
LLM
β
βΌ
βββββββββββββββββββ
β Statistical MCP β
β 6 Tools β
ββββββββββ¬βββββββββ
β
βΌ
βββββββββββββββββββ
β Concept Resolverβ
ββββββββββ¬βββββββββ
β
βββββββββββββββ΄ββββββββββββββ
βΌ βΌ
Concept Catalog Provider Catalog
β β
βββββββββββββββ¬ββββββββββββββ
βΌ
Provider Resolver
β
βββββββββββββββββββββΌββββββββββββββββββββ
βΌ βΌ βΌ
ECOS SDMX Layer Data360
(REST, Korea) β (World Bank)
β ββββββββ¬βββββββΌβββββββ¬βββββββ β
β βΌ βΌ βΌ βΌ βΌ β
β OECD IMF BIS ECB Eurostat β
β β β β β β β
βββββ΄βββββββ΄βββββββ΄βββββββ΄βββββββ΄ββββββββ
β
βΌ
βββββββββββββββββββ
β Canonical Model β
ββββββββββ¬βββββββββ
β
ββββββββ΄βββββββ
βΌ βΌ
Validation Provenance
β β
ββββββββ¬βββββββ
βΌ
Analysisπ Installation
Requires uv. Check connectivity first:
ECOS_API_KEY=your_key uvx --from git+https://github.com/kgy0617/global-economic-statistical-mcp global-economic-statistical-mcp --checkClaude Desktop (claude_desktop_config.json) / Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"global-econ-stats": {
"command": "uvx",
"args": ["--from", "git+https://github.com/kgy0617/global-economic-statistical-mcp", "global-economic-statistical-mcp"],
"env": { "ECOS_API_KEY": "your_api_key_here" }
}
}
}Claude Code
claude mcp add global-econ-stats -e ECOS_API_KEY=your_key -- uvx --from git+https://github.com/kgy0617/global-economic-statistical-mcp global-economic-statistical-mcpEnvironment variable | Description |
| Bank of Korea key (free registration). Without it a sample key is used (10 rows per call). No other institution needs a key. |
| Where validation results are stored (default |
|
|
Related MCP server: IMF MCP
π Coverage
Economies: Korea KR, United States US, Japan JP, China CN, euro area EA, United Kingdom GB. Every mapping for these six is re-checked against the live APIs daily. About 40 more economies work through the same mappings without daily checks (list: gesm://countries).
Institutions
| Institution | Covers |
| Bank of Korea | Korea (the only source that needs a key) |
| OECD | OECD members and major economies |
| IMF | Most countries |
| Bank for International Settlements | Policy rates, exchange rates, prices, property |
| European Central Bank | Euro area and EU member states |
| Eurostat | Euro area and EU member states |
| World Bank (Data360) | Most countries; annual development indicators |
Not every institution publishes every concept. See docs/sources.md for which institution serves what.
π§° Tools
Tool | What it does |
| Find concepts, datasets and indicators across all institutions. |
| A dataset's structure and codes, or an indicator's definition. |
| Retrieve a series, with validation and a citation. |
| Align several economies, institutions or concepts and compute correlations. |
| Growth, trend, volatility, drawdown and other summary statistics. |
| What a concept means and which sources serve each economy. |
Ask by concept; country is required:
get_data(indicator="CPI_YOY", country="EA") # the server picks the source
get_data(indicator="POLICY_RATE", country="US", source="BIS") # or choose oneYou can also query an institution directly (source + dataflow + key) or a Bank of Korea table (stat_code). Options: transform (yoy/pop), rebase_period, unit_mult, start_date/end_date.
31 concepts: policy, short- and long-term rates; CPI and inflation; PPI; GDP growth and levels; unemployment; current account, goods balance, FX reserves; exchange rates; share prices; consumer and business confidence; house prices; and annual population, GDP per capita (PPP) and current account/GDP. Full list: gesm://concepts.
π Validation
Every series comes with checks on country, frequency, unit, scale, period, missing values, duplicates and revisions.
With cross_validate=True (or compare_series), the same concept is fetched from every institution that publishes it and compared period by period. Each result is one of:
Status | Meaning |
| The institutions agree (within tolerance). |
| They differ for a known reason (e.g. seasonal adjustment). |
| They differ and the cause is not known. Reported, never hidden. |
| Not enough data to compare. |
Official sources do not always agree. Latest report for the six economies: MATCH 43 Β· DIFFER 3 Β· UNRESOLVED 15 Β· NOT_COMPARED 1. See docs/validation.md for the details.
π§Ύ Provenance
Every series carries its institution, dataset, series key, retrieval time, query URL, any transformation applied, and a ready-to-use citation. output_format="sdmx" returns an SDMX-JSON data message.
π Examples
"How has monetary policy diverged across the US, the euro area and Japan?" β
compare_series(series=[{"indicator":"POLICY_RATE","country":"US"}, {"indicator":"POLICY_RATE","country":"EA"}, {"indicator":"POLICY_RATE","country":"JP"}])"Do Eurostat, the ECB and the BIS agree on euro-area inflation?" β
get_data(indicator="CPI_YOY", country="EA", cross_validate=True)"Germany's unemployment rate" β
get_data(indicator="UNEMPLOYMENT_RATE_SA", country="DE", source="Eurostat")"Trend and volatility of Japanese 10-year yields" β
calculate_statistics(indicator="LONG_TERM_RATE", country="JP")"GDP per capita (PPP) over 20 years" β
get_data(indicator="GDP_PER_CAPITA_PPP", country="CN", recent_years=20)
Prompts: macro-economic-briefing, compare-countries, analyze-economic-trend.
β οΈ Limitations
Institutions differ in methods, base years and revisions. Cross-validation shows where they differ; it does not decide which one is right.
World Bank indicators are annual and published with a lag.
OECD limits requests per IP; under heavy use the server falls back to other institutions.
Only the six default economies are checked daily.
π§ͺ Development
git clone https://github.com/kgy0617/global-economic-statistical-mcp.git
cd global-economic-statistical-mcp
uv sync
uv run pytest # offline tests (all institutions faked)
uv run pytest -m live # live API checks for the six economiesLicense: MIT.
Available Tools
6 toolscalculate_statisticsCalculate statisticsARead-onlyIdempotent
Summary statistics of a series (addressed the same way as get_data).
Per series: count, first/last, min/max (with periods), mean, median, std, change/change_pct, cagr_pct,
trend_per_year/trend_r2, latest_pop_pct, pop_pct_std, max_drawdown_pct, latest_yoy_pct, mean_yoy_pct.
Rates (interest rates, inflation) change in percentage points. Validation and provenance are included.
Args:
indicator: concept id or name
country: economy, ISO code or EA (required with indicator)
source: ECOS | OECD | IMF | BIS
stat_code: ECOS table code
cycle: frequency
item_code1..4: ECOS item codes
dataflow: SDMX dataflow
key: SDMX series key
start_date: start period
end_date: end period
recent_years: window
Returns:
statistics, validation status and provenance per series
Inputs: key, cycle, source, country, +10 more.
compare_seriesCompare series and cross-validateARead-onlyIdempotent
Align 2-6 series to one frequency and compare them: across economies, institutions or concepts.
Examples:
- economies: [{"indicator":"POLICY_RATE","country":"US"}, {"indicator":"POLICY_RATE","country":"EA"}]
- institutions: [{"indicator":"CPI","country":"CN","source":"IMF"}, {"indicator":"CPI","country":"CN","source":"BIS"}]
β the same concept and economy from different institutions adds cross_validation automatically
- concepts: [{"indicator":"POLICY_RATE","country":"GB"}, {"indicator":"CPI_YOY","country":"GB"}]
Args:
series: list of series (indicator/country/source, or stat_code/..., or source/dataflow/key/cycle)
start_date: start period (default: the last recent_years years)
end_date: end period
recent_years: window (default 3)
frequency: comparison frequency (default: the lowest one)
aggregation: "mean" | "last" | "first" | "sum" (default per concept: flows such as the current account
or GDP are summed, stocks such as reserves take the period end, everything else is averaged)
normalize_method: "none" | "index" (first period = 100) | "zscore"
join: "inner" | "outer"
output_format: "compact" | "csv"
Returns:
the aligned table, correlations, provenance and validation per series, and cross-validation where it applies
Inputs: series (required), join, end_date, frequency, +5 more.
explain_indicatorExplain indicatorARead-onlyIdempotent
Explain what an indicator measures and which sources (institution, dataflow, key) serve each economy.
Returns the concept definition, its source mappings with rendered keys, and for Korean statistics the
Bank of Korea glossary definition, methodology notes and related ECOS tables.
Args:
term: indicator or term (e.g. "CPI_YOY", "policy rate", "unemployment", "κ²½μ μ¬λ¦¬μ§μ")
country: economy whose sources to show (default: every verified economy)
stat_code: a specific ECOS table to explain
language: "kr" | "en" (Bank of Korea glossary and methodology)
Returns:
concept (definition, unit, sources), sources per economy, definition (glossary), methodology, tables
Inputs: term (required), country, language, stat_code.
get_dataGet data (validated, with provenance)ARead-onlyIdempotent
Retrieve a time series in the canonical model, with validation and provenance.
Three ways to ask (use one):
1. Concept: indicator + country (+ source, cycle), e.g. indicator="CPI_YOY", country="US".
Korea uses ECOS first; other economies OECD, IMF and BIS. If a source has no data, the next one is tried.
2. ECOS table (Korea): stat_code (+ cycle, item_code1..4)
3. SDMX dataflow: source (OECD | IMF | BIS) + dataflow + key + cycle
* validation: country, frequency, unit (and index base), scale, period, missing, duplicate and revision checks (pass/info/warn/fail)
* cross_validate=True: fetch the concept from every source and compare period by period;
the result is MATCH, DIFFER (documented cause) or UNRESOLVED (unexplained difference)
* dates: "2024", "2024-03", "2024Q1", "2024-03-15" are converted; default window 3 months for daily data, else 2 years
* transform: "yoy" / "pop" % change β value becomes the change and the level is kept
* rebase_period: rebase an index to that period = 100 (e.g. "2020")
Args:
indicator: concept id or name (see search_statistics(scope="concepts"))
country: economy, ISO code or EA (required with indicator; with a direct SDMX query it enables the country check)
source: ECOS | OECD | IMF | BIS
stat_code: ECOS table code
cycle: frequency A/S/Q/M/SM/D
item_code1..4: ECOS item codes
dataflow: SDMX dataflow (e.g. "OECD.SDD.STES:DSD_STES@DF_FINMARK(4.0)")
key: SDMX series key (e.g. "USA.M.IRLT.PA._Z._Z._Z._Z.N")
start_date: start period
end_date: end period
recent_years: window when dates are omitted
transform: "yoy" | "pop" | "none"
changes_only: only periods where the value changed (default for policy rates)
rebase_period: index rebase period
unit_mult: rescale values to 10^unit_mult (e.g. 12 turns a billions (9) series into trillions)
cross_validate: include cross-validation across institutions
output_format: "compact" | "csv" | "json" | "sdmx"
prefer_latest: when ECOS results are truncated, keep the latest periods
start_count: ECOS first row
end_count: ECOS last row
language: "kr" | "en" (ECOS names)
Returns:
series (periods and values), provenance (source and citation), validation, and optionally cross_validation
Inputs: key, cycle, source, country, +20 more.
get_metadataGet structure (metadata)ARead-onlyIdempotent
Return the structure (dimensions and codelists) of a dataset, to find the codes get_data needs.
- OECD, IMF, BIS: source + dataflow β the dimensions and codelists of the institution's own DSD.
A series key is the codes joined with '.' in dimension order (e.g. BIS WS_CBPOL β 'M.US').
- ECOS: stat_code β the table's structure mapped to SDMX (FREQ + ITEM_CODE1..4, coverage, units).
output_format="sdmx" returns an SDMX-JSON structure message.
Args:
stat_code: ECOS table code (e.g. "901Y009")
source: OECD | IMF | BIS (with dataflow)
dataflow: SDMX dataflow (e.g. "BIS:WS_CBPOL(1.0)", "IMF.STA:CPI")
code_keyword: filter codes by name or value (e.g. "Japan", "JPN", "current account")
codes_limit: maximum codes per dimension (default 30)
output_format: "compact" | "sdmx" (ECOS only)
language: "kr" | "en" (ECOS names)
Returns:
dimensions, codes per dimension, a key template
Inputs: source, dataflow, language, stat_code, +3 more.
search_statisticsSearch statisticsARead-onlyIdempotent
Search concepts, OECD/IMF/BIS dataflows and Bank of Korea (ECOS) tables and items. The first step before retrieval.
scope:
- "all" (default): concepts + ECOS items + ECOS tables + international dataflows
- "concepts": country-agnostic concepts mapped across institutions (retrieve with get_data(indicator=..., country=...))
- "items": ECOS items (e.g. 'μ' rice, 'νλ°μ ' gasoline) from an index generated from the ECOS API
- "tables": ECOS tables (without query: children of the parent_code category)
- "dataflows": OECD, IMF and BIS dataflows (every word must match the English name or id; source narrows the institution)
- "key_statistics": latest values of the Bank of Korea's 100 key statistics
Args:
query: search terms (e.g. "policy rate", "unemployment", "inflation", "λ¬Όκ°")
scope: "all" | "concepts" | "items" | "tables" | "dataflows" | "key_statistics"
source: institution for dataflow search (OECD | IMF | BIS)
parent_code: ECOS table category code
searchable_only: ECOS tables that can be queried only
limit: maximum results per category
language: language of key_statistics ("kr" | "en")
Returns:
results per category (concepts, items, tables, dataflows, key_statistics)
Inputs: limit, query, scope, source, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 6 tools
Each tool has a distinct purpose: search discovery, structural metadata, data retrieval, multi-series comparison, summary statistics, and indicator explanation. There is no overlap or ambiguity in their roles.
All tool names follow a consistent verb_noun pattern (search_statistics, get_metadata, get_data, compare_series, calculate_statistics, explain_indicator), making the API predictable and easy to navigate.
Six tools form a well-scoped set for a statistical data server, covering the essential operations without redundancy or bloat. Each tool is justified by the domain's needs.
The tools cover the full workflow: search to discover, metadata to understand structure, retrieval, comparison, analysis, and explanation. No significant gaps appear for the stated purpose of global economic statistics.
Related MCP Connectors
Macroeconomic and other official data from 170+ publishers, resolved from natural language with provenance.
Official economic statistics for AI agents: GDP, inflation, trade and debt for 150+ countries.
Official statistics for AI agents: Eurostat, World Bank, OECD, IMF and WHO data for 150+ countries.
Macro data for AI agents: GDP, inflation, unemployment and more (World Bank, US BLS). No keys.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI assistants to discover, retrieve, and compare official international development indicators from sources such as the World Bank, FAOSTAT, WHO, UNICEF, and IMF, while preserving source identifiers, units, and citations.102MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to query cross-country macroeconomic and financial statistics, including GDP, inflation, fiscal balance, debt, exchange rates, trade, and balance-of-payments data for comparison and time-series analysis.94 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to access official statistical and economic indicator datasets from Eurostat, World Bank, OECD, IMF, WHO, and national statistical offices across 150+ countries through natural-language dataset discovery, inspection, time-series retrieval, SQL queries, CSV export, and account/watchlist management.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to browse the complete economic data catalog, search for series by keywords or tags, and retrieve observations with date ranges, frequency aggregation, and transformations. It provides access to more than 800,000 time series through three tools.331 npmAGPL 3.0