MCP.so
登录
服务器

A Swedish Monetary‑Policy Data MCP Server

@aerugo

An MCP Server for Riksbank data (monetary policy, SWEA, SWESTR)

概览

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.

标签

来自「数据与分析」的更多内容