sek-fx-mcp

sek-fx-mcp

By bromaniac GitHub

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

mcp python3
Overview

What is sek-fx-mcp?

sek-fx-mcp is a Python implementation of the Model Context Protocol (MCP), designed to facilitate communication between applications and large language models (LLMs). It connects to the Riksbank's API to retrieve the exchange rate for various currencies against the Swedish Krona.

How to use sek-fx-mcp?

To use sek-fx-mcp, install the server by running the command uv run mcp install server.py in your terminal. After installation, you can query the exchange rates by providing the ISO 4217 currency code (e.g., NOK for Norwegian Krone, EUR for Euro, GBP for British Pound).

Key features of sek-fx-mcp?

  • Connects to Riksbank's API for real-time currency exchange rates.
  • Supports multiple currencies using ISO 4217 codes.
  • Built with Python, making it easy to integrate into Python applications.

Use cases of sek-fx-mcp?

  1. Retrieving real-time exchange rates for financial applications.
  2. Integrating currency conversion features into web or mobile apps.
  3. Analyzing currency trends for research purposes.

FAQ from sek-fx-mcp?

  • What programming language is sek-fx-mcp written in?

sek-fx-mcp is implemented in Python.

  • Is sek-fx-mcp free to use?

Yes, sek-fx-mcp is open-source and available under the Apache-2.0 license.

  • Where can I find more information about the Model Context Protocol?

You can read more about it on the official Model Context Protocol website.

Content

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 tools information available.

This is a basic MCP Server-Client Impl using SSE

mcp server-client
View Details

-

mcp model-context-protocol
View Details

Buttplug.io Model Context Protocol (MCP) Server

mcp buttplug
View Details

MCP web search using perplexity without any API KEYS

mcp puppeteer
View Details

free MCP server hosting using vercel

mcp mantle-network
View Details

MCPHubs is a website that showcases projects related to Anthropic's Model Context Protocol (MCP)

mcp mcp-server
View Details