Connect IMF Data to Codex
Query IMF Data directly from Codex. Arlet links the two through one MCP connection and takes care of API keys.
Connects your AI client to IMF Data via the SDMX 3.0 API (api.imf.org). The legacy SDMX 2.0 endpoints (dataservices.imf.org) are retired, and old IFS-style series codes do not carry over — find the current dataflow first.
Tools:
- search_imf_dataflows: keyword search over all dataflows (list cached in the runtime).
- get_imf_dataflow_dimensions: dimension order and codes for one dataflow; shows the exact key template for the data query.
- get_imf_data: observations for a dimension key like 'USA.CPI.CP01.IX.A' ('*' = wildcard), with lastNObservations control.
Attribution: data are from IMF Data (https://data.imf.org). Responses carry the source name.
How to connect IMF Data to Codex
- 1
In the Arlet dashboard, open Data tools, find IMF Data and switch it on. No API key setup is needed.
- 2
In your terminal, run codex mcp add arlet --url https://mcp.arlet.dev/mcp/ to add Arlet as an MCP server.
- 3
Codex detects OAuth support and opens your browser. Sign in with Google and click Allow on the consent screen.
- 4
Once connected, both the CLI and the IDE extension can call Arlet tools (the configuration is shared).
If the browser does not open, run codex mcp login arlet to redo the authentication.
