IMF Data MCP Server
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 toimfp, which targets the currentdata.imf.orgSDMX 3.0 API and is actively maintained.
Installation
Using uv (recommended)
uvx --from git+https://github.com/c-cf/imf-data-mcp imf-data-mcpUsing pip
pip install git+https://github.com/c-cf/imf-data-mcp.gitClaude 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
Tool | Description |
| List all ~155 IMF databases with their IDs |
| Filter databases by keyword (e.g. |
| List query dimensions for a database |
| List valid codes for a dimension, with optional search |
| Fetch 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
Topic | ID |
Consumer Prices |
|
Producer Prices |
|
National Accounts (Annual) |
|
National Accounts (Quarterly) |
|
Balance of Payments |
|
Exchange Rates |
|
Commodity Prices |
|
Fiscal Monitor |
|
Gov. Finance Statistics |
|
Monetary Statistics |
|
Financial Soundness |
|
Trade in Services |
|
SDG Data |
|
Rate limits
The IMF API allows roughly 10 requests / 5 seconds. imfp handles
rate limiting and retries automatically.
Debugging
npx @modelcontextprotocol/inspector imf-data-mcpLicense
Apache 2.0
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/c-cf/imf-data-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server