
Exchange Rate MCP Server
Toy MCP server that provides access to exchange rate data from the Norges Bank API.
What is Exchange Rate MCP?
Exchange Rate MCP is a toy Model Context Protocol (MCP) server that provides access to exchange rate data from the Norges Bank API.
How to use Exchange Rate MCP?
To use Exchange Rate MCP, run the command npx -y @karashiiro/exchange-rate-mcp
in your terminal to start the server and access the exchange rate tool.
Key features of Exchange Rate MCP?
- Provides exchange rate data between different currencies.
- Simple command-line interface for fetching rates.
- Supports optional date parameter for historical rates.
Use cases of Exchange Rate MCP?
- Fetching current exchange rates for currency conversion.
- Accessing historical exchange rates for financial analysis.
- Integrating exchange rate data into applications or services.
FAQ from Exchange Rate MCP?
- Is Exchange Rate MCP suitable for production use?
No, it is a toy project and not meant for serious use.
- What currencies are supported?
Any currency supported by the Norges Bank API can be used.
- How do I install the project?
You can install it using
pnpm install
after cloning the repository.
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
}