
davidosherdiagnostica/data-gov-il-mcp 是从 https://github.com/davidosherdiagnostica/data-gov-il-mcp. 导入的 MCP 服务器候选
概览
davidosherdiagnostica/data-gov-il-mcp 是从 https://github.com/davidosherdiagnostica/data-gov-il-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
data.gov.il 以色列政府开放数据的生产级模型上下文协议(MCP)服务器。
该服务器通过官方 CKAN API 为兼容 MCP 的客户端提供对以色列政府数据集、资源、标签、组织和表格记录的结构化访问。它使用 TypeScript 编写,使用 Zod 验证输入和输出,返回以 JSON 为先的工具响应,并支持本地 stdio 和远程可流式 HTTP 传输。
精彩片段
| 区域 | 状态 |
|---|---|
| MCP工具 | 默认9工具,启用可选采样时10个 |
| MCP资源 | 5个静态资源 + 1个数据集资源模板 |
| MCP 提示 | 3 个带参数补全的领域提示 |
| 发现 | 内存内目录快照,支持希伯来语归一化、模糊匹配、标签排名和共现 |
| 传输 | [stdio 和可流式HTTP |
| Auth | none, API 密钥承载 auth,OAuth 2.1 JWT/JWKS |
| HTTP加固 | 头盔、CORS、速率限制、请求ID、主机/来源验证 |
| 回复 | [structuredContent 加上 content[0].text 中的相同 JSON |
| 运行时配置 | 环境驱动,启动时验证 with Zod |
快速启动
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
data-gov-il-mcp
Production-grade Model Context Protocol (MCP) server for Israeli Government Open Data from data.gov.il.
This server gives MCP-compatible clients structured access to Israeli government datasets, resources, tags, organizations, and tabular records through the official CKAN API. It is written in TypeScript, validates inputs and outputs with Zod, returns JSON-first tool responses, and supports both local stdio and remote Streamable HTTP transports.
Highlights
| Area | Status |
|---|---|
| MCP tools | 9 tools by default, 10 with optional Sampling enabled |
| MCP resources | 5 static resources + 1 dataset resource template |
| MCP prompts | 3 domain prompts with argument completions |
| Discovery | In-memory catalog snapshot with Hebrew normalization, fuzzy matching, tag ranking, and co-occurrence |
| Transports | stdio and Streamable HTTP |
| Auth | none, API key bearer auth, OAuth 2.1 JWT/JWKS |
| HTTP hardening | Helmet, CORS, rate limiting, request IDs, Host/Origin validation |
| Responses | structuredContent plus identical JSON in content[0].text |
| Runtime config | Environment-driven, validated at startup with Zod |
Quick Start
Claude Desktop / Local Stdio
Use the published package directly:
{
"mcpServers": {
"data-gov-il": {
"command": "npx",
"args": ["-y", "data-gov-il-mcp"]
}
}
}
Streamable HTTP
npm install -g data-gov-il-mcp
data-gov-il-mcp-http
Then configure your MCP client:
{
"mcpServers": {
"data-gov-il": {
"url": "http://localhost:3664/mcp"
}
}
}
Docker
docker run -p 3664:3664 ghcr.io/davidosherproceed/data-gov-il-mcp:latest
For local development:
npm install
npm run build
npm run start:stdio
# or
npm run start:http
Catalog Discovery Layer
The server ships with a committed catalog snapshot at src/data/catalog/catalog.snapshot.json. The snapshot is generated from data.gov.il and bundled into the build. At startup, it is validated and indexed in memory.
The discovery layer powers:
find_datasetscatalog-first search with live CKAN fallback.list_all_datasetsinstant local enumeration with optional organization filter.list_organizationsinstant local organization list with dataset counts.list_available_tagsandsearch_tagsfrom real CKAN tag/facet data.- Dynamic completions for
datagov://dataset/{id}. datagov://tagsanddatagov://catalog/statsresources.
It includes:
- Hebrew normalization, including nikud removal and final-letter normalization.
- Tokenization and trigram indexes for fuzzy matches and typo tolerance.
- Dataset, tag, and organization maps.
- Tag-to-dataset and organization-to-dataset indexes.
安装
npx -y data-gov-il-mcp配置
{
"mcpServers": {
"data-gov-il": {
"command": "npx",
"args": ["-y", "data-gov-il-mcp"]
}
}
}