sek-fx-mcp

by bromaniac

331 downloads
Not rated
GitHub

About

En Model Context Protocol-server (MCP) som kopplar en LLM till Riksbankens API för kronans växelkurs.

Details

Author
bromaniac
Downloads
331
Categories
Other

- Fetches live exchange rates from Riksbanken's API
- Accepts ISO 4217 currency codes (NOK, EUR, GBP, etc.)
- Converts any supported currency to Swedish Kronor (SEK)
- Rate-limited: 5 calls per minute, 1000 per day
- Supports optional API key for higher request limits
- Implemented in Python using the MCP SDK

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name sek-fx-mcp
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Ensure Python and uv are installed, then run uv run mcp install server.py in the project directory. Optionally set the RIKSBANKEN_API_KEY environment variable if you need higher rate limits. The server has been tested with Claude Desktop on macOS.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "sek-fx-mcp": {
            "sek-fx-mcp": {
                "command": "uv",
                "args": [
                    "run",
                    "mcp",
                    "install",
                    "server.py"
                ]
            }
        }
    }
}

McpServers

{
    "sek-fx-mcp": {
        "command": "uv",
        "args": [
            "run",
            "mcp",
            "install",
            "server.py"
        ]
    }
}

sek-fx-mcp

Detta är en Python-implementering av Model Context Protocol (MCP), som är ett verktyg för att hantera kommunikation mellan applikationer och stora språkmodeller (LLM).

Den kontaktar Riksbankens API och frågar efter växlingskursen för en viss valuta till svenska kronor. Den accepterar ISO 4217-koden för valutor dvs NOK (norska kronor), EUR (Euro), GBP (brittiska pund) etc.

Riksbanken har en begränsning på antalet anrop från samma ip-adress inom ett visst tidsspann (5 anrop per minut och maximalt 1000 anrop per dygn). Krävs fler anrop än detta behövs en API-nyckel. Se länk till Riksbanken längre ner för information hur du skaffar en nyckel. Sätt nyckeln i miljövariabeln RIKSBANKEN_API_KEY.

Testad i Claude Desktop i MacOS. Kräver Python och uv.

Installation:

uv run mcp install server.py

Vidare läsning:

https://en.wikipedia.org/wiki/ISO_4217

https://github.com/modelcontextprotocol/python-sdk

https://www.riksbank.se/sv/statistik/rantor-och-valutakurser/hamta-rantor-och-valutakurser-via-api/

https://modelcontextprotocol.io/introduction

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.