currencylayer MCP by usefulapi

v1.12.1
io.usefulapi/currencylayer Checked 2 days ago Published 1 day ago

Read and calculate currency exchange rates with your paid currencylayer account.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

currencylayer_get_live_rates Get live exchange rates

SPENDS 1 request of your currencylayer monthly quota per call (also when it fails after authentication; it is never retried). Real-time exchange rates for up to 174 world currencies and precious metals relative to a source currency (default USD). Quotes are keyed by pair, e.g. USDEUR = 0.918 means 1 USD = 0.918 EUR. The free plan refreshes daily, higher plans hourly down to every 60 seconds. Use 'currencies' to limit the reply. GET /live.

ParameterTypeDescription
currenciesarrayOnly these currency codes, e.g. ["EUR","GBP","JPY"] (default: all of them).
sourcestringSource (base) currency code, default USD. Needs the Basic plan or higher; every quote is then SOURCE+TARGET, e.g. EURGBP.

currencylayer_get_historical_rates Get historical exchange rates

SPENDS 1 request of your currencylayer monthly quota per call (also when it fails after authentication; it is never retried). Exchange rates for one past date (data back to 1999 for most currencies; a currency added later has no data before its start date and the whole request then fails). Quotes are keyed by pair, e.g. USDEUR. Use 'currencies' to limit the reply. GET /historical.

ParameterTypeDescription
date *stringThe date to look up, yyyy-mm-dd.
currenciesarrayOnly these currency codes, e.g. ["EUR","GBP","JPY"] (default: all of them).
sourcestringSource (base) currency code, default USD. Needs the Basic plan or higher; every quote is then SOURCE+TARGET, e.g. EURGBP.

currencylayer_convert_currency Convert an amount

SPENDS 1 request of your currencylayer monthly quota per call (also when it fails after authentication; it is never retried). Convert an amount from one currency to another with real-time rates, or with the rates of a past date. Returns the result and the quote used. Needs the Basic plan or higher. GET /convert.

ParameterTypeDescription
amount *numberAmount to convert (positive, up to 1e12).
from *stringCurrency to convert from, e.g. USD.
to *stringCurrency to convert to, e.g. EUR.
datestringUse the rates of this date (yyyy-mm-dd) instead of real-time rates.

currencylayer_get_timeframe_rates Get exchange rates for a date range

SPENDS 1 request of your currencylayer monthly quota per call (also when it fails after authentication; it is never retried). Daily exchange rates for every date from start_date to end_date (at most 365 days apart), one entry per date. Needs the Enterprise plan or higher. The reply must stay small: days x currencies may not exceed 2000 (without 'currencies' that is 174 per day), checked before the request is sent. GET /timeframe.

ParameterTypeDescription
end_date *stringLast date, yyyy-mm-dd (not before start_date, at most 365 days after it).
start_date *stringFirst date, yyyy-mm-dd.
currenciesarrayOnly these currency codes, e.g. ["EUR","GBP","JPY"] (default: all of them).
sourcestringSource (base) currency code, default USD. Needs the Basic plan or higher; every quote is then SOURCE+TARGET, e.g. EURGBP.

currencylayer_get_rate_changes Get exchange rate changes

SPENDS 1 request of your currencylayer monthly quota per call (also when it fails after authentication; it is never retried). How exchange rates changed between two dates: per currency pair the start_rate, end_rate, absolute change and change_pct. Pass both dates or none (none = yesterday's end-of-day rate against the latest rate). Forex markets are closed on weekends, so a weekend change can be zero. Needs the Enterprise+ plan or higher. GET /change.

ParameterTypeDescription
currenciesarrayOnly these currency codes, e.g. ["EUR","GBP","JPY"] (default: all of them).
end_datestringEnd date, yyyy-mm-dd (give both dates or neither).
sourcestringSource (base) currency code, default USD. Needs the Basic plan or higher; every quote is then SOURCE+TARGET, e.g. EURGBP.
start_datestringStart date, yyyy-mm-dd (give both dates or neither).