Datagov Israel MCP
The DataGov Israel MCP server provides programmatic access to Israel's open government data portal (data.gov.il) with built-in analysis and visualization capabilities.
Core Capabilities:
Search & Discovery: Search thousands of public datasets by keyword with filters, sorting, and pagination; browse organizations and licenses; retrieve detailed metadata for datasets and organizations
Data Retrieval: Fetch raw data from dataset resources with pagination support, full-text search, and filtering via datastore operations
Data Analysis: Profile datasets to understand field types, identify missing values, and get statistical summaries (min, max, mean for numeric fields; top values for categorical fields)
Visualization: Generate interactive charts (histograms, bar, line, scatter plots) as Vega-Lite specifications and self-contained HTML; create geographic maps from lat/long data as GeoJSON and Leaflet HTML
Full CKAN API Coverage: Access all standard endpoints including package, organization, resource, and datastore operations; check system status and extensions
Key Features:
Async I/O with proper error handling, retries, and connection pooling
Full type safety and validation
Integration with Claude Desktop and MCP Inspector for testing and development
Support for large datasets with pagination
Allows cloning of the repository to access the MCP server code.
References GitHub for examples of other MCP servers and implementation patterns.
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., "@Datagov Israel MCP show me the latest population statistics dataset"
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.
DataGov Israel MCP Server
An MCP server for exploring Israeli government open data (data.gov.il) β with built-in interactive visualizations powered by MCP Apps.
Search thousands of public datasets, profile their structure, generate charts, and plot geographic data on maps β all from your AI assistant.
What Can You Do With This?
π Explore the Housing Market
Profile public housing datasets to understand unit sizes, locations, and availability:

See which cities have the most demand in government housing lotteries:

Understand the distribution of apartment sizes across the country:

Track housing unit availability over time:

πΊοΈ Map Public Infrastructure
Visualize education institutions across Israel:

Plot public transport stations:

