boi-mcp
This MCP server gives AI agents official Bank of Israel (BOI) economic data — exchange rates, ILS conversion, inflation expectations, yield curves and the policy rate — straight from the BOI SDMX API, no API key needed.
List supported currencies — the 14 currencies with a representative rate (USD, EUR, GBP, JPY, CHF, CAD, AUD, DKK, NOK, SEK, ZAR, JOD, EGP, LBP), with English/Hebrew names and quoting units, offline.
Get latest rates — the most recent official representative rates for all currencies or a subset, in one request, each with its own publication date.
Get a rate on any date — one currency for a given day, with automatic fallback to the previous business day for weekends/holidays (
is_fallback,days_back); defaults to today in Israel, future dates rejected.Get rate history — daily rates over a range up to ~10 years with count, first/last, min/max, absolute and percent change, plus observations.
Convert currency — between ILS (also NIS/₪/שקל) and any supported currency, or cross rates between two foreign currencies via ILS, on the latest or a historical date.
Compare currencies — rank several currencies against the shekel over a period, with change %, inverse shekel move, mean, daily/annualized volatility, largest daily move, max drawdown, and the shekel vs the equal-weight basket.
Nominal effective exchange rate — the BOI's trade-weighted index of the shekel (2015 = 100), with stats, shekel direction, volatility, drawdown and values since 2015 (series from 1999).
Inflation expectations — ten measures (1y from capital market, banks, CPI forwards, forecasters; 5y and 10y; forwards for years 2, 3, 3–5, 5–10) with target checks vs the 1%–3% band, gap from midpoint, changes and monthly history.
Zero-coupon yield curve — nominal (1–15y) and real CPI-linked (1–20y) government yields, break-even inflation per tenor, basis-point changes vs N months earlier, 10y−1y/10y−2y spreads and curve shape.
Policy interest rate — the BOI rate on a date plus every change in the look-back window with previous rate and change in basis points.
Forgiving inputs — case-insensitive codes, symbols ($, €, £, ¥) and Hebrew names all accepted; bad input returns a clear MCP error instead of crashing.
Resources and transports — static MCP resources (
boi://currencies,boi://rates/latest,boi://interest-rate,boi://inflation-expectations,boi://yield-curve), stdio or stateless Streamable HTTP, Docker, caching, and use as a TypeScript library.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@boi-mcp What's the dollar's official exchange rate today?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Official Bank of Israel exchange rates (שערים יציגים), interest rate, inflation expectations and yield curve for any MCP client.
A Model Context Protocol server that gives AI agents the official representative exchange rates published daily by the Bank of Israel, the rate on any past date (with automatic previous-business-day fallback), history and statistics over a range, ILS conversions and cross rates, the shekel's nominal effective exchange rate (trade-weighted index), the Bank of Israel policy interest rate with its change history, inflation expectations (ציפיות לאינפלציה) from the capital market, banks, CPI forwards and forecasters checked against the 1%–3% target, and the zero-coupon government yield curve (עקום אפס, nominal and CPI-linked) with break-even inflation per tenor.
It talks directly to the Bank of Israel's free, public SDMX REST API at edge.boi.gov.il: no API key, no scraping, no third-party FX feed.
Part of a small family of Israeli MCP servers: hebrew-il-mcp (local validators: ID, phone, VAT, IBAN, plates, holidays) and il-opendata-mcp (data.gov.il datasets).
Tools
Tool | What it does |
| No network. The 14 currencies the BOI publishes a representative rate for (USD, EUR, GBP, JPY, CHF, CAD, AUD, DKK, NOK, SEK, ZAR, JOD, EGP, LBP), with English and Hebrew names and the quoting unit. |
| Latest published rate for all currencies (or a |
| Rate for one |
| Daily rates between |
| Convert |
| Rank several |
| The shekel's nominal effective exchange rate (שער החליפין הנומינלי האפקטיבי, series |
| Inflation expectations (ציפיות לאינפלציה) from the BOI |
| Nominal (1–15y) and real CPI-linked (1–20y) zero-coupon government yields (עקום אפס) for the latest month on or before |
| The BOI policy rate (ריבית בנק ישראל) on a |
Resources
URI | Content |
| The supported currencies (same as |
| Snapshot of the latest representative rates for all 14 currencies |
| The current policy rate with its changes over the last two years |
| Latest inflation expectations versus the target, with 12 months of history |
| Latest nominal and real zero-coupon curves with break-evens and 12-month changes |
Clients that support MCP resources (e.g. attaching context in Claude Desktop) can pull these without a tool call.
Every tool returns both human-readable JSON text and structuredContent. Bad input (unknown currency, malformed or future date, empty range) produces an MCP isError result with a clear message instead of crashing the session.
Currency inputs are forgiving: usd, $, €, £, ¥, דולר, יורו all work.
Details that are easy to get wrong
Quoting units. The BOI quotes JPY per 100 yen and LBP per 10 pounds (
UNIT_MULTin SDMX).rateis kept exactly as published andils_per_unitis normalized, so conversions are always right."Today" is Israeli time. Dates default to
Asia/Jerusalem, not UTC, so a request at 01:00 in Tel Aviv asks for the right day.Caching. Responses are cached in memory per request URL: 5 minutes for anything that can still change (latest rates, ranges ending today) and 6 hours for ranges that end before today. Concurrent identical calls share one request, errors are never cached, and the stateless HTTP mode shares one cache across all requests. Tune with
--cache-ttl <seconds>/BOI_CACHE_TTL(0disables).Monthly data lags a month. Inflation expectations and the yield curve are monthly averages published after the month ends, so asking for the current month returns the latest published one (
as_of), and a slower source shows its ownmonth. The curve's break-evens use the exact Fisher form(1+n)/(1+r)−1and reproduce the BOI's own 1/5/10-year capital-market expectation series to four decimals.No data ≠ error. The API answers HTML
404when a query matches nothing (e.g. a Saturday). The client maps that to "no observations" and the tools fall back or explain.
Related MCP server: cbi-mcp
Quick start
Claude Desktop / Cursor / any MCP client
{
"mcpServers": {
"boi": {
"command": "npx",
"args": ["-y", "github:Shtibel1/boi-mcp"]
}
}
}Claude Desktop: put this in claude_desktop_config.json. Cursor: ~/.cursor/mcp.json (or .cursor/mcp.json in a project).
Or from a local clone:
npm install && npm run build
node dist/cli.js # speaks MCP over stdioThen ask your agent things like:
"What is the dollar's representative rate today, and how did it move this month?"
"Convert 2,500 EUR to shekels at the rate of 2026-10-04."
"מה ריבית בנק ישראל ומתי היא השתנתה לאחרונה?"
"Are Israeli inflation expectations anchored inside the target? How did the yield curve change over the last year?"
Hosted: Streamable HTTP
npx -y github:Shtibel1/boi-mcp --http --port 3000
# → boi-mcp listening on http://127.0.0.1:3000/mcp
curl http://127.0.0.1:3000/healthz # {"status":"ok","name":"boi-mcp","version":"0.4.0"}{ "mcpServers": { "boi": { "url": "http://127.0.0.1:3000/mcp" } } }Flag | Env | Default | Notes |
| off | Serve Streamable HTTP instead of stdio | |
|
|
| |
|
|
| Binds to loopback by default; use |
|
| none | Repeatable flag, or a comma-separated env var. Browser requests from any other |
|
|
| Seconds to cache live responses; past ranges are kept 6 hours. |
| Print the version and exit |
The HTTP mode is stateless: every POST /mcp gets a fresh server and transport, there are no session ids, and GET/DELETE /mcp return 405, so instances can sit behind any load balancer. Bodies over 1 MB get 413, malformed JSON gets 400.
Docker
The image runs the HTTP mode as the unprivileged node user on 0.0.0.0:3000 with a HEALTHCHECK against /healthz:
docker build -t boi-mcp .
docker run --rm -p 3000:3000 -e ALLOWED_ORIGINS=https://app.example boi-mcpCI builds the image on every push and smoke-tests it: health check, a real tools/list call, the origin guard and the non-root user.
As a library
import { BoiClient } from "boi-mcp";
const boi = new BoiClient();
const { rates } = await boi.getLatestRates(["USD", "EUR"]);
const onSunday = await boi.getRate("USD", "2026-10-04"); // → Friday 2026-10-02, is_fallback: true
const history = await boi.getRateHistory("EUR", "2026-10-01", "2026-11-14");
const { result } = await boi.convert({ amount: 100, from: "EUR", to: "JPY" });
const policy = await boi.getInterestRate();
const year = await boi.compareCurrencies({ currencies: ["USD", "EUR", "GBP"], start_date: "2025-11-16" });
// year.strongest, year.ils_vs_basket_pct, year.currencies[0].annualized_volatility_pct …
const expectations = await boi.getInflationExpectations({ months_back: 24 }); // .anchored, .one_year, .measures
const curve = await boi.getYieldCurve({ month: "2008-12", compare_months_back: 6 }); // .points[].breakeven_inflation, .shape
// Cache options (defaults shown); cacheTtlMs: 0 disables caching
new BoiClient({ cacheTtlMs: 300_000, historicalCacheTtlMs: 21_600_000, cacheMaxEntries: 256 });Live example
Real output from the built server against the live Bank of Israel API, run on 2026-11-15 (Sunday, Asia/Jerusalem — the latest rates are Friday's):
Call | Result |
| as of 2026-11-13: USD 3.199, EUR 3.5394, GBP 4.2365, JPY 2.0009 per 100 (0.020009 per yen) |
| 3.199 from 2026-11-13, |
| 31 business days, 3.4826 → 3.5394 (+1.63%), min 3.4291 on 2026-10-09, max 3.5724 on 2026-11-06 |
| 3,199 ILS |
| 17,689.0399 JPY (cross rate 176.8904 via ILS) |
| 244 business days 2025-11-19 → 2026-11-18: index 67.41 → 66.10 (−1.94%, shekel +1.98% vs the trade-weighted basket, |
| as of 2026-10, all ten measures inside the 1%–3% target, |
| 2026-10 vs 2025-10: nominal 1y 3.11% (−80 bp), 10y 4.24% (+27 bp), 10y−1y +113 bp ( |
| 3.25% since 2026-09-03; five −25 bp cuts since 4.5% (2025-11-27, 2026-01-08, 2026-05-28, 2026-07-09, 2026-09-03) |
compare_currencies { USD, EUR, GBP, JPY, CHF, CAD, start_date: 2025-11-16 }, run on 2026-11-16 — one request, 243 business days per currency, the shekel up +3.74% against the equal-weight basket:
Rank | Currency | 2025-11-16 → 2026-11-16 | Change vs ILS | Shekel vs it | Annualized vol | Max drawdown | Largest day |
1 | GBP | 4.2722 → 4.2365 | −0.84% | +0.84% | 8.61% | −12.95% | −2.18% on 2026-03-02 |
2 | USD | 3.241 → 3.199 | −1.30% | +1.31% | 9.34% | −14.35% | −1.75% on 2026-04-09 |
3 | CAD | 2.3102 → 2.2439 | −2.87% | +2.95% | 9.26% | −13.02% | +2.12% on 2026-03-09 |
4 | JPY (per 100) | 2.0932 → 2.0009 | −4.41% | +4.61% | 11.11% | −16.21% | +3.09% on 2026-01-26 |
5 | EUR | 3.7594 → 3.5394 | −5.85% | +6.22% | 8.41% | −13.82% | −2.25% on 2026-03-02 |
6 | CHF | 4.0747 → 3.8246 | −6.14% | +6.54% | 9.10% | −12.67% | −1.89% on 2026-03-02 |
The first call took ~2.8 s; the identical second call was served from the cache in ~2 ms.
{
"currency": "USD",
"name": "US Dollar",
"name_he": "דולר ארה\"ב",
"rate": 3.199,
"unit": 1,
"ils_per_unit": 3.199,
"date": "2026-11-13",
"requested_date": "2026-11-14",
"is_fallback": true,
"days_back": 1,
"source": "Bank of Israel SDMX API (edge.boi.gov.il)"
}Architecture
flowchart LR
C["MCP client<br/>(Claude Desktop, Cursor, agents)"] -- stdio --> CLI[cli.ts]
R["Remote agents"] -- "POST /mcp" --> H["http.ts<br/>stateless Streamable HTTP<br/>origin check · /healthz"]
CLI --> S["server.ts<br/>zod schemas · isError results"]
CLI -- "--http" --> H
H -- "new server per request<br/>shared BoiClient" --> S
S --> BOI
subgraph L["src/lib — no MCP imports"]
BOI["boi.ts<br/>injectable fetch · SDMX client<br/>fallback · conversion · comparison"]
CACHE["cache.ts<br/>TTL · in-flight dedupe"]
STATS["stats.ts<br/>volatility · drawdown"]
EFF["effective.ts<br/>NEER index stats"]
ZCM["zcm.ts<br/>expectations · yield curve"]
BOI --> ZCM
BOI --> CACHE
BOI --> STATS
BOI --> EFF
EFF --> STATS
CSV["csv.ts<br/>RFC 4180 parser"]
CUR["currencies.ts<br/>14 currencies · units · aliases"]
DT["dates.ts<br/>Asia/Jerusalem today"]
BOI --> CSV
BOI --> CUR
BOI --> DT
end
BOI -- "HTTPS · format=csv" --> API["edge.boi.gov.il<br/>SDMX v2: EXR · BR · ZCM"]
APP["Your TS app"] -- import --> LHow the data is fetched
Need | SDMX query (dataflow |
Latest rates |
|
Rate on a date (with fallback) |
|
History |
|
Currency comparison |
|
Effective exchange rate |
|
Policy interest rate |
|
Inflation expectations |
|
Yield curve |
|
All with format=csv. The fallback is done by the API itself (endperiod + lastNObservations=1), so a holiday week never needs a retry loop.
Layout
src/
lib/boi.ts injectable-fetch SDMX client: rates, fallback, history stats, conversion, policy rate
lib/effective.ts nominal effective exchange rate (NER_ILS_BSK_IDX) metadata and index statistics
lib/zcm.ts ZCM dataflow: inflation-expectation measures, target check, zero-coupon curves and break-evens
lib/stats.ts mean, sample stdev, log-return volatility (annualized ×√252), largest move, max drawdown
lib/cache.ts promise-based TTL cache with in-flight de-duplication and LRU-style eviction
lib/csv.ts small RFC 4180 CSV parser (quoted Hebrew comments, doubled quotes, CRLF, BOM)
lib/currencies.ts supported currencies, quoting units, Hebrew names and aliases
lib/dates.ts Asia/Jerusalem "today", strict YYYY-MM-DD validation
server.ts MCP tool and resource wiring (zod schemas)
http.ts stateless Streamable HTTP transport (node:http, no framework)
cli.ts entry: stdio by default, --http for hosted mode
test/
fixtures/ real BOI API responses captured on 2026-11-15/16/19/24 (see fixtures/README.md)
*.test.ts 104 vitest tests; fetch is mocked with the fixtures, so CI never hits the networkDevelopment
npm test # vitest, replaying recorded BOI responses (no network)
npm run typecheck
npm run buildAttribution
This is an unofficial client. Exchange rates and interest rates come from the Bank of Israel and are subject to its terms of use. Representative rates are reference rates, not dealing quotes. This project has no affiliation with the Bank of Israel.
Roadmap
Publish to npm so
npx boi-mcpworks without the GitHub shorthandNominal effective exchange rate of the shekel (v0.3.0)
USD/ILS implied and actual volatility (
WEB_STD_IMPVOL_*,EXR_STD_ACTUAL_USDILS) from the same EXR dataflowReal effective exchange rate (not published in the BOI SDMX API as of 2026-11)
Inflation expectations and the zero-coupon yield curve (v0.4.0)
CPI index series (
PRIdataflow); see also cbs-mcp for the official CBS price indicesIn-memory response cache shared across stateless HTTP requests (v0.2.0)
Multi-currency comparison with volatility and drawdown (v0.2.0)
Render / Fly one-click deploy
Contributing
Issues and PRs are welcome. Keep API logic in src/lib with unit tests and add an end-to-end case in test/server.test.ts for new tools. New fixtures must be real captured responses — never hand-written API data.
License
MIT © Nadav Shtibel
Available Tools
10 toolscompare_currenciesCompare currencies against the shekel over a periodA
Compare how several currencies moved against the shekel between two dates using Bank of Israel representative rates, in one request. For each currency: first/last/min/max rate, change_pct (positive = the currency strengthened vs ILS), ils_change_pct (the shekel's move against it), mean, daily and annualized volatility of log returns, the largest single-day move and the max drawdown. Results are ranked strongest first, with strongest/weakest and ils_vs_basket_pct (the shekel's equal-weight move against the compared basket). Defaults to USD, EUR, GBP, JPY, CHF; ranges up to ~10 years.
Inputs: start_date (required), end_date, currencies.
convert_currencyConvert using representative ratesA
Convert an amount between ILS and any supported currency, or between two foreign currencies via ILS (cross rate), using Bank of Israel representative rates. Optional date uses the rate on that day or the previous business day. Returns the result (4 decimals), the cross rate and the rate date used for each leg.
Inputs: to (required), from (required), amount (required), date.
get_effective_exchange_rateNominal effective exchange rate of the shekelA
Get the Bank of Israel nominal effective exchange rate of the shekel (שער החליפין הנומינלי האפקטיבי): a daily trade-weighted index of the shekel against the basket of Israel's main trading partners, 2015-01-01 = 100, quoted as shekels per basket, so a RISE means the shekel WEAKENED. Returns first/last/min/max, change_pct of the index, ils_change_pct and shekel_direction (the shekel's own move vs the basket), ils_vs_base_pct (since 2015), mean, daily/annualized volatility, the largest daily move, max drawdown and the daily values (most recent 400). Defaults to the last year; ranges up to ~10 years. Series starts in 1999.
Inputs: end_date, start_date.
get_inflation_expectationsIsraeli inflation expectationsA
Get Bank of Israel inflation expectations (ציפיות לאינפלציה), monthly averages in percent per year, for the latest month on or before month (YYYY-MM, default the current month; the BOI publishes the previous month). Ten measures: 1-year expectations from the capital market (break-even of CPI-linked vs nominal bonds), banks' internal rates, CPI forward contracts and forecasters; 5- and 10-year capital-market expectations; and forward expectations for year 2, year 3, years 3–5 and years 5–10. Each has its value, vs_target (below/within/above the 1%–3% government target), gap from the 2% midpoint, change over the window and monthly history. Also returns the target range, the 1-year mean/min/max and anchored (all long-run measures inside the target). months_back sets the history window (default 12, max 120). Series start in the 1990s/2000s.
Inputs: month, months_back.
get_interest_rateBank of Israel interest rateA
Get the Bank of Israel policy interest rate (ריבית בנק ישראל, percent) on a date (default today) plus every change in the look-back window (default 2 years) with its date, previous rate and change in basis points.
Inputs: date, since.
get_latest_ratesLatest Bank of Israel representative ratesA
Fetch the most recent official representative exchange rates (שערים יציגים) published by the Bank of Israel, in ILS per unit. Omit currencies to get all 14. Each entry carries its own publication date (the last business day), the published rate, the quoting unit and ils_per_unit.
Inputs: currencies.
get_rateRepresentative rate on a dateA
Get the Bank of Israel representative rate of one currency on a given date. If no rate was published that day (weekend, holiday) the previous business day's rate is returned with is_fallback=true and days_back. Omit date for today (Asia/Jerusalem). Future dates are rejected.
Inputs: currency (required), date.
get_rate_historyRepresentative rate historyA
Daily Bank of Israel representative rates for one currency over a date range (up to ~10 years). Returns count, first/last, min/max (with dates), absolute and percent change, and the observations (the most recent 400 if the range is longer; stats always cover the full range).
Inputs: currency (required), start_date (required), end_date.
get_yield_curveIsraeli government zero-coupon yield curveA
Get the Bank of Israel zero-coupon government yield curves (עקום אפס), monthly averages in percent per year, for the latest month on or before month (YYYY-MM, default the current month): nominal (שקלי) at 1, 2, 3, 4, 5, 7, 10 and 15 years and real (CPI-linked, צמוד) at 1–20 years. Per tenor: nominal, real, breakeven_inflation ((1+nominal)/(1+real)−1) and the change in basis points versus compare_months_back months earlier (default 12, max 120). Also returns the 10y−1y and 10y−2y nominal spreads in basis points and the curve shape (normal, flat within 10 bp, or inverted). Useful for mortgage/deposit pricing context, real rates and market-implied inflation.
Inputs: month, compare_months_back.
list_currenciesList currencies with a Bank of Israel representative rateA
List the 14 foreign currencies for which the Bank of Israel publishes an official representative exchange rate (שער יציג) against the shekel, with English/Hebrew names and the quoting unit (JPY is quoted per 100, LBP per 10). No network request is made.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Most tools target clearly distinct resource+action pairs (policy rate, single rate, latest rates, history, conversion, comparison, NEER, inflation expectations, yield curve). The main overlap is between get_rate, get_latest_rates and get_rate_history, all of which return exchange rates, though their descriptions (single-date-with-fallback vs all-currencies-latest vs range-with-stats) make the boundaries reasonably clear. compare_currencies and get_rate_history also overlap in returning volatility/drawdown stats, but differ in single- vs multi-currency scope.
Every tool follows a consistent snake_case verb_noun pattern (get_, list_, convert_, compare_). The get_* family is uniform and predictable, with descriptive noun suffixes that clearly signal the resource. No mixing of conventions or vague verbs.
Ten tools is well within the ideal 3-15 range and every tool maps to a distinct BOI data product. There are no filler or redundant tools; the set is tightly scoped to the domain.
The surface covers the major BOI series (policy rate, FX rates, conversion, NEER, inflation expectations, yield curve) with good historical and stats support. Minor gaps exist—e.g., no actual CPI/inflation prints (only expectations), no GDP or monetary aggregates, and no announcement/calendar data—but these are workaroundable and don't block core workflows.
Maintenance
Related MCP Connectors
Live Israeli public data for AI agents: alerts, prices, open data, FX rates, Shabbat times.
Bank of Israel public API MCP. Keyless.
Live & historical FX rates and currency conversion for AI agents. No API keys.
Live & historical FX rates and currency conversion for AI agents. No API keys.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables users to retrieve Bank of Israel public API data, including current representative exchange rates versus the Israeli Shekel and the policy interest rate, without an API key.93 npmMIT
- AlicenseAqualityBmaintenanceEnables AI agents to read official Central Bank of Iran data through 11 read-only tools: historical exchange rates for ~48 currencies, inflation, weekly interbank and policy rates, news, liquidity, monthly statistics tables, sukuk auctions and open market operations, with no API key required. Text is Persian, dates accept Jalali or Gregorian, and output is compact JSON.11PolyForm Noncommercial 1.0.0
- AlicenseAqualityBmaintenanceEnables AI agents to retrieve live buy and sell exchange rates from 1,219 commercial banks across 124 countries, compare banks, check spreads against central bank official rates, and look up past daily rates.766 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to fetch official Bank of Israel mortgage rate series, build or extract Israeli mortgage compositions, and get deterministic analysis such as LTV, PTI, and risk factors. It also supports comparing 2–3 offers against the market and generating interactive dashboards and share links.MIT