Skip to main content
Glama
hebrew-il-mcp

hebrew-il-mcp

by Shtibel1

CI version license TypeScript MCP

Deterministic Israeli & Hebrew tools for AI agents — ת״ז, IBAN, מע״מ, מיקוד, bank days, Hebrew dates, סכום במילים, gematria.

A Model Context Protocol server that gives AI agents reliable, deterministic tools for Israeli and Hebrew data — the things LLMs routinely get wrong when they try to do them "in their head":

Tools

Tool

What it does

validate_israeli_id

Validates Teudat Zehut / ח.פ / amuta / Osek Murshe numbers with the official check digit and detects the entity type from the registry prefix (51 company, 58 amuta, 55 partnership, …).

normalize_israeli_phone

Parses 050-1234567, +972 (0)54 765 4321, 00972-3-…, 1-800-… into E.164 plus a national display format and line type (mobile / landline / VoIP / toll-free).

calculate_israeli_vat

Adds or splits מע"מ using the rate in force on the transaction date (17% → 18% on 2025‑01‑01, with history back to 2012), rounded to agorot.

israeli_iban

Validates an Israeli IBAN (ISO 7064 MOD 97-10), splits it into bank / branch / account and names the bank, or builds the IBAN from the domestic details printed on a cheque.

normalize_israeli_plate

Validates and formats Israeli vehicle licence plates, both the 7-digit NN-NNN-NN and the 8-digit NNN-NN-NNN formats.

normalize_israeli_postal_code

Validates a 7-digit Israeli postal code (מיקוד) and formats it as XX-XXX-XX.

lookup_israeli_city

Resolves Hebrew/English city names (aliases, niqqud-stripped) against a curated table of ~70 major localities with representative postal prefixes.

israeli_city_from_postal

Maps a 7-digit mikud to the best-matching curated locality via longest-prefix match (approximation — not a full Israel Post dump).

israeli_business_day

Checks whether a Gregorian date is an Israeli bank/clearing business day (Shabbat + full-closure Jewish holidays + Independence Day with civil postponement rules). Friday is still a business day.

next_israeli_business_day

Returns the first Israeli bank business day strictly after a given date.

israeli_holidays

Lists Israeli bank full-closure holidays (excl. weekly Shabbat) in a Gregorian year.

israeli_vat_rate

Returns the standard VAT rate for a given date.

hebrew_date

Converts a Gregorian date to the Hebrew calendar, including the traditional form (כ״א בחשוון תשפ״ז).

hebrew_numeral

Writes numbers as Hebrew numerals with correct ט״ו / ט״ז handling and gershayim.

hebrew_number_words

Writes an integer (up to 999,999,999,999) in Hebrew words with correct gender agreement, dual/construct forms (מאתיים, אלפיים, שלושת אלפים, שני מיליון) and ו only before the last component — 1234 → אלף מאתיים שלושים וארבע.

hebrew_amount_in_words

Writes a shekel amount the way it must appear on a cheque, invoice or contract (סכום במילים), rounded to agorot — 1234.5 → אלף מאתיים שלושים וארבעה שקלים חדשים וחמישים אגורות. Gets שקל חדש אחד / שני שקלים / שתי אגורות right; optional בלבד and short שקלים style.

hebrew_text_tools

Strips niqqud and cantillation marks and computes standard gematria.

Every tool returns both human-readable text and structuredContent, and invalid input produces an MCP isError result instead of crashing the session.

Related MCP server: mcp-il-companies

Resources

Read-only reference tables an agent can load into context once instead of calling a tool in a loop. Everything is computed locally — no network.

URI

What it contains

hebrew-il://today

Today's date in Israel (Asia/Jerusalem, not UTC), its Hebrew date, whether banks are open, the next bank business day and the VAT rate in force.

hebrew-il://vat-rates

Every standard VAT period since 2012 as { from, until, rate } plus the current rate.

hebrew-il://banks

Bank of Israel codes and names of the main retail banks.

hebrew-il://localities

The curated city/town table with Hebrew + English names, postal prefixes and example mikud codes.

hebrew-il://holidays/{year}

Bank full-closure holidays in a Gregorian year (1900–2100). This year and next are listed; the year argument supports completion.

