mcpField
I
IMF Data MCP

IMF Data MCP

Local
github.com/c-cfData & Analytics14Updated 29w ago

About IMF Data MCP

IMF Data MCP connects clients to economic datasets from the IMF’s current data.imf.org SDMX API. It lets analysts and researchers discover databases and dimensions, then retrieve filtered time series.

Key features

  1. 01List and search IMF databases
  2. 02Inspect query dimensions and valid codes
  3. 03Fetch filtered time series
  4. 04Apply automatic rate limiting and retries

Use cases

  1. 01Find databases for an economic topic
  2. 02Retrieve country-specific indicator data
  3. 03Analyze time series across a year range

MCP support

The server exposes IMF database discovery and data retrieval as MCP tools. It also provides IMF data query capabilities to MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"imf-data": {
"command": "uvx",
"args": [
"git+https://github.com/c-cf/imf-data-mcp"
]
}
}
}
Run commanduvx 'git+https://github.com/c-cf/imf-data-mcp'

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
pypigit+https://github.com/c-cf/imf-data-mcp

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

IMF Data MCP

A Model Context Protocol server for IMF economic data, built on imfp and the IMF SDMX API at data.imf.org.

v0.2.0 — Breaking change: The old server called dataservices.imf.org, which the IMF decommissioned in 2025. All requests timed out as a result. This version migrates to imfp, which targets the current data.imf.org SDMX 3.0 API and is actively maintained.


Installation

Using uv (recommended)
uvx --from git+https://github.com/c-cf/imf-data-mcp imf-data-mcp
Using pip
pip install git+https://github.com/c-cf/imf-data-mcp.git

Claude Desktop configuration

{
  "mcpServers": {
    "imf": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/c-cf/imf-data-mcp", "imf-data-mcp"]
    }
  }
}

Or, if installed via pip:

{
  "mcpServers": {
    "imf": {
      "command": "imf-data-mcp"
    }
  }
}

Available tools

ToolDescription
imf_list_databasesList all ~155 IMF databases with their IDs
imf_search_databasesFilter databases by keyword (e.g. "inflation", "trade")
imf_get_parameter_defsList query dimensions for a database
imf_get_parameter_codesList valid codes for a dimension, with optional search
imf_fetch_dataFetch time series data with year range and dimension filters

Typical workflow

1. imf_search_databases(keyword="consumer price")
   → CPI, CPI_WCA, ...

2. imf_get_parameter_defs(database_id="CPI")
   → country, index_type, coicop_1999, frequency, ...

3. imf_get_parameter_codes(database_id="CPI", parameter="country", search="austria")
   → AUT

4. imf_fetch_data(
       database_id="CPI",
       start_year=2015, end_year=2023,
       filters={"country": ["AUT"], "frequency": ["M"]}
   )

Common database IDs

TopicID
Consumer PricesCPI
Producer PricesPPI
National Accounts (Annual)ANEA
National Accounts (Quarterly)QNEA
Balance of PaymentsBOP_AGG
Exchange RatesER_2026_JAN_VINTAGE
Commodity PricesPCPS
Fiscal MonitorFM
Gov. Finance StatisticsGFS_COFOG
Monetary StatisticsMFS_CBS, MFS_MA, MFS_IR
Financial SoundnessFSIC
Trade in ServicesITS
SDG DataSDG

Rate limits

The IMF API allows roughly 10 requests / 5 seconds. imfp handles rate limiting and retries automatically.


Debugging

npx @modelcontextprotocol/inspector imf-data-mcp

License

Apache 2.0

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.