
c-cf/imf-data-mcp
API developmentこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
このMCPサーバーは、無料のIMFデータAPIと連携し、経済データの取得と処理の一連のツールとリソースを提供します.
概要
IMFの経済データのためのモデルコンテキストプロトコルサーバ、imfpとdata.imf.orgのIMF SDMX API上に構築されています。 2025年に廃止されたIMFが廃止されたdataservices.imf.orgと呼ばれる古いサーバー。 結果としてタイムアウトされたすべてのリクエスト。 このバージョンは、現在のdata.imf.org SDMX 3.0 APIをターゲットとし、積極的に維持されます。 IMF API は、約 10 リクエスト / 5 秒のリクエストを可能にします。 imfp は率の制限を扱い、自動的にretries.
概要(AI 翻訳)
IMFの経済データのためのモデルコンテキストプロトコルサーバー, 上に構築
イムフプと
[[data.imf.org]でSDMX APIをインポートします。
v0.2.0 — 変更を破る:
dataservices.imf.orgと呼ばれる古いサーバー, 2025年に廃炉したIMF。 結果としてタイムアウトされたすべてのリクエスト。 このバージョンは、現在の[data.imf.orgを対象とする[[imfp]に移行します。 SDMX 3.0のAPIは積極的に維持し。
お問い合わせ
インストール
[uv を使用する (推奨)
##pip の使用
お問い合わせ
デスクトップの設定
または、 pip 経由でインストールした場合:
お問い合わせ
利用可能なツール
| ツール | 概要 |
お問い合わせ
| [imf_list_databases | IDでデータベースを全て表示 |
| [imf_search_databases | キーワード別フィルターデータベース([[T7]、"trade") |
| [imf_get_parameter_defs | データベースのクエリ寸法一覧 |
| [[[T10] | ご希望の検索で寸法の有効なコードを一覧表示 |
| [[[T11] | 年間レンジ・ディメンションフィルタによるタイムシリーズデータの取得 |
お問い合わせ
典型的なワークフロー
お問い合わせ
共通データベースID
| トピック | ID | お問い合わせ | 消費者価格 | [[T12] | | 生産者価格 | [[T13] | | 全国会計 | [[T14] | | 全国口座(四半期) | [[T15] |
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
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 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-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
| Tool | Description |
|---|---|
imf_list_databases |
List all ~155 IMF databases with their IDs |
imf_search_databases |
Filter databases by keyword (e.g. "inflation", "trade") |
imf_get_parameter_defs |
List query dimensions for a database |
imf_get_parameter_codes |
List valid codes for a dimension, with optional search |
imf_fetch_data |
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 | CPI |
| Producer Prices | PPI |
| National Accounts (Annual) | ANEA |
| National Accounts (Quarterly) | QNEA |
| Balance of Payments | BOP_AGG |
| Exchange Rates | ER_2026_JAN_VINTAGE |
| Commodity Prices | PCPS |
| Fiscal Monitor | FM |
| Gov. Finance Statistics | GFS_COFOG |
| Monetary Statistics | MFS_CBS, MFS_MA, MFS_IR |
| Financial Soundness | FSIC |
| Trade in Services | ITS |
| SDG Data | SDG |
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
インストール
uvx --from git+https://github.com/c-cf/imf-data-mcp imf-data-mcp設定
{
"mcpServers": {
"imf": {
"command": "uvx",
"args": ["--from", "git+https://github.com/c-cf/imf-data-mcp", "imf-data-mcp"]
}
}
}