"Today" is always the Israeli calendar day, so between midnight and 02:00/03:00 local time agents don't get yesterday's date — the same clock is now used when calculate_israeli_vat is called without a date.

Why

Agents that handle Israeli invoices, CRM leads or bookkeeping keep tripping over the same things: an ID number that "looks fine" but fails the checksum, phone numbers stored in five formats, VAT computed at last year's rate, Hebrew dates hallucinated, the amount in words on an invoice written with the wrong gender (שלוש שקלים). These are pure, well-defined functions — so they belong in a tool, not in a prompt.

Quick start

Claude Desktop / Cursor / any MCP client

{
  "mcpServers": {
    "hebrew-il": {
      "command": "npx",
      "args": ["-y", "github:Shtibel1/hebrew-il-mcp"]
    }
  }
}

Or from a local clone:

npm install && npm run build
node dist/cli.js   # speaks MCP over stdio

Over HTTP (Streamable HTTP, stateless)

Run it as a hosted endpoint for remote agents, or behind a load balancer — every request gets a fresh server, so there are no sessions to pin:

node dist/cli.js --http --port 3000                      # POST http://127.0.0.1:3000/mcp, GET /healthz
node dist/cli.js --http --host 0.0.0.0 --allowed-origin https://app.example

PORT, HOST and ALLOWED_ORIGINS (comma-separated) are read when the flags are omitted. It binds to 127.0.0.1 by default, rejects browser requests from origins not on the allow-list (DNS-rebinding protection), and caps request bodies at 1 MB. Point any Streamable HTTP MCP client at /mcp.

As a library

import { validateIsraeliId, calculateVat, toHebrewDate, buildIsraeliIban, israeliBusinessDay, normalizeIsraeliPostalCode, lookupIsraeliCity, shekelAmountInWords } from "hebrew-il-mcp";

validateIsraeliId("515555555", "corporate"); // { valid, normalized, kind: "company", ... }
calculateVat(1180, true, "2026-03-01");      // { rate: 0.18, net: 1000, vat: 180, gross: 1180 }
toHebrewDate("2026-11-01").formatted;        // "כ״א בחשוון תשפ״ז"
buildIsraeliIban(10, 800, 99999999);         // "IL620108000000099999999"
israeliBusinessDay("2026-04-22").businessDay; // false — Independence Day
normalizeIsraeliPostalCode("12-345-67");     // { valid: true, formatted: "12-345-67", ... }
lookupIsraeliCity("Hadera");                 // { found: true, he: "חדרה", ... }
shekelAmountInWords(1234.5).words;           // "אלף מאתיים שלושים וארבעה שקלים חדשים וחמישים אגורות"

Architecture

flowchart LR
  C["MCP client<br/>(Claude Desktop, Cursor, agents)"] -- stdio --> CLI[cli.ts]
  R["Remote agent"] -- "Streamable HTTP /mcp" --> HTTP["http.ts<br/>stateless · origin guard"]
  CLI --> S
  HTTP --> S["server.ts<br/>zod schemas · isError results"]
  S --> RS["resources.ts<br/>hebrew-il:// resources"]
  S --> L
  RS --> L
  subgraph L["src/lib — pure domain core"]
    ID[id] --- PH[phone] --- VAT[vat] --- IB[iban] --- PL[plate] --- PO[postal] --- HE[hebrew] --- HO[holidays] --- W[words]
  end
  APP["Your TS app"] -- import --> L

Layout

src/
  lib/        pure, dependency-free domain functions (id, phone, vat, iban, plate, postal, hebrew, holidays, words, time)
  server.ts   MCP wiring: zod input schemas + uniform JSON / isError results
  resources.ts read-only MCP resources (today, VAT history, banks, localities, holidays/{year})
  version.ts  single source of the version (handshake + /healthz)
  http.ts     stateless Streamable HTTP transport (/mcp, /healthz, origin guard, body cap)
  cli.ts      entry point: stdio by default, --http for the HTTP transport
