get_exchange_rate
Pack: norges-bank · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/get_exchange_rate for the schema, then POST the same URL with its arguments for the data.
Latest (or last N) Norges Bank exchange rate for a currency against the Norwegian krone (NOK).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
currency | string | yes | ISO 4217 base currency code (USD, EUR, GBP, SEK, …). |
last_n | number | no | Return only the last N observations (default 1). |
start_period | string | no | Start date (YYYY-MM-DD). Overrides last_n if set. |
end_period | string | no | End date (YYYY-MM-DD). |
Example call
Arguments
{
"currency": "USD"
}
curl
curl -X POST https://gateway.pipeworx.io/norges-bank/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_exchange_rate","arguments":{"currency":"USD"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_exchange_rate', {
"currency": "USD"
});
More examples
{
"currency": "EUR",
"last_n": 5
}
{
"currency": "GBP",
"start_period": "2024-01-01",
"end_period": "2024-12-31"
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the norges-bank pack
{
"mcpServers": {
"norges-bank": {
"url": "https://gateway.pipeworx.io/norges-bank/mcp"
}
}
}
See Getting Started for client-specific install steps.