About Exchange Rate MCP Server
A small MCP server that retrieves currency exchange rates from the Norges Bank API. Its single tool accepts base and target currencies and an optional date; the project describes itself as a toy, not for serious use.
Key features
- 01Fetch rates from Norges Bank API
- 02Specify base and target currencies
- 03Request a rate for a date
- 04Use the latest available rate by default
Use cases
- 01Checking a currency pair's rate
- 02Looking up a rate for a specified date
MCP support
The server exposes one MCP tool, `exchange_rate`, for clients to request exchange rates from the Norges Bank API.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
1Saved tool list · updated 3w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| baseCurrency | string | Yes | The base currency code (e.g., NOK, USD) |
| targetCurrency | string | Yes | The target currency code (e.g., EUR, USD) |
| date | string | No | Optional date in YYYY-MM-DD format. Defaults to latest available rate. |
Details
From the project READMEExchange 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
}
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.