ecb_exchange_rate
Pack: ecb · Endpoint: https://gateway.pipeworx.io/ecb/mcp
AUTHORITATIVE euro foreign-exchange reference rate from the European Central Bank — the official daily EUR spot rate against a target currency (ISO 4217: USD, GBP, JPY, CHF, …). Use for “current EUR/USD rate”, “EURUSD spot”, “what is the euro worth in dollars”, and for historical FX series. Returns latest ({period, value}) for the current rate plus recent labeled observations; pass start_period/end_period (or last_n) for a longer history. This is the published mid-market reference rate, not a dealer or exchange quote, so there is no bid/ask spread.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
currency | string | yes | ISO 4217 currency code (USD, GBP, JPY, …) |
start_period | string | no | Start date (YYYY-MM-DD) |
end_period | string | no | End date (YYYY-MM-DD) |
last_n | number | no | Return only the last N observations. Defaults to 30 when no start_period is given. |
frequency | string | no | Observation frequency — D (daily), M (monthly), Q (quarterly), A (annual). Default D. |
Example call
Arguments
{
"currency": "USD"
}
curl
curl -X POST https://gateway.pipeworx.io/ecb/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ecb_exchange_rate","arguments":{"currency":"USD"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('ecb_exchange_rate', {
"currency": "USD"
});
More examples
{
"currency": "GBP",
"start_period": "2023-01-01",
"end_period": "2023-12-31",
"frequency": "M"
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"ecb": {
"url": "https://gateway.pipeworx.io/ecb/mcp"
}
}
}
See Getting Started for client-specific install steps.