i14y-mcp
i14y-mcp is a read-only MCP server for discovering and inspecting Switzerland's national metadata catalogue (I14Y/BFS): who publishes what, through which interface, and under which licence.
Search the catalogue with free-text queries, filtered by language, type, theme, and publisher (
search_catalog).List and inspect datasets — complete paginated register plus full metadata records, including contact point, coverage, documentation, and distributions (
list_datasets,get_dataset).Get download details — per-distribution formats, access/download URLs, media types, and licences (
get_dataset_distributions).Discover official APIs — register of Swiss public data services with endpoint URLs and OpenAPI descriptions (
list_data_services,get_data_service).Explore administrative services and concepts — public service offerings, harmonised concepts/code lists, and individual code-list entries (
list_public_services,list_concepts,get_concept,search_codelist_entries).Find publishers and catalogues — publishing bodies with Swiss UID join keys, and contributing catalogues (
list_publishers,list_catalogs).Check upstream availability —
api_statusdistinguishes “no data matched” from “source is down” with an evaluable status.Every result includes provenance, retrieval timestamp, and source attribution; all tools are read-only and idempotent.
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., "@i14y-mcp search for datasets about special needs education"
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.
Part of the Swiss Public Data MCP Portfolio — 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
MCP server for the I14Y interoperability platform — Switzerland's national metadata catalogue.
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.
Related MCP server: swiss-food-safety-mcp
🎯 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.chTwo 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.
Demo
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_catalogcaps results client-side because the upstream ignores paging.api_statusalways returns an evaluable state instead of empty records.
Full probe report: 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 for the phase model and
the prerequisites for any future write capability.
Tools
Tool | Purpose |
| Free-text search across the catalogue. Entry point. |
| Paginated dataset register (complete, unlike search). |
| Full metadata record for one dataset. |
| Download URLs, formats and licences. |
| Register of official Swiss APIs with endpoint URLs. |
| Full record for one registered interface. |
| Administrative services for citizens. |
| Harmonised concepts and code lists. |
| One concept definition. |
| Individual codes of a code list. |
| Publishing bodies, with Swiss UID. |
| Contributing catalogues. |
| 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
This server speaks two protocol eras over the same endpoint. The client's first request on a connection decides which one applies; a later claim from the other era is refused.
Era | Revision | Who reaches it |
|
| What today's clients speak. The server answers with the revision asked for, or with the |
Per-request envelope |
| A request carrying the |
Both revisions are pinned in
tests/test_protocol_version.py and asserted
against the installed SDK, so a Dependabot bump of mcp cannot move either one
silently. The handshake ceiling is measured against a live initialize through
the assembled ASGI stack, not read off a constant name.
Note that the SDK's LATEST_PROTOCOL_VERSION is an alias for the modern
era, not for the handshake era — pinning against it alone would leave the era
that current clients actually negotiate free to drift.
What the server carries on the modern revision
2026-07-28 moves discovery off the initialize handshake onto
server/discover plus a per-request _meta envelope, and gives every cacheable
result a freshness hint. What this server puts on those surfaces is measured in
tests/test_spec_2026_07_28.py through the
assembled stack — and, for stdio, through a real subprocess — rather than read
back off the configuration:
Surface | What this server answers |
| name, display title, description, website, and the installed distribution version — the same version the outbound |
| how to sequence the tools, plus the two properties of I14Y that no single tool description shows |
| 300 s, |
| a display name per tool, so a client shows «Search a concept's code list» rather than |
The freshness hint is not cosmetic. With none set, the SDK answers ttlMs: 0, cacheScope: private — «already stale, never share» — for directories that are
fixed at import and cannot change while the process runs.
Both transports serve the modern revision: HTTP through the streamable-HTTP
session manager, and stdio — the default, and what uvx i14y-mcp starts —
through the same dual-era loop. Neither is evidence for the other, so both are
measured.
One thing this server advertises but does not use. On 2026-07-28 the
listChanged flags and resources.subscribe derive solely from whether
subscriptions/listen is served, and the SDK wires that handler
unconditionally. server/discover therefore reports listChanged: true for a
tool list that is fixed at import, and a subscribe capability over an empty
resource list; no change notification is ever sent. It is not switchable
through the public API — only a wholesale replacement of the server/discover
handler could do it, which would be a second truth about our own capabilities —
so it is pinned by a test instead of papered over.
Update policy. When the gate fails, do not edit the constant blindly: read
the spec changelog between the two revisions, verify the server still behaves,
then move the constant, this section, README.de.md and
CHANGELOG.md together.
Installation
uvx i14y-mcpOr from source:
git clone https://github.com/malkreide/i14y-mcp
cd i14y-mcp
pip install -e ".[dev]"Claude Desktop
{
"mcpServers": {
"i14y": {
"command": "uvx",
"args": ["i14y-mcp"]
}
}
}Remote deployment (Render, Railway)
I14Y_MCP_TRANSPORT=streamable-http HOST=0.0.0.0 PORT=8000 i14y-mcpI14Y_MCP_TRANSPORT accepts stdio (the default of the entry point itself),
streamable-http (http is a synonym) or sse. 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 container image already does both).
Connector URL: https://<host>/mcp
A Claude.ai custom connector speaks Streamable HTTP, and that transport serves
exactly one path: /mcp. sse is the older transport and serves /sse and
/messages instead — measured through the assembled app, POST /mcp answers
404 there and 200 under Streamable HTTP. The container image therefore
defaults to streamable-http; a connector pointed at an SSE deployment gets a
404 and never completes a handshake.
I14Y_MCP_ALLOWED_HOSTS — required for a public deployment
A comma-separated list of the hostnames the server is reached under — hostnames only, no scheme and no port:
I14Y_MCP_ALLOWED_HOSTS=i14y-mcp.up.railway.app,mcp.example.chThe value is compared literally against the incoming Host header, so
https://i14y-mcp.up.railway.app or a trailing :443 matches nothing and every
request fails with HTTP 421 Invalid Host header. Behind TLS the browser
sends the bare hostname; a non-standard port needs the SDK's only wildcard form,
host:*. Loopback stays reachable either way, so container health checks are
unaffected.
Leaving it unset on a non-loopback bind does not fall back to something safe. The server cannot guess the name it will be addressed by, and a guessed list would reject every real request, so it switches the Host check off entirely and says so in the log:
dns_rebinding_protection_offrailway.json
railway.json pins the one build setting the deployment cannot
get wrong on its own:
{ "build": { "builder": "DOCKERFILE", "dockerfilePath": "Dockerfile" } }With any other builder Railway never looks at the Dockerfile. It derives a start
command itself, I14Y_MCP_TRANSPORT is then set nowhere, and main() falls into
the stdio branch — the container runs, never opens a port, and the only trace is
a failing health check. tests/test_entrypoint.py fails the day that setting
changes.
Two things the file deliberately does not carry:
No environment variables. Railway's schema has no key for them at any level, so
I14Y_MCP_ALLOWED_HOSTSandI14Y_MCP_TRANSPORTbelong in the service variables. The trap is that the schema validates values but waves invented keys through: a"variables": { … }block passes validation, your editor stays quiet, and Railway ignores it. A test rejects such a key.No
healthcheckPath. Measured through the assembled app, no path answers a GET with 2xx:/and/healthare 404,/mcpis 400 without a session and 421 under a foreignHost. A health check pointed at any of them would mark the deployment unhealthy and roll it back. The Dockerfile's TCP check does the right thing instead. Should the server ever grow a real health route, the key may be set — a test then requires that the path actually answers.
CORS exposes the Mcp-Session-Id header so browser MCP clients keep their session.
Which browser origins may call the server comes from I14Y_MCP_CORS_ORIGINS, a
comma-separated list — unset means no browser client is permitted at all,
which is the default. * is still accepted and logs a warning. stdio and other
non-browser clients are unaffected either way.
Docker
docker compose up --build # Streamable HTTP on http://localhost:8000/mcpThe 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 and 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 |
|
|
Endpoint URL |
| any portfolio server wrapping that API |
Known limitations
Verified live on 2026-07-21.
The search index covers roughly half the register.
search_catalogreturns at most 1013 records;list_datasetsreaches about 2003. Uselist_datasetswhen completeness matters.Search returns Datasets only. Filtering by
types=["Concept"]ortypes=["DataService"]yields zero results even though those entities exist. Uselist_conceptsandlist_data_servicesinstead.The upstream ignores paging on search. The full result set is always returned; this server caps it at 200 records and sets
truncated: true.Licences vary per distribution, not per dataset. Most carry «Opendata BY ASK», which requires attribution and restricts commercial use. Always read the
licencefield before reuse.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.
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
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 testsThe 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
See CONTRIBUTING.md for the ground rules (read-only, one
egress host, no secrets) and the local dev loop. Maintainers: PUBLISHING.md
covers the PyPI / MCP Registry release process.
Security
See SECURITY.md for the security posture and how to report a
vulnerability.
License
MIT License — see LICENSE. The catalogue data remains subject to the terms declared by each publisher.
Author
Hayal Oezkan · github.com/malkreide
Credits & related projects
Data: I14Y Interoperability Platform, Federal Statistical Office (BFS)
Standard: eCH-0200 / DCAT-AP-CH
Source discovery inspired by rnckp/awesome-ogd-switzerland
Portfolio: swiss-public-data-mcp
Protocol: Model Context Protocol
Licence: MIT. The catalogue data remains subject to the terms declared by each publisher.
MCP Registry
Ownership marker used by the MCP Registry to link this PyPI package to the GitHub namespace:
mcp-name: io.github.malkreide/i14y-mcpAvailable Tools
13 toolsapi_statusCheck the I14Y API statusARead-onlyIdempotent
Check whether the I14Y API is reachable and which endpoints respond.
Always returns an evaluable status rather than an empty result, so an agent can distinguish «no data matched» from «the source is down».
Inputs: no named parameters. Returns: note, source, base_url, reachable, +4 more
get_conceptGet one conceptARead-onlyIdempotent
Retrieve one concept definition, including its value type and version.
Args:
concept_id: UUID from list_concepts.
language: Language for titles and descriptions.
Inputs: concept_id (required), language. Returns: source, concept, provenance, retrieved_at
get_data_serviceGet one data serviceARead-onlyIdempotent
Retrieve the full record for one registered API, including endpoints.
Args:
data_service_id: UUID from list_data_services.
language: Language for titles and descriptions.
Inputs: data_service_id (required), language. Returns: source, provenance, data_service, retrieved_at
get_datasetGet one datasetARead-onlyIdempotent
Retrieve the full, aggregated metadata record for one dataset.
This is the aggregated detail tool: a single call returns the contact
point, temporal and spatial coverage, documentation links and every
distribution with its licence — so search_catalog → get_dataset
answers «who publishes it, through which interface, under which licence»
in two calls, without a separate distributions or contact lookup.
Args:
dataset_id: UUID from search_catalog or list_datasets.
language: Language for titles and descriptions.
Inputs: dataset_id (required), language. Returns: source, dataset, provenance, retrieved_at
get_dataset_distributionsGet a dataset's distributionsARead-onlyIdempotent
Get the downloadable files and access URLs for a dataset.
This is the «where do I actually get the data» tool. Each distribution
carries its own format, licence and download URL — licences differ between
distributions of the same dataset, so always read the licence field
before reusing the data. (get_dataset returns these same distributions
alongside the rest of the record.)
Args:
dataset_id: UUID from search_catalog or list_datasets.
language: Language for titles and descriptions.
Inputs: dataset_id (required), language. Returns: source, returned, dataset_id, provenance, +3 more
list_catalogsList cataloguesARead-onlyIdempotent
List the catalogues that feed into I14Y.
Each catalogue represents one contributing organisation's data collection.
Args: language: Language for titles. page: 1-based page number. page_size: Records per page (1-100).
Inputs: page, language, page_size. Returns: page, source, catalogs, returned, +3 more
list_conceptsList harmonised conceptsARead-onlyIdempotent
List harmonised concepts and code lists of the Swiss administration.
Concepts are the semantic backbone of interoperability: shared definitions
and code lists that different bodies agree to use. Note that these are not
reachable through search_catalog.
Args:
publisher_identifier: Publisher identifier from list_publishers.
language: Language for titles and descriptions.
page: 1-based page number.
page_size: Records per page (1-100).
Inputs: page, language, page_size, publisher_identifier. Returns: page, source, concepts, returned, +3 more
list_data_servicesList data services (APIs)ARead-onlyIdempotent
List machine interfaces (APIs) registered by Swiss public bodies.
The strategic payload of this server: the national register of official APIs, with endpoint URLs and OpenAPI specification links where the publisher supplied them. Use this to discover whether an interface already exists before building a scraper.
Args:
publisher_identifier: Publisher identifier from list_publishers.
language: Language for titles and descriptions.
page: 1-based page number.
page_size: Records per page (1-100).
Inputs: page, language, page_size, publisher_identifier. Returns: page, source, returned, page_size, +3 more
list_datasetsList datasetsARead-onlyIdempotent
List registered datasets, optionally filtered by publisher.
Unlike search_catalog, this endpoint paginates correctly and covers the
complete register (roughly 2000 datasets as of July 2026), including
records the search index misses.
Args:
publisher_identifier: Publisher identifier from list_publishers.
access_rights: e.g. "PUBLIC", "NON_PUBLIC", "RESTRICTED".
language: Language for titles and descriptions.
page: 1-based page number.
page_size: Records per page (1-100).
Inputs: page, language, page_size, access_rights, +1 more. Returns: page, source, datasets, returned, +3 more
list_public_servicesList public servicesARead-onlyIdempotent
List registered public services (administrative offerings for citizens).
Args:
publisher_identifier: Publisher identifier from list_publishers.
language: Language for titles and descriptions.
page: 1-based page number.
page_size: Records per page (1-100).
Inputs: page, language, page_size, publisher_identifier. Returns: page, source, returned, page_size, +3 more
list_publishersList publishersARead-onlyIdempotent
List the public bodies that publish into I14Y.
Returns publisher identifiers needed by the other tools, plus the Swiss UID
where available — the UID is the join key to register-mcp (Zefix).
Args: identifier: Filter by exact publisher identifier. uid: Filter by Swiss UID, e.g. "CHE-123.456.789". language: Language for names. page: 1-based page number. page_size: Records per page (1-100).
Inputs: uid, page, language, page_size, +1 more. Returns: page, source, returned, page_size, +3 more
search_catalogSearch the I14Y catalogueARead-onlyIdempotent
Search Switzerland's national metadata catalogue for data resources.
The primary entry point: use this to find out who publishes data on a topic before looking for a specific dataset. Returns titles, publishers, themes and portal permalinks.
Known limitation (verified live 2026-07-21): the upstream search index
covers Datasets only. Filtering by types=["Concept"] or
types=["DataService"] returns zero results even though those entities
exist — use list_concepts and list_data_services for those.
Args: query: Free-text search term, e.g. "Sonderpaedagogik" or "Bildung". An empty string returns the full index (over 1000 records) and is not recommended. language: Language for titles and descriptions. types: Restrict to resource types. Effectively only "Dataset" works. themes: Filter by theme identifiers. publishers: Filter by publisher identifiers. limit: Maximum records to return (1-200). Upstream ignores paging, so capping happens in this server.
Inputs: query (required), limit, types, themes, +2 more. Returns: hint, hits, query, source, +7 more
search_codelist_entriesSearch a concept's code listARead-onlyIdempotent
List the individual codes of a code-list concept.
Use this to resolve official code values — for example the canonical list
of a classification used across several federal datasets. Only concepts
with concept_type == "CodeList" return entries.
Args:
concept_id: UUID of a code-list concept from list_concepts.
language: Language for entry names. Required by the upstream API.
page: 1-based page number.
page_size: Records per page (1-200).
Inputs: concept_id (required), page, language, page_size. Returns: page, source, entries, language, +5 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Each tool targets a distinct resource or action: listing vs. fetching individual entities, plus search, status, and code-list lookup. Even the overlapping get_dataset and get_dataset_distributions are clearly differentiated by the description noting get_dataset returns distributions alongside the full record, making get_dataset_distributions a focused convenience tool. No two tools appear to do the same thing.
Tool names follow a consistent verb_noun pattern: list_* for collections, get_* for single entities, search_* for search operations, and api_status for health. The pattern is uniform across all 13 tools with no mixed conventions or vague verbs.
13 tools is well within the ideal 3-15 range for a domain-specific server. Each tool covers a distinct aspect of the I14Y metadata catalog (datasets, data services, public services, concepts, publishers, catalogs, status), and none feel redundant or superfluous.
The tool surface covers the core read-only workflows for a catalog: listing and retrieving datasets, data services, concepts, and code-list entries, plus search, publishers, catalogs, and status. Minor gaps exist—there is no get_public_service or get_catalog, so those entities can only be listed, not fetched individually. This is a minor gap that agents can work around, but it does not break the primary use cases.
Maintenance
Related MCP Connectors
opendata.swiss MCP — Switzerland's federal open-data portal (CKAN catalogue).
Hosted MCP server for live public-data APIs and Skills for AI agents.
Hosted MCP server for finding authoritative primary data sources and official portals.
This MCP server provides seamless access to Malaysia's government open data, including datasets, w…
Related MCP Servers
- AlicenseBqualityBmaintenanceSwiss open data MCP server — transport, weather, geodata, companies, etc,. Zero API keys.5424 npm28MIT
- AlicenseAqualityBmaintenanceMCP server connecting AI models to Swiss Federal Food Safety and Veterinary Office open data, enabling queries about food recalls, animal disease surveillance, food control results, and more.1134 PyPIMIT
- AlicenseBqualityBmaintenanceAn MCP server providing AI-powered access to Open Data from the City of Zurich, enabling queries to 900+ datasets, real-time environmental and mobility data, geodata, parliamentary proceedings, and more.2666 PyPI9MIT
- AlicenseBqualityDmaintenanceMCP server exposing all major Swiss official public APIs as native tools for any MCP-compatible AI agent.3412 npmMIT