NBP MCP

v1.0.0
ai.wondel/nbp Checked 4 days ago Published 1 month ago

Official Polish central bank (NBP) exchange rates, currency conversion and gold prices.

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

nbp_exchange_rates NBP exchange-rate table

Get a full NBP (Polish central bank) exchange-rate table against PLN — the latest published table by default, or the table in force on a historical date. NBP publishes only on Polish business days — on weekends/holidays the request falls back to the most recent preceding publication; effectiveDate in the response shows the date actually used. Rates data starts 2002-01-02.

ParameterTypeDescription
datestringOptional historical date (YYYY-MM-DD). Omit for the latest table.
no_cachebooleanForce a fresh NBP fetch and bypass this server's result cache. Default false.
tablestringNBP table: 'a' (default) = official mid rates of ~35 major currencies, published every business day; 'b' = mid rates of ~115 less-traded currencies, published Wednesdays; 'c' = bid/ask (buy/sell) rate…

nbp_exchange_rate NBP currency rate vs PLN

Get the official NBP rate for one currency against PLN (Polish złoty) — the latest rate by default, or the rate in force on a historical date. Tables 'a'/'b' return the mid rate; table 'c' returns bid/ask. NBP publishes only on Polish business days — on weekends/holidays the request falls back to the most recent preceding publication; effectiveDate in the response shows the date actually used. Use nbp_rate_series for a multi-day history.

ParameterTypeDescription
code *stringThree-letter ISO 4217 currency code (e.g. USD, EUR, CHF). Case-insensitive.
datestringOptional historical date (YYYY-MM-DD). Omit for the latest rate.
no_cachebooleanForce a fresh NBP fetch and bypass this server's result cache. Default false.
tablestringNBP table: 'a' (default) = official mid rates of ~35 major currencies, published every business day; 'b' = mid rates of ~115 less-traded currencies, published Wednesdays; 'c' = bid/ask (buy/sell) rate…

nbp_rate_series NBP currency rate history

Get a historical time series of NBP rates for one currency against PLN: either the last N published quotes (last_n, default 30, max 255) or an explicit start_date/end_date window (max 93 days per query — NBP's hard limit; chain calls for longer spans). Quotes exist only for publication days: business days for tables 'a'/'c', Wednesdays for 'b'. Data starts 2002-01-02.

ParameterTypeDescription
code *stringThree-letter ISO 4217 currency code (e.g. USD, EUR, CHF). Case-insensitive.
end_datestringWindow end (YYYY-MM-DD, inclusive). Requires start_date; span ≤ 93 days.
last_nintegerReturn the last N published quotes (1-255). Default 30. Mutually exclusive with start_date/end_date.
no_cachebooleanForce a fresh NBP fetch and bypass this server's result cache. Default false.
start_datestringWindow start (YYYY-MM-DD, inclusive). Requires end_date.
tablestringNBP table: 'a' (default) = official mid rates of ~35 major currencies, published every business day; 'b' = mid rates of ~115 less-traded currencies, published Wednesdays; 'c' = bid/ask (buy/sell) rate…

nbp_convert Convert currencies via NBP rates

Convert an amount between two currencies using official NBP mid rates, cross-rated through PLN. Supports PLN and every currency NBP quotes: table A is used first and table B (exotic currencies, published Wednesdays) is consulted automatically for codes A doesn't carry — each side of the response shows the rate, table and effectiveDate used. Latest rates by default, or historical with date. NBP publishes only on Polish business days — on weekends/holidays the request falls back to the most recent preceding publication; effectiveDate in the response shows the date actually used.

ParameterTypeDescription
amount *numberAmount in the source currency to convert.
from *stringSource currency code (e.g. USD, PLN). Case-insensitive.
to *stringTarget currency code (e.g. EUR, PLN). Case-insensitive.
datestringOptional historical date (YYYY-MM-DD). Omit for the latest rates.
no_cachebooleanForce a fresh NBP fetch and bypass this server's result cache. Default false.

nbp_gold_price NBP gold price

Get the official NBP gold price — PLN per 1 gram of 1000-fineness gold. Latest price by default; or one historical date; or the last N quotes (last_n, max 255); or a start_date/end_date range (max 93 days per query). Published every business day. NBP publishes only on Polish business days — on weekends/holidays the request falls back to the most recent preceding publication; effectiveDate in the response shows the date actually used. Gold data starts 2013-01-02.

ParameterTypeDescription
datestringOne historical date (YYYY-MM-DD). Mutually exclusive with last_n and the range.
end_datestringRange end (YYYY-MM-DD, inclusive). Requires start_date; span ≤ 93 days.
last_nintegerReturn the last N published prices (1-255). Mutually exclusive with date and the range.
no_cachebooleanForce a fresh NBP fetch and bypass this server's result cache. Default false.
start_datestringRange start (YYYY-MM-DD, inclusive). Requires end_date.