MCP server for the I14Y interoperability platform — Switzerland's national metadata catalogue
claude mcp add i14y-mcp -- uvx i14y-mcp{
"mcpServers": {
"i14y-mcp": {
"command": "uvx",
"args": ["i14y-mcp"]
}
}
}MCP Servers overview
> **Part of the [Swiss Public Data MCP Portfolio](https://github.com/malkreide/swiss-public-data-mcp)** — a collection of open-source MCP servers connecting AI agents to Swiss public and open data.
> This is a private project. It is not affiliated with, endorsed by, or operated on behalf of any employer or public authority.
# i14y-mcp
[](LICENSE)
[](https://www.python.org/)
[](https://modelcontextprotocol.io/)
[](https://www.i14y.admin.ch)
**MCP server for the I14Y interoperability platform — Switzerland's national metadata catalogue.**
🇩🇪 [Deutsche Version](README.de.md)
---
## Why this server exists
The other servers in this portfolio answer *«what does the data say?»*.
This one answers the question that comes first: **«who publishes data on this
topic, through which interface, under which licence?»**
I14Y is the national data catalogue maintained by the Federal Statistical
Office. It describes datasets, registered APIs, public services and harmonised
concepts from the Confederation, cantons and communes, using the DCAT-AP-CH
profile (eCH-0200).
> **Mnemonic: «Catalogue before shelf.»** Without a catalogue, an agent has to
> already know a data source exists. With one, it can find it.
---
## 🎯 Anchor Demo Query
> *«Which authority publishes data on special needs education, through which
> interface is it available, and under which licence?»*
```
search_catalog(query="Sonderpädagogik")
→ «Statistik der Sonderpädagogik» — Federal Statistical Office (BFS), theme: Bildung
get_dataset(dataset_id=...)
→ 2 distributions, licence: «Opendata BY ASK — attribution required,
commercial use only with permission from the data supplier»
→ contact: auskunftsdienst@bfs.admin.ch
```
Two tool calls turn a vague topic into a named authority, a download URL and a
licence you can act on — `get_dataset` aggregates the distributions, licences
and contact point into one record.
---
## Architecture
```
┌──────────────────────────────┐
│ MCP Host (Claude) │
└───────────────┬──────────────┘
│ stdio | streamable-http
┌───────────────▼──────────────┐
│ i14y-mcp │
│ ┌────────────────────────┐ │
│ │ server.py (13 tools) │ │
│ ├────────────────────────┤ │
│ │ mappers.py │ │ DCAT → flat, one language
│ ├────────────────────────┤ │
│ │ models.py (Pydantic) │ │ source + provenance envelope
│ ├────────────────────────┤ │
│ │ client.py │ │ retry 2s/4s/8s, no-retry 4xx
│ └────────────────────────┘ │
└───────────────┬──────────────┘
│ HTTPS, no auth
┌───────────────▼──────────────┐
│ api.i14y.admin.ch/api │
│ datasets · dataservices · │
│ concepts · publicservices · │
│ catalogs · agents · search │
└──────────────────────────────┘
```
### Architecture decision
This server uses **Architecture A (live API only)**.
Rationale (verified live on 2026-07-21):
- All read endpoints respond without authentication and paginate correctly.
- No bulk download of catalogue metadata is offered, and none is needed.
- Error responses follow RFC 7807, so failure modes are distinguishable.
Consequences:
- Every HTTP call retries transient failures with 2 s / 4 s / 8 s backoff.
- `search_catalog` caps results client-side because the upstream ignores paging.
- `api_status` always returns an evaluable state instead of empty records.
Full probe report: [`docs/probe-i14y.md`](docs/probe-i14y.md).
### Project phase
This server is in **Phase 1 (read-only)** of the portfolio's «Read-only First»
phase architecture: all tools are read-only, there is no authentication and no
personal data. See [`docs/roadmap.md`](docs/roadmap.md) for the phase model and
the prerequisites for any future write capability.
---
## Tools
| Tool | Purpose |
|---|---|
| `search_catalog` | Free-text search across the catalogue. Entry point. |
| `list_datasets` | Paginated dataset register (complete, unlike search). |
| `get_dataset` | Full metadata record for one dataset. |
| `get_dataset_distributions` | Download URLs, formats and **licences**. |
| `list_data_services` | Register of official Swiss APIs with endpoint URLs. |
| `get_data_service` | Full record for one registered interface. |
| `list_public_services` | Administrative services for citizens. |
| `list_concepts` | Harmonised concepts and code lists. |
| `get_concept` | One concept definition. |
| `search_codelist_entries` | Individual codes of a code list. |
| `list_publishers` | Publishing bodies, with Swiss UID. |
| `list_catalogs` | Contributing catalogues. |
| `api_status` | Reachability check with graceful degradation. |
All tools are annotated `readOnlyHint: true`. Write operations exist in the
upstream API but are deliberately not exposed.
### MCP primitives
This server exposes **Tools only** — no Resources, no Prompts. That is a
deliberate choice, not an omission: I14Y is queried by free-text search and by
opaque UUIDs, so there is no small, stable set of addressable URIs that would map
cleanly onto MCP Resources, and the server ships no opinionated prompt templates.
Every tool is read-only and idempotent; if a future stable entry point emerges
(e.g. a fixed theme list) it is a candidate for a Resource.
### MCP protocol version
Built against the MCP Python SDK (`mcp >= 1.28.1`), which negotiates the protocol
version with the client at initialize time. The tested SDK floor is pinned in
`pyproject.toml`; [Dependabot](.github/dependabot.yml) opens monthly SDK-update
PRs, and any change that bumps the negotiated spec version is called out in
[`CHANGELOG.md`](CHANGELOG.md).
---
## Installation
```bash
uvx i14y-mcp
```
Or from source:
```bash
git clone https://github.com/malkreide/i14y-mcp
cd i14y-mcp
pip install -e ".[dev]"
```
### Claude Desktop
```json
{
"mcpServers": {
"i14y": {
"command": "uvx",
"args": ["i14y-mcp"]
}
}
}
```
### Remote deployment (Render, Railway)
```bash
I14Y_MCP_TRANSPORT=sse HOST=0.0.0.0 PORT=8000 i14y-mcp
```
`I14Y_MCP_TRANSPORT` accepts `stdio` (default), `sse` or `streamable-http`. The
HTTP transports bind to `HOST`, which defaults to `127.0.0.1` (loopback); set
`HOST=0.0.0.0` to expose the port on a PaaS (the Docker image already does).
CORS exposes the `Mcp-Session-Id` header so browser MCP clients keep their session.
### Docker
```bash
docker compose up --build # SSE transport on http://localhost:8000
```
The image is a hardened multi-stage build: it runs as a non-root user, ships no
build tools, and needs no secrets (the API is unauthenticated). See
[`Dockerfile`](Dockerfile) and [`compose.yaml`](compose.yaml).
---
## Join keys
I14Y is a connector layer. Two identifiers make it composable with the rest of
the portfolio:
| Key | Field | Joins to |
|---|---|---|
| Swiss UID | `Publisher.uid` | [`register-mcp`](https://github.com/malkreide/register-mcp) (Zefix) |
| Endpoint URL | `DataServiceSummary.endpoint_urls` | any portfolio server wrapping that API |
---
## Known limitations
Verified live on 2026-07-21.
1. **The search index covers roughly half the register.** `search_catalog`
returns at most 1013 records; `list_datasets` reaches about 2003. Use
`list_datasets` when completeness matters.
2. **Search returns Datasets only.** Filtering by `types=["Concept"]` or
`types=["DataService"]` yields zero results even though those entities
exist. Use `list_concepts` and `list_data_services` instead.
3. **The upstream ignores paging on search.** The full result set is always
returned; this server caps it at 200 records and sets `truncated: true`.
4. **Licences vary per distribution**, not per dataset. Most carry
«Opendata BY ASK», which requires attribution and restricts commercial use.
Always read the `licence` field before reuse.
5. **Some metadata fields are simply empty.** Frequency, temporal coverage and
distribution format are optional and frequently unset by publishers. This is
a data-quality property of the catalogue, not a bug in this server.
6. **Not every entry with an endpoint has a URL.** Entries labelled only
«OpenAPI Spezifikation» without a URI are surfaced as `(no URI) <label>`
rather than dropped.
---
## Testing
```bash
PYTHONPATH=src pytest tests/ -m "not live" # offline, used in CI
PYTHONPATH=src pytest tests/ -m "live" # hits the real API
PYTHONPATH=src pytest tests/ # everything
python -m ruff check src tests
```
The live tests are not decoration: fundstück 4 in the probe report — keywords
nesting their language object under `label` — was caught by a live test after
the unit tests were already green.
---
## Contributing & security
- [`CONTRIBUTING.md`](CONTRIBUTING.md) — ground rules (read-only, one egress
host, no secrets) and the local dev loop.
- [`SECURITY.md`](SECURITY.md) — security posture and how to report a vulnerability.
- [`PUBLISHING.md`](PUBLISHING.md) — the PyPI / MCP Registry release process.
---
## Credits & related projects
- Data: [I14Y Interoperability Platform](https://www.i14y.admin.ch), Federal Statistical Office (BFS)
- Standard: [eCH-0200 / DCAT-AP-CH](https://www.ech.ch/de/ech/ech-0200/1.0)
- Source discovery inspired by [rnckp/awesome-ogd-switzerland](https://github.com/rnckp/awesome-ogd-switzerland)
- Portfolio: [swiss-public-data-mcp](What people ask about i14y-mcp
What is malkreide/i14y-mcp?
+
malkreide/i14y-mcp is mcp servers for the Claude AI ecosystem. MCP server for the I14Y interoperability platform — Switzerland's national metadata catalogue It has 0 GitHub stars and was last updated today.
How do I install i14y-mcp?
+
You can install i14y-mcp by cloning the repository (https://github.com/malkreide/i14y-mcp) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is malkreide/i14y-mcp safe to use?
+
malkreide/i14y-mcp has not been audited yet by our security agent. Review the original repository on GitHub before using it in production.
Who maintains malkreide/i14y-mcp?
+
malkreide/i14y-mcp is maintained by malkreide. The last recorded GitHub activity is from today, with 0 open issues.
Are there alternatives to i14y-mcp?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy i14y-mcp to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/malkreide-i14y-mcp)<a href="https://claudewave.com/repo/malkreide-i14y-mcp"><img src="https://claudewave.com/api/badge/malkreide-i14y-mcp" alt="Featured on ClaudeWave: malkreide/i14y-mcp" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
The fastest path to AI-powered full stack observability, even for lean teams.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!