IMF Data MCP Server
IMF 数据 MCP
一个用于 IMF 经济数据的模型上下文协议 (Model Context Protocol) 服务器,基于 imfp 和 data.imf.org 上的 IMF SDMX API 构建。
v0.2.0 — 重大变更: 旧服务器调用的是
dataservices.imf.org,IMF 已于 2025 年将其停用。因此,所有请求都会超时。此版本迁移至imfp,该库针对当前的data.imf.orgSDMX 3.0 API,并处于活跃维护状态。
安装
使用 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.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"
}
}
}可用工具
工具 | 描述 |
| 列出所有约 155 个 IMF 数据库及其 ID |
| 按关键字过滤数据库(例如 |
| 列出数据库的查询维度 |
| 列出维度的有效代码,支持可选搜索 |
| 获取包含年份范围和维度过滤的时间序列数据 |
典型工作流程
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 允许大约每 5 秒 10 次请求。imfp 会自动处理速率限制和重试。
调试
npx @modelcontextprotocol/inspector imf-data-mcp许可证
Apache 2.0
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA FastMCP-based server that provides data analysis tools for processing, analyzing, and visualizing data with an intuitive Streamlit web interface.2MIT
- FlicenseNot gradedqualityCmaintenanceFastMCP 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.
- AlicenseAqualityBmaintenanceMCP server for accessing World Bank data, enabling indicator search, data retrieval, country comparisons, trend analysis, rankings, and chart generation.62MIT
Related MCP Connectors
This MCP server provides seamless access to Malaysia's government open data, including datasets, w…
Geospatial MCP server for earthquake, tsunami, volcano, disaster, and FX data queries.
350+ production-ready APIs through one MCP server — weather, geocoding, validation, financial data.
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