govdata-mcp
# govdata-mcp ποΈ
mcp-name: io.github.mohammad-abbasi-sh/govdata-mcp
Unofficial **read-only** MCP server for **[govdata.de](https://www.govdata.de)** β Germany's national open-data portal govdata.de via its official CKAN API: search 163,000+ datasets, dataset details, publishers, recent datasets and resource details. No key, no login. No key, no login.
> Built by Mohammad Abbasi as part of the "Germany MCP factory". Not affiliated with govdata.de.
## For AI agents
Add to your MCP client config (stdio):
```json
{
"mcpServers": {
"govdata": {
"command": "uvx",
"args": ["govdata-mcp==0.1.0"]
}
}
}
```
Or run locally: `python -m govdata_mcp.server` (needs `mcp<2`, `httpx`).
## Tools
| Tool | Description |
|------|-------------|
| `govdata_search_datasets` | Search govdata.de datasets β `query`, `limit` 1..50, `sort` (relevance/recent) |
| `govdata_get_dataset` | Full details of one dataset β `dataset_id` (id or name, e.g. "wohnatlas-berlin") |
| `govdata_list_publishers` | Publishing organisations on govdata.de, most datasets first β `limit` 1..50 |
| `govdata_recent_datasets` | Most recently updated datasets β `limit` 1..50 |
| `govdata_get_resource` | Details of one dataset resource (file/API link) β `resource_id` |
| `govdata_health` | Reachability probe (ok / blocked / error) β one polite request |
## Notes
- All data comes from the **govdata.de CKAN API** (free, no key, no login) β 163,247 datasets at last check.
- Competition note: pipeworx-io/mcp-govdata-de (β
0, 2026-11-09) covers the same portal but only ships 2 tools (`list_organizations`, `list_groups`) behind a commercial gateway and has no dataset search; this server adds search, dataset/resource details, recency and tests.
Tests: 19/19 green (13 offline + 6 live, 2026-11-10).
## Development
```bash
python3 -m venv .venv && .venv/bin/pip install "mcp<2" httpx pytest
.venv/bin/pip install -e .
.venv/bin/python -m pytest tests/ -q
```
## License
[PolyForm Noncommercial 1.0.0](https://polyformproject.org/licenses/noncommercial/1.0.0/) β free for personal and non-commercial use; commercial use needs a separate license (see LICENSE).
---
Built by [Mohammad Abbasi](https://github.com/mohammad-abbasi-sh) β [Almanibama](https://almanibama.ir) Β· [mabbasi.ir](https://mabbasi.ir)
TDQS
Scored across 6 tools
Each tool targets a distinct operation: search, fetch dataset, fetch resource, list publishers, list recent, and a health probe. The only real overlap is between govdata_search_datasets (with sort=recent) and govdata_recent_datasets, which an agent could easily confuse since one can emulate the other via a sort parameter.
Every tool follows a uniform govdata_<verb>_<noun> pattern (search_datasets, get_dataset, list_publishers, get_resource), with the single-word govdata_health as a natural exception. Consistent snake_case and verb-first phrasing throughout.
Six tools is well-scoped for a read-only CKAN-style dataset catalog: enough to cover discovery, detail lookup, and diagnostics without redundancy. Nothing feels padded, and the health probe is a sensible inclusion for a public API.
Read access is well covered (search, detail, resources, recency, status), but list_publishers is a dead end β there is no way to fetch datasets filtered by a publisher, and search only accepts a free-text query, so agents cannot follow the publisher link. Resource discovery is also limited to IDs obtained from dataset details.