Related MCP server: data-gov-il-mcp
Quick Start
Installation
git clone https://github.com/aviveldan/datagov-mcp.git
cd datagov-mcp
# Create virtual environment and install (requires uv)
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install -e ".[dev]"Using with Claude Desktop
fastmcp install claude-desktop server.pyRestart Claude Desktop β you'll see the DataGovIL tools available immediately.
Try It with the MCP Inspector
fastmcp dev inspector server.pyThis opens a web UI where you can browse tools, test them interactively, and preview MCP App visualizations in the Apps tab.
Using with fastmcp dev apps
Preview the interactive visualization apps locally:
fastmcp dev apps server.pyExample: Finding Real Estate Opportunities
Here's a real workflow for someone exploring the Israeli housing market:
You: "Search for discounted housing lottery datasets"
β package_search(q="ΧΧΧ¨Χ ΧΧΧ ΧΧ")
Found: "Χ ΧͺΧΧ ΧΧ ΧͺΧ§ΧΧ€ΧͺΧΧΧ - ΧͺΧΧ ΧΧͺ ΧΧΧ¨Χ ΧΧΧ ΧΧ" (Discounted Housing Program)
Resource ID: 7c8255d0-49ef-49db-8904-4cf917586031
You: "Profile this dataset so I can understand what fields are available"
β dataset_profile(resource_id="7c8255d0-49ef-49db-8904-4cf917586031")
Shows: LamasName (city), Subscribers, Winners, PriceForMeter,
LotteryHousingUnits, ProjectName, Neighborhood...
You: "Show me which cities have the most subscribers competing for units"
β chart_generator(
resource_id="7c8255d0-49ef-49db-8904-4cf917586031",
chart_type="bar",
x_field="LamasName",
y_field="Subscribers",
title="Housing Lottery Subscribers by City"
)
β Interactive bar chart rendered in MCP Apps UI
You: "Now show the public housing units β map them and show me sizes"
β dataset_profile(resource_id="c3a68837-9b7a-4ee7-bd92-130678dc8ae3")
Shows: CityLmsName, NumOfRooms (avg 2.4), Floor, TotalArea (21-110 mΒ²)...
β chart_generator(
resource_id="c3a68837-9b7a-4ee7-bd92-130678dc8ae3",
chart_type="histogram",
x_field="TotalArea",
title="Distribution of Housing Unit Sizes (mΒ²)"
)
β Most units are 48-57 mΒ², with a long tail up to 110 mΒ²Insight: Cities like Ashkelon and Sderot show 25,000-35,000 subscribers per lottery β that's intense competition. Smaller cities in the periphery (Umm al-Fahm, Nazareth) have far fewer. If you're flexible on location, your odds improve dramatically.
Available Tools
Core Data Tools
Tool | Description |
| Get CKAN version and site info |
| List available dataset licenses |
| Get all dataset IDs |
| Search datasets with filters and sorting |
| Get detailed metadata for a specific dataset |
| List all organizations |
| Get details of a specific organization |
| Search for resources within datasets |
| Query data within a specific resource |
| Convenience tool β find dataset by name and fetch its data |
Visualization Tools (MCP Apps) π
These tools render interactive UI directly in MCP-compatible clients.
dataset_profile
Profile a dataset to understand its structure and quality.
Fields detected: integer, number, string, coordinate
Statistics: min, max, mean, null count, unique values
Output: Interactive DataTable with search/filter
dataset_profile(resource_id="c3a68837-9b7a-4ee7-bd92-130678dc8ae3", sample_size=200)chart_generator
Generate interactive charts from any dataset.
Chart Type | Use Case |
| Distribution of numeric values (e.g., apartment sizes) |
| Compare categories (e.g., subscribers per city) |
| Trends over time (e.g., housing units per lottery) |
| Correlations between two numeric fields |
chart_generator(
resource_id="7c8255d0-49ef-49db-8904-4cf917586031",
chart_type="bar",
x_field="LamasName",
y_field="Subscribers",
title="Housing Lottery Subscribers by City",
limit=50
)map_generator
Plot geographic data on interactive Leaflet maps.
map_generator(
resource_id="e873e6a2-66c1-494f-a677-f5e77348edb0",
lat_field="Lat",
lon_field="Long",
limit=500
)Useful Resource IDs
Here are some interesting datasets to get started with:
Dataset | Resource ID | Good For |
βοΈ Flights (ΧΧΧ‘ΧΧͺ) |
| Bar charts by airline |
π Public Housing (ΧΧΧΧ¨ Χ¦ΧΧΧΧ¨Χ) |
| Histograms, profiling |
π° Housing Lotteries (ΧΧΧ¨Χ ΧΧΧ ΧΧ) |
| Bar/line charts |
π Transport Stations (ΧͺΧΧ ΧΧͺ) |
| Maps (has Lat/Long) |
π« Schools (ΧΧΧ‘ΧΧΧͺ ΧΧΧ ΧΧ) |
| Maps (UTM_X/UTM_Y) |
Architecture
MCP Apps
Visualization tools use FastMCPApp providers with prefab-ui components:
DataProfileapp βDataTable,MetriccomponentsChartsapp βBarChart,LineChart,ScatterChart,HistogramMapsapp βEmbedwith Leaflet HTML
Tools registered via @app.ui() automatically get proper MCP Apps metadata and render in compatible clients.
Async HTTP Layer
All API calls use httpx.AsyncClient with:
30-second timeout
Automatic retries for 5xx errors
Connection pooling
Data Safety
Numeric values from CKAN are coerced (handles
"25"β25.0)Map popup content is HTML-escaped to prevent XSS
Line charts are sorted by x-axis for correct rendering
Development
Running Tests
pytest tests/ -v # 39 tests
pytest tests/ --cov=datagov_mcp # With coverageCode Style
ruff check . # Lint
ruff format . # FormatProject Structure
datagov-mcp/
βββ datagov_mcp/
β βββ server.py # Core CKAN tools + provider registration
β βββ apps.py # FastMCPApp definitions (DataProfile, Charts, Maps)
β βββ visualization.py # Visualization tools (@app.ui entry points)
β βββ api.py # CKAN API helper
β βββ client.py # HTTP client
βββ tests/ # 39 tests with HTTP mocking
β βββ test_api.py
β βββ test_contracts.py
β βββ test_tools.py
β βββ test_visualization.py
βββ screenshots/ # Auto-generated demo screenshots
βββ server.py # Entrypoint
βββ pyproject.tomlContributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
Fork the repository
Create a feature branch
Make changes with tests
Submit a pull request
Troubleshooting
Port Conflicts with MCP Inspector
pip install nano-dev-utils
python -c "from nano_dev_utils import release_ports; release_ports.PortsRelease().release_all()"Windows + OneDrive
Avoid running installation in OneDrive-synced folders. See uv#7906.
Import Errors
uv pip install -e ".[dev]"License
MIT β see LICENSE.
Acknowledgments
Available Tools
10 toolsdatastore_searchD
Search a datastore resource.
Inputs: resource_id (required), q, distinct, plain, +6 more.
fetch_dataC
Fetch data from public API based on a dataset name query
Inputs: dataset_name (required), limit, offset.
license_listB
Get the list of licenses available for datasets on the site.
Inputs: no named parameters.
organization_listB
Get names of all organizations.
Inputs: no named parameters.
organization_showB
Get details of a specific organization.
Inputs: id (required).
package_listB
Get a list of all package IDs (datasets).
Inputs: no named parameters.
package_searchC
Find packages (datasets) matching query terms.
Inputs: q, fq, sort, rows, +2 more.
package_showC
Get metadata about one specific package (dataset).
Inputs: id (required).
resource_searchC
Find resources based on their field values.
Inputs: query, order_by, offset, limit.
status_showA
Get the CKAN version and a list of installed extensions.
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 have distinct purposes, such as searching datastores vs. fetching data from APIs, but 'datastore_search' and 'resource_search' could be confused as both involve searching within datasets. The descriptions help clarify, but some overlap exists.
Tools follow a consistent snake_case pattern with clear verb_noun structures like 'package_search' and 'organization_show', but 'fetch_data' deviates slightly with a less specific verb. Overall, the naming is predictable and readable.
With 10 tools, the server is well-scoped for interacting with a data catalog, covering operations like listing, searching, and showing details for datasets, organizations, and resources. Each tool earns its place without being overwhelming.
The toolset provides good coverage for browsing and querying a CKAN-based data catalog, including CRUD-like operations for packages and organizations. Minor gaps exist, such as no tools for creating or updating datasets, but agents can work around this for read-only access.
Maintenance
Related MCP Connectors
data.gov.il MCP β Israel national open-data portal (CKAN API).
Israel Government Procurement MCP β public tenders & exemption contracts (keyless).
Israel Central Bureau of Statistics (CBS / ΧΧΧ©ΧΧ ΧΧΧ¨ΧΧΧΧͺ ΧΧ‘ΧΧΧΧ‘ΧΧΧ§Χ) MCP.
dati.gov.it MCP β Italy's national open-data portal (CKAN API).
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables MCP-compatible clients to discover, inspect, and query Israeli government open datasets, resources, organizations, tags, and tabular records through the official data.gov.il CKAN API.146 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables MCP-compatible clients to discover, inspect, and query Israeli Government Open Data from data.gov.il, including datasets, resources, tags, organizations, and tabular records through the official CKAN API.146 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP-compatible clients to discover, inspect, and query Israeli government datasets, resources, organizations, tags, and tabular records through the official data.gov.il CKAN API.146 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables MCP-compatible clients to discover, inspect, and query Israeli Government Open Data from data.gov.il, including datasets, organizations, tags, resources, and tabular records through the CKAN API.146 npmMIT