test/
  lib.test.ts     unit tests for each domain module
  server.test.ts  end-to-end tests through a real MCP client (in-memory transport)
  http.test.ts    end-to-end tests through a real MCP client over HTTP
  resources.test.ts resources, completion and Israel-time "today" through a real MCP client
  • Pure core, thin adapter. All logic lives in src/lib with no MCP dependency, so it is reusable as a plain TypeScript library and trivially testable.

  • Date-aware VAT. Rates are a dated table, not a constant, so historical invoices are computed correctly.

  • Hebrew calendar via ICU. Conversion uses Intl.DateTimeFormat with ca-hebrew (no hand-rolled calendar math); only the letter-numeral formatting is custom.

  • Curated postal / city table. ~70 major localities with prefix ranges — honest approximation, not a national Israel Post dump.

Development

npm test          # vitest
npm run typecheck
npm run build

Roadmap

  • Publish to npm so npx hebrew-il-mcp works without the GitHub shorthand

  • Israeli bank-holiday / business-day calendar tool

  • Postal code and city-name normalization

  • Hosted (Streamable HTTP) transport option

  • MCP resources (today in Israel, VAT history, banks, localities, holidays per year)

  • Numbers and shekel amounts in Hebrew words (סכום במילים)

Contributing

Issues and PRs are welcome. Every tool should stay a pure function in src/lib with unit tests, plus an end-to-end case in test/server.test.ts.

License

MIT © Nadav Shtibel

Available Tools

