Israel Law Data API & 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.
Israel Law Data API & MCP
REST and MCP services for searching Israeli laws on Hebrew Wikisource, listing sections, fetching section text, and building citation URLs.
Data Source & Licensing
Source: This project is powered by the incredible work of the Open Israel Law Book (ספר החוקים הפתוח) on Hebrew Wikisource.
Data License: Content retrieved from Wikisource is provided under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.
Code License: This software (the API and MCP implementation) is released under the MIT License.
Related MCP server: il-eli-mcp
Disclaimer
This is an unofficial, community-driven tool. It was built to improve accessibility to public legal data, but it is not an official government service.
Not Legal Advice: The information provided by this API is for informational purposes only and does not constitute legal advice.
No Guarantee of Accuracy: While we strive to provide accurate data, legal texts may be incomplete, unvetted, or outdated.
Run locally
uvicorn api:app --reloadREST base URL: http://127.0.0.1:8000/api
REST endpoints
GET /api/healthGET /api/laws/search?phrase=...&limit=10GET /api/laws/{page_id}/sectionsPOST /api/laws/{page_id}/sections/textPOST /api/citations
Search notes:
Law search results are filtered to titles listed on the main laws page (page_id=247). That page is cached locally under
data/cache/page_247.json; if it cannot be fetched and no cache exists, searches return an error.
Example:
curl --get \
--data-urlencode "phrase=איסור עישון" \
--data-urlencode "limit=5" \
"http://127.0.0.1:8000/api/laws/search"To request full section text, pass full: true in the JSON body:
curl -X POST "http://127.0.0.1:8000/api/laws/279238/sections/text" \
-H "Content-Type: application/json" \
-d '{"sections":["1","2"],"full":true}'MCP (HTTP)
MCP endpoint: http://127.0.0.1:8000/mcp/
If you deploy behind a public domain, set MCP_ALLOWED_HOSTS to include it.
Example:
MCP_ALLOWED_HOSTS=localhost:*,127.0.0.1:*,israel-law-api-mcp.sliplane.app:*To allow all hosts (not recommended for public deployments), disable DNS rebinding protection:
MCP_DNS_REBINDING_PROTECTION=falseExample MCP client config:
{
"mcpServers": {
"israel-law": {
"url": "http://127.0.0.1:8000/mcp/"
}
}
}Test MCP client:
python3 scripts/test_mcp_client.py --server "http://127.0.0.1:8000/mcp/"API check helper:
BASE_URL=http://127.0.0.1:8000/api python3 scripts/check_api.pyDocker
Build and run (VPS-local access by default):
docker compose up -d --buildThe container reads HOST and PORT from .env.
Limits and safety
Default limits are configured via .env and applied per IP. You can adjust:
RATE_LIMIT_PER_IPfor request ratesMAX_SECTIONS_PER_REQUESTMAX_SECTION_TEXT_CHARSMAX_SEARCH_PHRASE_LENMAX_SEARCH_LIMITCONCURRENT_LIMIT_TOTALfor concurrency caps
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
Israeli law for lawyers: statutes, case law, playbooks and legal skills by domain. Read-only, OAuth.
Resolve, search and verify legal citations against the official sources, with provenance.
MCP for CanLII: Canadian case law and legislation metadata (federal, provincial, territorial).
Japan Law MCP — Japanese national laws & ordinances via the e-Gov Law API.
Related MCP Servers
- AlicenseAqualityBmaintenanceAn MCP server for accessing Turkish legislation (laws, regulations, decrees) via the Adalet Bakanligi API, providing search, full-text retrieval, and structured citations.52Apache 2.0
- AlicenseAqualityBmaintenanceEnables searching and retrieving metadata of Israeli primary legislation via the Knesset's official OData API, including law names, status, and Basic Law classification.750 PyPI1Apache 2.0
- AlicenseNot gradedqualityAmaintenanceEnables MCP-compatible clients to discover, inspect, and query Israeli government open datasets, resources, tags, and organizations through the official CKAN API, including full-text datastore record search and guided domain prompts. It ships a locally indexed catalog snapshot with Hebrew-aware fuzzy matching, so clients get fast dataset discovery plus structured JSON responses over stdio or Streamable HTTP.146 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables MCP-compatible clients to discover, inspect, and query Israeli government open datasets, resources, tags, organizations, and tabular records through the official CKAN API, with catalog-backed search, fuzzy Hebrew matching, and local or remote transports.146 npmMIT