IMF Data MCP Server
IMF Data MCP
imfp および data.imf.org の IMF SDMX API 上に構築された、IMF経済データ用のModel Context Protocolサーバーです。
v0.2.0 — 破壊的変更: 旧サーバーは
dataservices.imf.orgを呼び出していましたが、IMFは2025年にこれを廃止しました。その結果、すべてのリクエストがタイムアウトしていました。このバージョンでは、現在アクティブにメンテナンスされているdata.imf.orgSDMX 3.0 APIをターゲットとするimfpに移行しました。
インストール
uv を使用する場合(推奨)
uvx --from git+https://github.com/c-cf/imf-data-mcp imf-data-mcppip を使用する場合
pip install git+https://github.com/c-cf/imf-data-mcp.gitRelated MCP server: self-mcp-server
Claude Desktopの設定
{
"mcpServers": {
"imf": {
"command": "uvx",
"args": ["--from", "git+https://github.com/c-cf/imf-data-mcp", "imf-data-mcp"]
}
}
}または、pip経由でインストールした場合:
{
"mcpServers": {
"imf": {
"command": "imf-data-mcp"
}
}
}利用可能なツール
ツール | 説明 |
| IDを含む約155のIMFデータベースすべてを一覧表示 |
| キーワードでデータベースをフィルタリング(例: |
| データベースのクエリディメンションを一覧表示 |
| ディメンションの有効なコードを一覧表示(オプションで検索可能) |
| 年範囲とディメンションフィルタを指定して時系列データを取得 |
一般的なワークフロー
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"]}
)一般的なデータベースID
トピック | ID |
消費者物価 |
|
生産者物価 |
|
国民経済計算(年次) |
|
国民経済計算(四半期) |
|
国際収支 |
|
為替レート |
|
商品価格 |
|
財政モニター |
|
政府財政統計 |
|
金融統計 |
|
金融健全性 |
|
サービス貿易 |
|
SDGデータ |
|
レート制限
IMF APIは、約10リクエスト/5秒を許可しています。imfp はレート制限と再試行を自動的に処理します。
デバッグ
npx @modelcontextprotocol/inspector imf-data-mcpライセンス
Apache 2.0
Available Tools
10 toolsfetch_bop_dataA
Retrieves compact format time series data from the BOP database based on the input parameters.
Args:
freq (str): Frequency (e.g., "A" for annual, "Q" for quarterly, "M" for monthly).
country (str): Country code, multiple country codes can be connected with "+".
indicator (str): Indicator code.
start (str | int): Start year.
end (str | int): End year.
Returns:
str: Description of the queried data. Do not perform further analysis or retry if the query fails.
Inputs: freq (required), country (required), indicator (required), start (required), +1 more.
fetch_cdis_dataB
Retrieves compact format time series data from the CDIS database based on the input parameters.
Args:
freq (str): Frequency (e.g., "A" for annual).
country (str): Country code, multiple country codes can be connected with "+".
indicator (str): Indicator code.
counterpart (str): Counterpart country code.
start (str | int): Start year.
end (str | int): End year.
Returns:
str: Description of the queried data. Do not perform further analysis or retry if the query fails.
Inputs: freq (required), country (required), indicator (required), counterpart (required), +2 more.
fetch_cpis_dataA
Retrieves compact format time series data from the CPIS database based on the input parameters.
Args:
freq (str): Frequency (e.g., "A" for annual).
country (str): Country code, multiple country codes can be connected with "+".
indicator (str): Indicator code.
counter_country (str): Counterpart country code.
start (str | int): Start year.
end (str | int): End year.
Returns:
str: Description of the queried data. Do not perform further analysis or retry if the query fails.
Inputs: freq (required), country (required), indicator (required), counter_country (required), +2 more.
fetch_dot_dataB
Retrieves compact format time series data from the DOT database based on the input parameters.
Args:
freq (str): Frequency (e.g., "A" for annual).
country (str): Country code, multiple country codes can be connected with "+".
indicator (str): Indicator code.
counterpart (str): Counterpart country code.
start (str | int): Start year.
end (str | int): End year.
Returns:
str: Description of the queried data. Do not perform further analysis or retry if the query fails.
Inputs: freq (required), country (required), indicator (required), counterpart (required), +2 more.
fetch_fsi_dataB
Retrieves compact format time series data from the FSI database based on the input parameters.
Args:
freq (str): Frequency (e.g., "A" for annual).
country (str): Country code, multiple country codes can be connected with "+".
indicator (str): Indicator code.
start (str | int): Start year.
end (str | int): End year.
Returns:
str: Description of the queried data. Do not perform further analysis or retry if the query fails.
Inputs: freq (required), country (required), indicator (required), start (required), +1 more.
fetch_gfsmab_dataB
Retrieves compact format time series data from the GFSMAB database based on the input parameters.
Args:
freq (str): Frequency (e.g., "A" for annual).
country (str): Country code, multiple country codes can be connected with "+".
unit (str): Unit code XDC or XDC_R_B1GQ (Percent of GDP).
indicator (str): Indicator code.
start (str | int): Start year.
end (str | int): End year.
Returns:
str: Description of the queried data. Do not perform further analysis or retry if the query fails.
Inputs: freq (required), country (required), unit (required), indicator (required), +2 more.
fetch_ifs_dataA
Retrieves compact format time series data from the IFS database based on the input parameters.
Args:
freq (str): Frequency (e.g., "A" for annual).
country (str): Country code, multiple country codes can be connected with "+".
indicator (str): Indicator code.
start (str | int): Start year.
end (str | int): End year.
Returns:
str: Description of the queried data. Do not perform further analysis or retry if the query fails.
Inputs: freq (required), country (required), indicator (required), start (required), +1 more.
fetch_mfs_dataB
Retrieves compact format time series data from the MFS database based on the input parameters.
Args:
freq (str): Frequency (e.g., "A" for annual).
country (str): Country code, multiple country codes can be connected with "+".
indicator (str): Indicator code.
start (str | int): Start year.
end (str | int): End year.
Returns:
str: Description of the queried data. Do not perform further analysis or retry if the query fails.
Inputs: freq (required), country (required), indicator (required), start (required), +1 more.
list_countriesB
Returns a list of available countries for the specified dataset, read from the corresponding .json file in the local areas directory.
Args:
dataset_id (str): Dataset ID, such as "IFS", "DOT", "BOP", etc.
Returns:
list: List of countries.
Inputs: dataset_id (required).
list_indicatorsB
Returns a list of indicators for the specified dataset, read from the corresponding .json file in the local indicators directory.
Args:
dataset_id (str): Dataset ID, such as "IFS", "DOT", "BOP", etc.
Returns:
list: List of indicators.
Inputs: dataset_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool has a clearly distinct purpose based on the dataset it targets (e.g., BOP, CDIS, CPIS, etc.), with no overlap in functionality. The two list tools (list_countries and list_indicators) are also distinct from the fetch tools, providing metadata support without ambiguity.
All tools follow a consistent verb_noun pattern: fetch_*_data for data retrieval tools and list_* for metadata tools. This predictable naming scheme makes it easy to understand each tool's function at a glance.
With 10 tools, the server is well-scoped for an IMF data service. It includes 8 fetch tools for different datasets and 2 list tools for metadata, providing a balanced and focused set that covers core data access needs without being overwhelming.
The tool set provides comprehensive data retrieval across multiple IMF datasets and includes metadata listing tools, covering the essential read operations. A minor gap exists in lacking update, delete, or analysis tools, but this is reasonable for a data access server focused on fetching and listing.
Maintenance
Related MCP Connectors
MCP server for Financial Modeling Prep API with 250+ financial data tools
Unofficial IMF MCP — wraps the IMF SDMX 2.1 REST API (api.imf.org)
MCP server for the Seline Analytics API
This MCP server provides seamless access to Malaysia's government open data, including datasets, w…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA FastMCP-based server that provides data analysis tools for processing, analyzing, and visualizing data with an intuitive Streamlit web interface.2MIT
- FlicenseNot gradedqualityDmaintenanceFastMCP server for querying FRED financial and macroeconomic data, providing tools to search and retrieve economic indicators.-
- FlicenseNot gradedqualityDmaintenanceA FastMCP-based server that provides tools for API discovery and execution, hierarchical category management, and SQL query execution through the Model Context Protocol.-
- AlicenseAqualityCmaintenanceMCP server for accessing World Bank data, enabling indicator search, data retrieval, country comparisons, trend analysis, rankings, and chart generation.62MIT