Datagov Israel MCP
以色列数据政府 (DataGov Israel) MCP 服务器
一个用于探索以色列政府开放数据 (data.gov.il) 的 MCP 服务器,内置由 MCP Apps 提供支持的交互式可视化功能。
搜索数以千计的公共数据集,分析其结构,生成图表,并在地图上绘制地理数据——所有操作均可通过您的 AI 助手完成。
您可以用它做什么?
🏠 探索住房市场
分析公共住房数据集,了解单元面积、位置和可用性:

查看哪些城市在政府住房抽签中的需求量最大:

了解全国公寓面积的分布情况:

跟踪住房单元随时间的可用性:

🗺️ 绘制公共基础设施地图
可视化以色列各地的教育机构:

绘制公共交通站点:

Related MCP server: senado-br-mcp
快速入门
安装
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]"与 Claude Desktop 一起使用
fastmcp install claude-desktop server.py重启 Claude Desktop — 您将立即看到可用的 DataGovIL 工具。
使用 MCP Inspector 进行尝试
fastmcp dev inspector server.py这将打开一个 Web UI,您可以在其中浏览工具、进行交互式测试,并在 Apps 选项卡中预览 MCP App 可视化效果。
使用 fastmcp dev apps
在本地预览交互式可视化应用程序:
fastmcp dev apps server.py示例:寻找房地产机会
以下是探索以色列住房市场的人员的真实工作流程:
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²洞察: 像阿什凯隆 (Ashkelon) 和斯代罗特 (Sderot) 这样的城市,每次抽签有 25,000 到 35,000 名申请者——竞争非常激烈。外围较小的城市(乌姆法赫姆、拿撒勒)申请人数要少得多。如果您对地点不挑剔,中签几率会大大提高。
可用工具
核心数据工具
工具 | 描述 |
| 获取 CKAN 版本和站点信息 |
| 列出可用的数据集许可证 |
| 获取所有数据集 ID |
| 使用过滤器和排序搜索数据集 |
| 获取特定数据集的详细元数据 |
| 列出所有组织 |
| 获取特定组织的详细信息 |
| 在数据集中搜索资源 |
| 查询特定资源内的数据 |
| 便捷工具 — 按名称查找数据集并获取其数据 |
可视化工具 (MCP Apps) 📊
这些工具直接在兼容 MCP 的客户端中呈现交互式 UI。
dataset_profile
分析数据集以了解其结构和质量。
检测到的字段:整数、数字、字符串、坐标
统计信息:最小值、最大值、平均值、空值计数、唯一值
输出:带有搜索/过滤功能的交互式数据表
dataset_profile(resource_id="c3a68837-9b7a-4ee7-bd92-130678dc8ae3", sample_size=200)chart_generator
从任何数据集生成交互式图表。
图表类型 | 用例 |
| 数值分布(例如:公寓面积) |
| 比较类别(例如:每个城市的申请人数) |
| 时间趋势(例如:每次抽签的住房单元) |
| 两个数值字段之间的相关性 |
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
在交互式 Leaflet 地图上绘制地理数据。
map_generator(
resource_id="e873e6a2-66c1-494f-a677-f5e77348edb0",
lat_field="Lat",
lon_field="Long",
limit=500
)有用的资源 ID
以下是一些值得尝试的有趣数据集:
数据集 | 资源 ID | 适用场景 |
✈️ 航班 (טיסות) |
| 按航空公司分类的柱状图 |
🏠 公共住房 (דיור ציבורי) |
| 直方图、概况分析 |
🎰 住房抽签 (דירה בהנחה) |
| 柱状图/折线图 |
🚌 交通站点 (תחנות) |
| 地图(包含经纬度) |
🏫 学校 (מוסדות חינוך) |
| 地图(UTM_X/UTM_Y) |
架构
MCP Apps
可视化工具使用带有 prefab-ui 组件的 FastMCPApp 提供程序:
DataProfile应用 →DataTable、Metric组件Charts应用 →BarChart、LineChart、ScatterChart、HistogramMaps应用 → 带有 Leaflet HTML 的Embed
通过 @app.ui() 注册的工具会自动获取正确的 MCP Apps 元数据,并在兼容的客户端中呈现。
异步 HTTP 层
所有 API 调用均使用 httpx.AsyncClient,并具备:
30 秒超时
针对 5xx 错误的自动重试
连接池
数据安全
来自 CKAN 的数值会被强制转换(处理
"25"→25.0)地图弹出内容经过 HTML 转义以防止 XSS
折线图按 x 轴排序以确保正确渲染
开发
运行测试
pytest tests/ -v # 39 tests
pytest tests/ --cov=datagov_mcp # With coverage代码风格
ruff check . # Lint
ruff format . # Format项目结构
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.toml贡献
我们欢迎贡献!请参阅 CONTRIBUTING.md 获取指南。
Fork 本仓库
创建功能分支
进行更改并添加测试
提交 Pull Request
故障排除
与 MCP Inspector 的端口冲突
pip install nano-dev-utils
python -c "from nano_dev_utils import release_ports; release_ports.PortsRelease().release_all()"Windows + OneDrive
避免在 OneDrive 同步文件夹中运行安装。请参阅 uv#7906。
导入错误
uv pip install -e ".[dev]"许可证
MIT — 请参阅 LICENSE。
致谢
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityAmaintenanceMCP server that provides programmatic access to the Israeli Central Bureau of Statistics (CBS) price indices and economic data91973MIT
- AlicenseAqualityFmaintenanceMCP server for Brazilian Federal Senate open data (legislators, bills, votes, committees)33173MIT
- AlicenseNot gradedqualityBmaintenanceMCP server for querying Israeli government real estate data, enabling property deal searches, market trend analysis, and address retrieval.4MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for the Moroccan Open Data portal (data.gov.ma) enabling search and retrieval of datasets, resources, organizations, and groups via CKAN API.1MIT
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/aviveldan/datagov-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server