IMF (Unofficial)

v0.2.2
io.github.pipeworx-io/imf Checked 1 day ago Published 15 days ago

Unofficial IMF MCP — wraps the IMF SDMX 2.1 REST API (api.imf.org)

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_datasets

List or search the IMF's datasets — CPI, WEO (World Economic Outlook), BOP (Balance of Payments), IMTS (trade in goods), GFS (government finance), MFS (monetary and financial), FSI (financial soundness), commodity prices and ~200 more. Returns the dataset id to pass to get_data and search_indicators, plus its name and description. Pass `query` to filter by name, e.g. "inflation", "trade", "government".

ParameterTypeDescription
limitnumberMax datasets to return, 1-250 (default 50).
querystringOptional filter matched against dataset id, name and description (e.g. "inflation", "trade").

imf_get_data

Fetch an IMF time series. Identify the series by dataset plus a `dimensions` map of named codes, e.g. get_data({dataset:"CPI", dimensions:{COUNTRY:"USA", INDEX_TYPE:"CPI", COICOP_1999:"_T", TYPE_OF_TRANSFORMATION:"IX", FREQUENCY:"M"}, start:"2024-01"}). Dimension names and order differ per dataset — use search_indicators to see what a dataset accepts. Any dimension you omit is left open, returning every code for it. Returns observations as {period, value} plus the dimension values of each series.

ParameterTypeDescription
dataset *stringDataset id from get_datasets, e.g. "CPI", "WEO", "BOP", "IMTS".
dimensionsobjectMap of dimension code to value, e.g. {"COUNTRY":"USA","FREQUENCY":"M"}. A value may be a list to OR codes together: {"COUNTRY":["USA","GBR"]}. Omitted dimensions match everything. Use search_indicator…
endstringEnd period, e.g. "2025", "2024-12", "2024-Q4".
limitnumberMax series to return, 1-100 (default 20).
startstringStart period, e.g. "2020", "2024-01", "2024-Q1".

search_indicators

Discover what a dataset accepts: its dimension names in key order, and the codes available for each, filtered by `query`. Use this before get_data — e.g. search_indicators({dataset:"CPI", query:"united states"}) finds COUNTRY=USA. Without a query it returns the dimension list and a sample of codes.

ParameterTypeDescription
dataset *stringDataset id from get_datasets, e.g. "CPI".
querystringOptional term matched against code ids and names, e.g. "united states", "GDP", "monthly".