Central Bank Rates (AllRatesToday)

v0.3.2
com.allratestoday/central-bank-mcp Checked 3 days ago Published 1 month ago

Official central-bank & tax-authority rates from 100+ sources.

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

list_central_banks List covered central banks & tax authorities

Call this FIRST when you need a bank code, or when the user asks 'which central banks do you cover?' or 'do you have rates from X?'. Returns { banks: [{ code, name, country, home_ccy, rate_types, latest date, ... }], disclaimer } for 60+ institutions — central banks (ECB, Fed, BOJ, ...) plus tax authorities (HMRC, US Treasury, ...). The `code` field is what every other tool takes as its `bank` parameter. Cheap to call.

get_official_rates Get a bank's official published rates

Use this for OFFICIAL rates a specific institution published — 'what is the ECB rate for USD?', 'Bank of Japan official rate on 2026-03-14', 'HMRC rate for invoicing'. These are the fixed rates in force for compliance, tax, customs, and accounting — NOT live market rates. Omit `date` for the newest published table; give `date` (paid plans) for the table in force on that day (weekends/holidays roll back to the last published date — the response's rate_date says which). Omit source/target for the bank's full table { rates: [{ base, quote, type, value }] }; give both for one pair — cross-…

ParameterTypeDescription
bank *stringBank/authority code as returned by list_central_banks (lowercase, e.g. 'ecb', 'fed', 'boj', 'hmrc', 'cbsl'). Call list_central_banks first if unsure — codes are short abbreviations of the institutio…
datestringOptional YYYY-MM-DD. Omit for the latest published table (all plans). A specific date requires a paid plan.
sourcestringOptional. With target, narrows to one pair.
targetstringOptional. With source, narrows to one pair.

get_official_rate_history Get a bank's official rate history

Use this for a date-by-date series of one bank's OFFICIAL rates — 'ECB USD rate for every day of 2025', 'how did the CBSL official rate move last quarter'. Returns one row per published date: { series: [{ date, rate, rate_type, derived, method }] }. Give either `symbol` (matches either side of the pair vs the bank's home currency) or a source+target pair. Defaults to the last year when from/to omitted. Paid plans only, and BILLED BY VOLUME: one API call per month of history covered (a year-long series costs ~12 calls) — keep ranges as narrow as the question needs. For publication dates wit…

ParameterTypeDescription
bank *stringBank/authority code as returned by list_central_banks (lowercase, e.g. 'ecb', 'fed', 'boj', 'hmrc', 'cbsl'). Call list_central_banks first if unsure — codes are short abbreviations of the institutio…
fromstringStart date. Defaults to one year ago.
sourcestringISO 4217 currency code, 3 letters, case-insensitive (e.g. 'USD', 'EUR', 'LKR').
symbolstringOne currency vs the bank's home currency, e.g. 'USD'. Alternative to source+target.
targetstringISO 4217 currency code, 3 letters, case-insensitive (e.g. 'USD', 'EUR', 'LKR').
tostringEnd date. Defaults to today.

compare_official_rates Compare one pair across every bank

Use this when the user wants one currency pair across ALL institutions at once — 'what does each central bank say USD/EUR is?', 'spread between official USD/LKR rates', 'which bank has the highest official rate for X?'. One call returns every covered bank's latest official rate for the pair plus spread stats { min, max, median, spread_bps } over fresh sources (stale quarterly publishers are returned but excluded from stats). Rates a bank doesn't publish directly are cross-computed within that bank's own table only — banks are never mixed. Methodology: https://allratestoday.com/official-rat…

ParameterTypeDescription
source *stringISO 4217 currency code, 3 letters, case-insensitive (e.g. 'USD', 'EUR', 'LKR').
target *stringISO 4217 currency code, 3 letters, case-insensitive (e.g. 'USD', 'EUR', 'LKR').

get_publication_calendar Get a bank's publication calendar

Use this to see WHICH dates a bank actually published a rate table — 'did the ECB publish on 2026-01-01?', 'how often does the US Treasury publish?'. Returns dates only, no rate values, so it is available on every plan (unlike history). Gaps reveal weekends, holidays, and weekly/quarterly publication cadence. Give ?year=YYYY or a from/to range; large ranges are capped and flagged `truncated`.

ParameterTypeDescription
bank *stringBank/authority code as returned by list_central_banks (lowercase, e.g. 'ecb', 'fed', 'boj', 'hmrc', 'cbsl'). Call list_central_banks first if unsure — codes are short abbreviations of the institutio…
fromstringCalendar date in YYYY-MM-DD format.
tostringCalendar date in YYYY-MM-DD format.
yearstringWhole calendar year, e.g. '2026'. Alternative to from/to.

request_trial_key Request a trial API key

Self-issue an AllRatesToday API key with 100 lifetime calls, valid 7 days, with no account and no email. Use it when another tool answered "needs an API key" and the user wants a dated central-bank table, a history series, a cross-bank comparison or a publication calendar right now. The key is adopted by this server for the rest of the session and returned once — tell the user to put it in the MCP config as ALLRATES_API_KEY to keep it. Capped at 3 keys per IP per day. For a lasting key, register at https://allratestoday.com/register (free, 300 calls) or see https://allratestoday.com/pricing.

ParameterTypeDescription
agentstringOptional: the agent or product requesting the key.
purposestringOptional: one line on what the rates are for.