Skip to main content
Glama
IMF Data MCP Server

IMF Data MCP Server

by c-cf

IMF 데이터 MCP

imfp 및 data.imf.org의 IMF SDMX API를 기반으로 구축된 IMF 경제 데이터용 Model Context Protocol 서버입니다.

v0.2.0 — 주요 변경 사항: 이전 서버는 dataservices.imf.org를 호출했으나, IMF가 2025년에 이를 폐기했습니다. 그 결과 모든 요청이 시간 초과되었습니다. 이 버전은 현재 data.imf.org SDMX 3.0 API를 대상으로 하며 활발히 유지 관리되는 imfp로 마이그레이션되었습니다.


설치

uv 사용 (권장)

uvx --from git+https://github.com/c-cf/imf-data-mcp imf-data-mcp

pip 사용

pip install git+https://github.com/c-cf/imf-data-mcp.git

Related 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"
    }
  }
}

사용 가능한 도구

도구

설명

imf_list_databases

ID를 포함한 약 155개의 모든 IMF 데이터베이스 나열

imf_search_databases

키워드별로 데이터베이스 필터링 (예: "inflation", "trade")

imf_get_parameter_defs

데이터베이스의 쿼리 차원 나열

imf_get_parameter_codes

선택적 검색과 함께 차원에 대한 유효한 코드 나열

imf_fetch_data

연도 범위 및 차원 필터를 사용하여 시계열 데이터 가져오기


일반적인 워크플로우

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

소비자 물가

CPI

생산자 물가

PPI

국민 계정 (연간)

ANEA

국민 계정 (분기별)

QNEA

국제 수지

BOP_AGG

환율

ER_2026_JAN_VINTAGE

원자재 가격

PCPS

재정 모니터

FM

정부 재정 통계

GFS_COFOG

통화 통계

MFS_CBS, MFS_MA, MFS_IR

금융 건전성

FSIC

서비스 무역

ITS

SDG 데이터

SDG


속도 제한

IMF API는 5초당 약 10개의 요청을 허용합니다. imfp는 속도 제한 및 재시도를 자동으로 처리합니다.


디버깅

npx @modelcontextprotocol/inspector imf-data-mcp

라이선스

Apache 2.0

Available Tools

10 tools
fetch_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

    A3.7/5.0

    Scored across 10 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      A FastMCP-based server that provides tools for API discovery and execution, hierarchical category management, and SQL query execution through the Model Context Protocol.
      -
    • A
      license
      A
      quality
      C
      maintenance
      MCP server for accessing World Bank data, enabling indicator search, data retrieval, country comparisons, trend analysis, rankings, and chart generation.
      6
      2
      MIT