knesset-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
The Israeli Knesset for any MCP client: members and factions, bills and where they stand, committee agendas, laws and parliamentary questions.
A Model Context Protocol server that gives AI agents the official, live parliamentary data of the Israeli Knesset (הכנסת): who sits in the current Knesset and for which faction, every bill (הצעת חוק) with its legislative status and initiators, what the committees are discussing this week, the register of Israeli laws including the Basic Laws, and the parliamentary questions (שאילתות) put to ministers.
It talks directly to the Knesset's free, public OData service (knesset.gov.il/OdataV4/ParliamentInfo): no API key, no scraping. The server hides its quirks (100-row pages, undocumented query-length limits, an HTTP 473 for perfectly valid filters), joins the lookup tables (statuses, ministries, positions, committees, people) for you and returns clean, named JSON.
Part of a small family of Israeli MCP servers: cbs-mcp (Central Bureau of Statistics price indices), boi-mcp (Bank of Israel exchange rates and interest rate), il-opendata-mcp (data.gov.il datasets) and hebrew-il-mcp (ID, phone, VAT, IBAN validators and the Hebrew calendar).
Tools
Tool | What it does |
| One-call snapshot of the current Knesset: term number and start date, seats per faction, bill counts (total, private members' bills, passed their third reading), active committees, committee sessions in the next 7 days and the latest plenum session. |
| Factions (סיעות) of any Knesset term. For the current Knesset each faction includes its number of members, sorted by seats. |
| Find members and ministers by Hebrew name — first name, last name or both in any order ( |
| A person's profile: current faction and roles with ministry and committee, every faction and Knesset term served, number of bills initiated and parliamentary questions asked, the five most recently updated bills they initiated and earlier roles. |
| Bills by Hebrew words in the title, Knesset term, |
| One bill in full: kind, status, committee, law number, publication details (Reshumot), initiators and co-signers with names, and links to the documents. |
| Every legislative status a bill can have and its ids, for the |
| Committees of a Knesset term (standing, special, joint, sub-committees) with type, parent committee and contact email. |
| Committee sessions in a date range (default: the next 7 days), earliest first, with committee name, time, location, status and links. |
| Plenum (מליאה) sessions in a date range, latest first (default: the last 30 days). |
| The register of Israeli laws by Hebrew words in the name; filter to Basic Laws (חוקי יסוד) or laws in force. Publication date, latest amendment and validity. |
| Parliamentary questions by subject words, asking member, ministry name ( |
Resources
URI | Content |
| The current Knesset snapshot (same as |
| Factions of the current Knesset with seat counts |
| Active committees of the current Knesset |
| Every legislative status a bill can have |
| Profile of a person by id (same as |
| Full record of a bill by id (same as |
Every tool returns human-readable JSON text and structuredContent. Bad input (unknown id, malformed date, a status that matches nothing, a range over 62 days) produces an MCP isError result with a clear message instead of crashing the session.
Related MCP server: Knesset MCP Server
Quick start
Claude Desktop / Cursor / any MCP client
{
"mcpServers": {
"knesset": {
"command": "npx",
"args": ["-y", "github:Shtibel1/knesset-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:
"Which committees meet this week and what bills are on their agenda?"
"How many seats does each faction have in the current Knesset?"
"אילו הצעות חוק פרטיות אושרו בוועדה לקריאה ראשונה בכנסת ה-26?"
"מי יזם את הצעת חוק-יסוד: הממשלה (סייגים לכהונת ראש ממשלה)?"
"Show the latest parliamentary questions to the Ministry of Health that were answered."
Hosted: Streamable HTTP
npx -y github:Shtibel1/knesset-mcp --http --port 3000
# → knesset-mcp listening on http://127.0.0.1:3000/mcp
curl http://127.0.0.1:3000/healthz # {"status":"ok","name":"knesset-mcp","version":"0.1.0"}{ "mcpServers": { "knesset": { "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 API responses; lookup tables (statuses, ministries, positions, terms) are kept 12 hours. |
| Print the version and exit |
The HTTP mode is stateless: every POST /mcp gets a fresh server and transport (sharing one cached client), 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
docker build -t knesset-mcp .
docker run --rm -p 3000:3000 -e ALLOWED_ORIGINS=https://app.example knesset-mcpThe image runs as the unprivileged node user and has a /healthz health check.
As a library
import { KnessetClient } from "knesset-mcp";
const knesset = new KnessetClient({ cacheTtlMs: 60_000 });
const overview = await knesset.getOverview();
const bills = await knesset.searchBills({ query: "חינוך", kind: "private", status: "קריאה ראשונה" });Live example
Real output from the built server against the live Knesset API, run on 2026-11-29 (Asia/Jerusalem), the 26th Knesset's third week:
Call | Result |
| 26th Knesset (since 2026-11-10), 120 members in 11 factions: Likud 27, Yashar! (Eisenkot) 21, Together (Bennett) 12, Joint List 11 …; 287 bills so far; 15 active committees; 23 committee sessions in the next 7 days; last plenum session 25 Nov (#8) |
|
|
| 15 Knessets served (12–26), 18 faction entries, 111 earlier roles |
| 3 bills in the first-reading stage, newest first (e.g. the bill repealing the Attorney-General law amendment, in committee) |
| Basic Law: The Government (amendment — limits on a Prime Minister's tenure): private bill #286, status "with the House Committee to assign a committee", 4 initiators named, 2 documents |
| 573 bills of the 25th Knesset reached a third reading |
| 3 sessions today, with their agendas, e.g. the special committee on the Attorney-General bill (09:00, Interior Committee hall) |
| 19 Basic Laws, newest: חוק-יסוד: לימוד תורה (published 2026-07-15) |
| 108 answered questions to the Ministry of Health, e.g. on the doctor-to-population ratio (asked 2026-05-13, answered 2026-06-23) |
{
"bill_id": 2247079,
"name": "הצעת חוק-יסוד: הממשלה (תיקון - סייגים לכהונת ראש ממשלה)",
"knesset_num": 26,
"kind": "פרטית",
"private_number": 286,
"status_id": 106,
"status": "בוועדת הכנסת לקביעת הוועדה המטפלת",
"passed": false,
"initiators": [{ "person_id": 30121, "name": "עודד פורר" }, "…"],
"documents": [{ "type": "הצעת חוק לדיון מוקדם", "format": "DOC", "url": "https://fs.knesset.gov.il/26/law/…" }]
}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/>12 tools · 4 resources + 2 templates<br/>zod schemas · isError results"]
CLI -- "--http" --> H
H -- "new server per request<br/>shared KnessetClient" --> S
S --> K
subgraph L["src/lib — no MCP imports"]
K["knesset.ts<br/>injectable fetch · retries · $skip paging<br/>joins lookup tables"]
CACHE["cache.ts<br/>TTL · in-flight dedupe"]
OD["odata.ts<br/>filter builder · in-lists · query-length safe"]
DT["dates.ts<br/>Asia/Jerusalem days · DST offsets"]
K --> CACHE
K --> OD
K --> DT
end
K -- "HTTPS · OData v4 JSON" --> API["knesset.gov.il/OdataV4/ParliamentInfo<br/>KNS_Person · KNS_Bill · KNS_Committee ·<br/>KNS_CommitteeSession · KNS_IsraelLaw · KNS_Query …"]
APP["Your TS app"] -- import --> LHow the data is fetched
Need | OData entities |
Overview |
|
Members |
|
Bills |
|
Sessions |
|
Laws and questions |
|
Server quirks handled
Responses are capped at 100 rows; larger reads follow
$skip.A parenthesised
(contains(...))is answered with HTTP 473, so the filter builder only adds parentheses aroundorexpressions.Placeholder ids such as
-1(a bill with no committee) inside anin (...)list also give HTTP 473 and are dropped.Query strings over roughly 2 KB give HTTP 404, so
inlists keep commas unescaped and initiator searches are limited to the person's 150 newest bills.+is not accepted for spaces (%20is used), and Israeli day boundaries use the correct UTC offset on either side of daylight-saving time.
Layout
src/
lib/knesset.ts injectable-fetch client: retries, paging, lookup joins, every tool's logic
lib/odata.ts OData filter/query builder (in-lists, contains per word, safe parentheses)
lib/dates.ts Israel "today", DST-aware day boundaries, date validation
lib/cache.ts promise-based TTL cache with in-flight de-duplication
server.ts MCP tools, resources and resource templates (zod schemas)
http.ts stateless Streamable HTTP transport (node:http, no framework)
cli.ts entry: stdio by default, --http for hosted mode
version.ts single source of the version
scripts/
record-fixtures.mjs re-records every fixture from the live API and prints each result
test/
scenarios.mjs the live calls whose responses are recorded (shared by the recorder and the tests)
fixtures/ real Knesset API responses recorded on 2026-11-29
*.test.ts 68 vitest tests; fetch replays the fixtures, so CI never hits the networkDevelopment
npm test # vitest, replaying recorded Knesset responses (no network)
npm run typecheck
npm run build
npm run record-fixtures # refresh fixtures from the live API (then update expected numbers)Attribution
This is an unofficial client. All data comes from the Knesset open-data service and is subject to its terms of use; the Knesset publishes it as-is, and recent changes may appear with a delay. Bill and law information is informational only; rely on the official Knesset publications (Reshumot) for legal purposes. This project has no affiliation with the Knesset.
Roadmap
Publish to npm so
npx knesset-mcpworks without the GitHub shorthandPlenum votes and attendance
Bill history timeline (readings, committee decisions) from the bill-history tables
Committee members and chairs per committee
Members, factions, bills, committees, sessions, laws and questions with Streamable HTTP and Docker (v0.1.0)
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 recorded responses (npm run record-fixtures), never hand-written API data.
License
MIT © Nadav Shtibel
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
US government data as clean JSON for AI agents: SAM.gov contract opportunities, USAspending awards, Grants.gov grants, House STOCK Act trades, and SEC EDGAR filings (Form 4 insider trades, 8-K events, 13F holdings, 13D/G stakes, XBRL fundamentals, 10-K/10-Q sections). 19 read-only tools. Data is as fresh as each source publishes; congressional trades lag up to 45 days and report dollar ranges (House only). Free tier, no card.
Query and audit AppSheet apps in natural language via Knotrik's pre-scanned definitions.
Search 16,000+ API operations and 95 built tools by need, then call any of them by name
U.S. civic data for AI agents: reps, votes, bills, finance, lobbying, cited gov sources. 47 tools.
Related MCP Servers
- AlicenseCqualityCmaintenanceEnables AI assistants to search, discover, and analyze thousands of datasets from Israel's national open data portal. It provides tools for querying government ministries, municipalities, and public bodies using the CKAN API.9146 npm111MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to query bills, committees, and members from the Israeli Knesset parliamentary information API via MCP tools.920 npm3MIT
- AlicenseAqualityBmaintenanceEnables searching and retrieving metadata of Israeli primary legislation via the Knesset's official OData API, including law names, status, and Basic Law classification.747 PyPI1Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to query Swedish Parliament open data through natural language.66 npmMIT