Exchange Rate MCP Server logo

Exchange Rate MCP Server

by karashiiro

This is a Model Context Protocol (MCP) server that provides access to exchange rate data from the Norges Bank API. It's a toy project designed for fetching exchange rates.

View on GitHub

Last updated: N/A

Exchange Rate MCP Server

This is a Model Context Protocol (MCP) server that provides access to exchange rate data from the Norges Bank API.

This is just a toy project and isn't meant to be used seriously.

Overview

The Exchange Rate MCP exposes a single tool called exchange_rate that allows an LLM or other clients to fetch exchange rates between different currencies.

Usage

npx -y @karashiiro/exchange-rate-mcp

Development

Installation

pnpm install

Build

pnpm build

Run

pnpm start

Usage

The server exposes a single tool:

exchange_rate

Fetches the exchange rate between two currencies.

Parameters:
  • baseCurrency (string, required): The base currency code (e.g., NOK, USD)
  • targetCurrency (string, required): The target currency code (e.g., EUR, USD)
  • date (string, optional): Date in YYYY-MM-DD format. Defaults to latest available rate.
Example Response:
{
  "baseCurrency": "NOK",
  "targetCurrency": "USD",
  "date": "2025-04-04",
  "rate": 0.12345
}