imf-mcp-server
Server Details
Query IMF SDMX 3.0 macroeconomic dataflows — WEO, BOP, CPI, exchange rates, 190 countries.
- Status
- Healthy
- Uptime
- 100.0% over the last 24 hours
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- Repository
- cyanheads/imf-mcp-server
- GitHub Stars
- 4
- Server Listing
- imf-mcp-server
- ChatGPT
- –
- Claude
- –
TDQS
Scored across 5 tools
The five tools map onto a clear, non-overlapping pipeline: discover dataflows (imf_list_databases), resolve dimension codes (imf_get_database), fetch observations (imf_query_dataset), inspect staged tables (imf_dataframe_describe), and run SQL over them (imf_dataframe_query). The only superficially similar pair, describe vs. query on DataCanvas, is explicitly distinguished by read-only metadata inspection versus SQL execution, and the descriptions reinforce the ordering requirements.
All names are snake_case with a consistent imf_ prefix, and the core data tools follow a verb_noun pattern (list_databases, get_database, query_dataset). The DataCanvas pair uses a namespace-then-verb form (imf_dataframe_describe, imf_dataframe_query), a minor ordering deviation but still highly predictable.
Five tools is tightly scoped for an IMF SDMX query server, and each one occupies a necessary step in the workflow rather than duplicating another. Nothing feels padded or missing at the surface level.
The surface covers the full lifecycle: dataflow discovery, codelist/key resolution, observation retrieval, and post-hoc SQL analysis of large results. Minor gaps exist, such as a dedicated tool for retrieving a single dataflow's full metadata or for exporting/re-querying a staged canvas outside SQL, but these are workable via existing tools.
Available Tools
5 toolsimf_dataframe_describeImf Dataframe DescribeARead-onlyIdempotentInspect
List DataCanvas tables and columns staged by a prior imf_query_dataset call. Returns each table's name, row count, and column schema (name + DuckDB type). Required before imf_dataframe_query to discover the table and column names for SQL.
Inputs: canvas_id (required). Returns: error, tables, canvas_id, table_count
imf_dataframe_queryImf Dataframe QueryARead-onlyIdempotentInspect
Run a read-only SQL SELECT against a DataCanvas table staged by imf_query_dataset. Supports multi-country comparisons, time-series aggregation, and cross-indicator joins. Requires imf_dataframe_describe first to discover table and column names. One SELECT statement per call; a leading WITH … SELECT (CTE) is accepted. DML and DDL are rejected.
Inputs: sql (required), canvas_id (required). Returns: rows, error, row_count, truncated
imf_get_databaseImf Get DatabaseARead-onlyIdempotentInspect
Fetch a dataflow's dimension list with a codelist preview for each dimension. Resolves human-readable terms to SDMX codes (e.g. "United States" → USA, "Constant prices" → NGDP_RPCH). Required before imf_query_dataset — SDMX keys are opaque without codelist lookups. Each codelist is capped at the first 50 entries by default, including previews filtered by codelist_filter. Set dimension_id to retrieve one codelist with bounded limit/offset paging after the optional codelist_filter, which keeps codes whose ID or name contains every word given. Set available_only=true to page codes the dataflow actually publishes, with series and time coverage metadata; availability filtering happens before codelist_filter and paging. The imf://database/{dataflow_id} resource provides the same bounded discovery summary. Country codes are ISO 3-letter (USA, GBR, DEU), not ISO 2-letter (US, GB, DE). The key_format field shows the exact dimension order required by imf_query_dataset. Note: codelists enumerate the code universe, not actual coverage — valid codes can still return no_data if the combination has no series in this dataflow.
Inputs: dataflow_id (required), limit, offset, version, +4 more. Returns: name, error, notice, source, +17 more
imf_list_databasesImf List DatabasesARead-onlyIdempotentInspect
List IMF SDMX dataflows available on the portal. Entry point for every query: imf_get_database and imf_query_dataset both require a dataflow id obtained here. Vintage (historical snapshot) dataflows such as WEO_2025_OCT_VINTAGE are excluded by default; set include_vintages=true to include them. Results are paged — 50 per call by default and at most 200, adjustable with limit and offset — and total_count reports how many dataflows matched. Descriptions are shortened here; imf_get_database returns the full text for a single dataflow.
Inputs: limit, filter, offset, include_vintages. Returns: cap, error, shown, notice, +7 more
imf_query_datasetImf Query DatasetARead-onlyIdempotentInspect
Query an IMF SDMX dataflow by dimension key over a time range. Returns observations with time_period, value, and status, plus the unit, scale, and decimals of each series — a key resolving to several series carries one entry per series in series_metadata, since unit and scale differ between them. An index series also carries the reference_period it is based on (e.g. 2010A, 2010=100) exactly as published, on the series and, where the dataflow publishes one per observation, on each observation. Requires imf_get_database first to obtain the correct key_format and valid dimension codes. Country codes are ISO 3-letter (USA, GBR, DEU — not US, GB, DE). Key format: dot-separated codes in DSD keyPosition order (e.g. USA.NGDP_RPCH.A for WEO). Every position must carry a code: use + to combine codes (e.g. USA+GBR.NGDP_RPCH.A) and * to match every code at a position (e.g. *.NGDP_RPCH.A for all countries); * stands alone and cannot join a + list. Codes are matched case-insensitively and checked against each dimension's codelist before the query — an unknown code is rejected with the nearest valid codes. Codelists from imf_get_database enumerate the code universe, not actual coverage — valid codes can still return no_data if the combination has no series. When a + key returns data for some requested series and none for others, missing_series names each empty one with the reason a query for it alone gives (no_data or no_data_in_range). When the extra request that recovers the unit, scale, or decimals a + key suppresses fails, unresolved_attributes names them and how to get them. start_period and end_period must be valid period strings (YYYY, YYYY-SN, YYYY-QN, YYYY-MM, or a calendar-valid YYYY-MM-DD) with start_period no later than end_period; malformed or reversed ranges are rejected. A bound covers the whole period it names, so end_period 2023 includes 2023-M12 and 2023-Q4. last_n_observations keeps each series' last N observations — 1 is each series' latest value, the cheap way to ask many countries for their latest figure. Values are in base units everywhere, staged canvas rows included: scale is the power of ten the IMF publishes a series in (value / 10^scale is the published figure), never a factor still to apply. An inline response is held to 100,000 serialized characters. With DataCanvas enabled (CANVAS_PROVIDER_TYPE=duckdb), a larger result (multi-country, long time range) spills to it and returns a preview, the attributes of its first 20 series and at most 100 observations: call imf_dataframe_describe first to inspect staged tables and columns, then imf_dataframe_query for SQL analysis. Without DataCanvas, or with it at its canvas cap when an auto-mode call omits canvas_id, a larger result returns its earliest observations with truncated=true, and retrieval_guidance names the last period returned and how to narrow the query.
Inputs: key (required), dataflow_id (required), version, agency_id, +5 more. Returns: key, error, notice, source, +17 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Unofficial IMF MCP — wraps the IMF SDMX 2.1 REST API (api.imf.org)
Macro indicators from World Bank, FRED, IMF, and OECD via unified query surface.
Search and query 1,500+ OECD statistical datasets via SDMX. Keyless.
Macroeconomic and other official data from 170+ publishers, resolved from natural language with provenance.
Related MCP Servers
- 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.306 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables searching, exploring, and querying over 1,500 OECD statistical datasets via SDMX, covering national accounts, employment, trade, PISA, health, and more.170 npm5Apache 2.0

@pipeworx/bisofficial
AlicenseNot gradedqualityCmaintenanceEnables querying Bank for International Settlements central-bank and global financial statistics via the SDMX v2 API, including credit-to-GDP gaps, curated dataflows, and full registry search with dataset fetching, without authentication.66 npm1MIT- AlicenseAqualityBmaintenanceProvides read-only access to European Central Bank SDMX data, enabling retrieval of euro exchange rates, key interest rates, HICP inflation, money supply, and euro-area bond yields without an API key or login.6PolyForm Noncommercial 1.0.0
Glama MCP Gateway
Add one secure layer between your agents and this server.