17 tools
calculate_israeli_vatCalculate Israeli VAT (מע"מ)B

Add VAT to a net amount or split a VAT-inclusive amount, using the Israeli VAT rate that was in force on the given date (defaults to today in Israel).

Inputs: amount (required), includesVat (required), date.

hebrew_amount_in_wordsShekel amount in Hebrew words (סכום במילים)A

Write a shekel amount in Hebrew words as required on cheques, invoices, receipts and contracts, rounded to agorot: 1234.5 → 'אלף מאתיים שלושים וארבעה שקלים חדשים וחמישים אגורות'. Handles שקל חדש אחד / שני שקלים / שתי אגורות correctly.

Inputs: amount (required), only, style.

hebrew_dateGregorian to Hebrew dateA

Convert a Gregorian date (YYYY-MM-DD) to the Hebrew calendar, including the traditional letter form (e.g. כ״א בחשוון תשפ״ז).

Inputs: date (required).

hebrew_number_wordsNumber in Hebrew wordsA

Write a non-negative integer (up to 999,999,999,999) in Hebrew words with correct gender agreement and placement of ו, e.g. 1234 → 'אלף מאתיים שלושים וארבע'. Use gender 'masculine' when counting a masculine noun (ספרים, ימים) and 'feminine' (default) for bare numbers or feminine nouns.

Inputs: number (required), gender.

hebrew_numeralNumber to Hebrew numeralA

Write a positive integer as a Hebrew numeral (e.g. 15 -> ט״ו, 5787 -> תשפ״ז).

Inputs: number (required), keepThousands.

hebrew_text_toolsHebrew text utilitiesC

Strip niqqud and cantillation from Hebrew text and compute its standard gematria value.

Inputs: text (required).

israeli_business_dayIsraeli bank business dayA

Check whether a Gregorian date (YYYY-MM-DD) is an Israeli bank/clearing business day. Saturdays and full-closure Jewish holidays (Rosh Hashanah, Yom Kippur, Sukkot, Shemini Atzeret, Pesach, Shavuot) plus Independence Day (with civil postponement rules) are non-business days. Friday is still a business day.

Inputs: date (required).

israeli_city_from_postalCity from Israeli postal codeA

Map a valid 7-digit Israeli postal code to the best-matching curated locality via longest-prefix match. Honest approximation of major cities/towns — not a full Israel Post address dump.

Inputs: postalCode (required).

israeli_holidaysIsraeli bank holidays in a yearA

List Israeli bank full-closure holidays (Jewish holidays and Independence Day, excluding weekly Shabbat) whose Gregorian date falls in the given year.

Inputs: year (required).

israeli_ibanValidate or build an Israeli IBANA

Validate an Israeli IBAN (MOD 97 check digits) and split it into bank, branch and account, or build the IBAN from domestic bank details (bank code, branch, account number). Pass either iban or bank+branch+account.

Inputs: bank, iban, branch, account.

israeli_vat_rateIsraeli VAT rate on a dateA

Return the standard Israeli VAT rate in force on a date (YYYY-MM-DD).

Inputs: date (required).

lookup_israeli_cityLookup Israeli city / localityA

Normalize a Hebrew or English city/town name against a curated table of major Israeli localities. Returns canonical Hebrew and English names plus representative postal codes and prefixes. Alias-aware (e.g. 'Tel Aviv', 'תל-אביב', 'Modiin').

Inputs: query (required).

next_israeli_business_dayNext Israeli bank business dayA

Return the first Israeli bank/clearing business day strictly after the given Gregorian date (YYYY-MM-DD), skipping Saturdays and bank holidays.

Inputs: date (required).

normalize_israeli_phoneNormalize Israeli phone numberA

Parse an Israeli phone number in any common format and return E.164 (+972...), a national display format and the line type (mobile, landline, VoIP, toll-free).

Inputs: phone (required).

normalize_israeli_plateNormalize Israeli vehicle plateA

Validate and format an Israeli civilian licence plate: 7 digits (NN-NNN-NN, pre-2017) or 8 digits (NNN-NN-NNN). Ignores spaces, dashes and an IL prefix.

Inputs: plate (required).

normalize_israeli_postal_codeNormalize Israeli postal codeA

Validate and format an Israeli 7-digit postal code (מיקוד, post-2013). Accepts digits with optional spaces/dashes; returns digits and XX-XXX-XX formatting.

Inputs: postalCode (required).

validate_israeli_idValidate Israeli ID / company numberA

Validate an Israeli Teudat Zehut, company (ח.פ), amuta or Osek Murshe number using the official check digit. Returns the zero-padded number and the detected entity kind.

Inputs: number (required), expect.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 17 tools

    Disambiguation4/5

    Most tools target clearly distinct resources (postal code, phone, plate, IBAN, ID, city lookup), and the date trio is separated by explicit verbs (check vs. next vs. list holidays). The main soft spots are the three Hebrew numeral tools (hebrew_numeral, hebrew_number_words, hebrew_amount_in_words) and the VAT pair (israeli_vat_rate vs calculate_israeli_vat), which an agent could plausibly mix up, though the descriptions do resolve them.

    Naming Consistency4/5

    Names are uniformly snake_case and follow a predictable domain-prefix scheme (`israeli_*` / `hebrew_*`) with a leading verb such as normalize_, validate_, lookup_, calculate_. Deviations are minor: a few names omit the verb (israeli_holidays, israeli_iban) and hebrew_text_tools is a vague plural catch-all for two unrelated operations (niqqud stripping + gematria).

    Tool Count4/5

    17 tools is slightly on the heavy side, but the domain (Israeli/Hebrew locale utilities) is genuinely broad and each tool maps to a discrete validation or conversion task. A small amount of consolidation is possible (the three numeral-writing tools, the two VAT tools), but nothing feels gratuitous.

    Completeness4/5

    Coverage is strong across identity (ID/company), contact (phone, postal, city), banking (IBAN), vehicle plates, VAT, business-day/holiday logic and Hebrew numeral/calendar conversion. Gaps are minor but real: hebrew_date is one-way (no Hebrew→Gregorian reverse, no Hebrew-date arithmetic), and there is no street/address-level validation to complement the postal/city lookups.

    Maintenance

    ActivityNo data
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to retrieve deterministic calculated zmanim, Shabbat times, Hebrew calendar data, and Jewish liturgical texts including prayers, Tehillim, and food blessings without an API key.
      9
      1
      GPL 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to query official Israeli government open data from data.gov.il to find companies, partnerships, nonprofits, and public benefit companies, retrieve registry profiles, run red-flag due-diligence screens, and search nonprofits by keyword, sector, or city.
      5
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables AI assistants to verify Israeli licensed professionals — real-estate brokers, registered contractors, appraisers, CPAs, surveyors, and private investigators — by name or licence number, querying official data.gov.il registries directly without an API key. Supports single-registry lookups, city and branch filtering for contractors, and cross-registry searches for one person.
      6
      47 PyPI
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to query official Israeli vehicle open data in plain language, including license-plate lookups, open recalls, model specifications, new-car prices, licensed garages, and EV charging stations. It returns source-attributed answers live from data.gov.il without requiring an API key.
      14
      60 PyPI
      MIT