A Swedish Monetary‑Policy Data MCP Server
@aerugo
关于 A Swedish Monetary‑Policy Data MCP Server
An MCP Server for Riksbank data (monetary policy, SWEA, SWESTR)
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"swemo-mcp": {
"command": "uv",
"args": [
"sync"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is A Swedish Monetary‑Policy Data MCP Server?
It is an unofficial Model‑Context‑Protocol server that wraps Sveriges Riksbank’s open API, turning raw REST endpoints into typed Python tools. Designed for LLM agents and human analysts, it provides on‑demand access to Swedish monetary‑policy data such as GDP, unemployment, CPI, and policy rates.
How to use A Swedish Monetary‑Policy Data MCP Server?
Prerequisites: Python ≥3.12 and Astral uv ≥0.2.0. Clone the repository and run uv sync. Then configure the server as an MCP client (e.g., Claude Desktop) via the provided JSON snippet. Alternatively, use the tools as a library by importing swemo_mcp.tools in your Python code. For Docker, build the image and run docker run -i --rm swemo-mcp:latest | mcp chat.
Key features of A Swedish Monetary‑Policy Data MCP Server
- Wraps raw REST APIs into typed Python MCP tools
- Exposes ≈30 economic series (GDP, CPI, unemployment, etc.)
- Supports pinning a policy round for vintage‑specific forecasts
- Merges historical realised observations with the newest forecast
- Async implementation with automatic exponential back‑off on rate limits
- FastMCP server runs via stdio, SSE, or HTTP
Use cases of A Swedish Monetary‑Policy Data MCP Server
- Historical analysis: retrieve final realised values for past inflation or GDP
- Forecast queries: get the Riksbank’s projections for upcoming quarters
- Integration with Claude Desktop or other MCP clients for on‑demand data
- Embedding typed, async functions into Jupyter notebooks or dashboards
FAQ from A Swedish Monetary‑Policy Data MCP Server
What is a policy round?
A policy round is a new set of forecasts published by the Riksbank four to five times per year, labelled YYYY:I (e.g., 2025:2).
How can I get historical realised (actual) data?
Use policy_round="latest" when calling a tool. This returns all available historical observations plus the newest forecast vintage.
How do I pin a specific forecast vintage?
Pass the policy round identifier (e.g., "2024:3") as a parameter. The tool then returns only the forecasts from that round along with observations available up through it.
What are the system prerequisites?
Python 3.12 or later and Astral’s uv tool version 0.2.0 or higher. The server uses typing.TypeAlias and PEP 604 unions.
Is this server officially affiliated with Sveriges Riksbank?
No. This is an unofficial project; Sveriges Riksbank has not been involved in its development. The underlying API may change, and data is provided “as is” subject to the Riksbank’s terms of use.
数据与分析 分类下的更多 MCP 服务器
mcp-simple-arxiv
andybrandtTool to work with arXiv, provide LLM with ability to search and read papers from there
MCP Server for Data Exploration
reading-plus-aiGoogle Analytics MCP Server
surendranbGoogle Analytics 4 data to AI agents, agentic workflows, and MCP clients. Give agents analysis-ready access to website traffic, user behavior, and performance data with schema discovery, server-side aggregation, and safe defaults that reduce data wrangling.
评论