Riksbanken MCP Server
@aerugo
An MCP Server for Riksbank data (monetary policy, SWEA, SWESTR)
Overview
What is Riksbanken MCP Server?
An MCP server for retrieving macroeconomic and financial data from the Sveriges Riksbank. It provides tools for monetary policy forecasts, exchange and interest rates via the SWEA API, and short-term money market rates via SWESTR. Built with asynchronous programming using httpx and pydantic for data validation.
How to use Riksbanken MCP Server?
Install with Python 3.13+ using pip install -e .. Launch via the CLI command riksbanken-mcp or by running python -m riksbank_mcp.server. The server communicates over stdio and registers all MCP tools automatically.
Key features of Riksbanken MCP Server
- Monetary policy tools: list rounds and fetch forecast data (GDP, CPI, etc.)
- SWEA tools: repo rate, exchange rates (USD/SEK, EUR/SEK, GBP/SEK), mortgage rates
- SWESTR tools: daily short-term rate and compounded averages
- Fully asynchronous, using Python 3.13's async/await
- Robust data validation with pydantic models
Use cases of Riksbanken MCP Server
- Retrieve GDP forecast data for a specific monetary policy round
- Get the latest published SWESTR short-term interest rate
- Fetch USD/SEK exchange rate time series for analysis
- Obtain average mortgage interest rates from the Riksbank
- Access historical monetary policy rounds and their indicators
FAQ from Riksbanken MCP Server
What Python version is required?
Python 3.13 or higher is required.
How do I install the server?
Install the package in editable mode using pip install -e . in the project root.
How do I launch the server?
Run the CLI command riksbanken-mcp or execute python -m riksbank_mcp.server.
What data sources does it access?
It accesses three Riksbank APIs: Monetary Policy API (forecasts), SWEA API (exchange/interest rates), and SWESTR API (short-term rates).
What transport does the server use?
It uses stdio transport to communicate with the MCP client.