Skip to main content
ClaudeWave

MCP server for TERMDAT — official multilingual terminology of the Swiss Federal Administration (DE/FR/IT/EN). Validated authority names, legal act titles and abbreviations for AI agents.

MCP ServersRegistry oficial1 estrellas0 forksPythonMITActualizado today
ClaudeWave Trust Score
95/100
Verified
Passed
  • Open-source license (MIT)
  • Actively maintained (<30d)
  • Clear description
  • Topics declared
  • Documented (README)
Last scanned: 9/20/2026
Install in Claude Code / Claude Desktop
Method: UVX (Python) · termdat-mcp
Claude Code CLI
claude mcp add termdat-mcp -- uvx termdat-mcp
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "termdat-mcp": {
      "command": "uvx",
      "args": ["termdat-mcp"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Casos de uso

Resumen de MCP Servers

> 🇨🇭 Part of the [**Swiss Public Data MCP Portfolio**](https://github.com/malkreide/swiss-public-data-mcp) — open-source MCP servers connecting AI agents to Swiss public and open data.
> This is a private project. It is independent of any employer or institutional affiliation.

# 🏷️ termdat-mcp

[![Version](https://img.shields.io/badge/version-0.2.0-blue.svg)](CHANGELOG.md)
[![CI](https://github.com/malkreide/termdat-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/malkreide/termdat-mcp/actions/workflows/ci.yml)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![Python 3.10+](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://www.python.org/)
[![MCP](https://img.shields.io/badge/MCP-Model_Context_Protocol-8A2BE2.svg)](https://modelcontextprotocol.io/)
[![Auth: none](https://img.shields.io/badge/auth-none-brightgreen.svg)](#architecture-decision)
[![Portfolio](https://img.shields.io/badge/portfolio-swiss--public--data--mcp-informational)](https://github.com/malkreide/swiss-public-data-mcp)

> Official, validated Swiss administrative designations across DE / FR / IT / EN — with source references and validation status.

[🇩🇪 Deutsche Version](README.de.md)

## Overview

MCP server for **TERMDAT**, the terminology database of the Swiss Federal Administration, maintained by the Federal Chancellery. It gives an AI agent the officially validated designations of Swiss authorities, departments and legal acts across DE / FR / IT / EN — with source references and validation status.

Discovered through [`i14y-mcp`](https://github.com/malkreide/i14y-mcp), which catalogues TERMDAT as data service `ff0c37eb-2f7c-4ff6-996e-d22b77bf52fc`.

**What this is — and what it is not.** TERMDAT is not a subject dictionary. It is a **certified name-plate archive**: it will not tell you what «Sonderpädagogik» means, but it will tell you the official name of the authority responsible for it, and what that authority is called in French.

Measured coverage (live, 2026-07-19, German search over the Terminus field):

| Search term | Hits |
|---|---|
| Departement | 20 |
| Bildung | 13 |
| Verordnung | 8 |
| Schule | 5 |
| Behörde | 4 |
| Sonderpädagogik | 3 |
| Volksschule · Lehrperson · Schulleitung · Unterricht · Kindergarten | **0** |

The thirteen «Bildung» hits are organisational names — Bildungsdirektion, Erziehungsdepartement, Departement für Volkswirtschaft und Bildung — not pedagogical concepts. Plan accordingly: this server is strong for **authority naming, official titles and abbreviations**, and largely silent on domain vocabulary.

## Features

- Seven read-only tools over the official TERMDAT public v2 API.
- Official designations across **DE / FR / IT / EN**, with source reference and validation status on every response.
- Communication QA: check up to 25 terms in one call against validated designations.
- Vocabulary cache (24 h TTL) for the 140 collections and 23 classifications, with stale-serve fallback.
- Retry with exponential backoff (2/4/8 s); explicit `MaxEntryCount` to avoid silent truncation.
- Dual transport: `stdio` (local) and Streamable HTTP (cloud). Both serve MCP protocol revision `2026-07-28`.
- No authentication required — public, unauthenticated API (No-Auth-First).

## 🎯 Anchor demo query

> *«What are the official French and Italian names of the education directorates of the German-speaking cantons?»*

Resolved with `list_classifications` → `search_terms` → `translate_term`.

### Demo

![Demo: Claude using search_terms and translate_term](docs/assets/demo.svg)

## Prerequisites

- Python 3.10+
- [`uv` / `uvx`](https://docs.astral.sh/uv/) (recommended) or `pip`
- Network access to `api.termdat.bk.admin.ch` — no API key needed

## Installation

```bash
uvx termdat-mcp
```

Claude Desktop (`claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "termdat": {
      "command": "uvx",
      "args": ["termdat-mcp"]
    }
  }
}
```

## Quickstart

```bash
# Run locally over stdio (default transport)
uvx termdat-mcp

# From a checkout, without installing
PYTHONPATH=src python -m termdat_mcp
```

## Configuration

All configuration is via environment variables. Defaults are safe for local use.

| Variable | Default | Purpose |
|---|---|---|
| `TERMDAT_MCP_TRANSPORT` | `stdio` | Transport: `stdio` (local) or `streamable-http` / `http` (cloud). `sse` is accepted as a deprecated alias and now serves Streamable HTTP on `/mcp` — it warns on startup |
| `HOST` | `127.0.0.1` | Bind host (HTTP transport only). Loopback by default; set `HOST=0.0.0.0` **only** inside a container |
| `PORT` | `8000` | Bind port (HTTP transport only) |
| `TERMDAT_MCP_CORS_ORIGINS` | `[]` | HTTP only: explicit allowed browser origins (default-deny; never a wildcard in production) |
| `TERMDAT_MCP_LOG_LEVEL` | `INFO` | structlog level (JSON to stderr) |
| `TERMDAT_MCP_VOCAB_TTL` | `86400` | Vocabulary cache TTL in seconds |

Configuration is loaded once into a typed `Settings` object (pydantic-settings).

Cloud (Render / Railway):

```bash
TERMDAT_MCP_TRANSPORT=streamable-http PORT=8000 termdat-mcp   # exposes /mcp
```

## Available Tools

| Tool | Purpose |
|---|---|
| `search_terms` | Search TERMDAT with field flags, collection and classification filters |
| `translate_term` | Official equivalent of an administrative term in another national language |
| `check_terms` | Communication QA: check up to 25 terms against validated designations |
| `get_entries` | Fetch known entries by numeric ID |
| `list_collections` | The ~140 terminology collections (filter values) |
| `list_classifications` | The 23 subject classifications, e.g. `BILD` = education |
| `api_status` | Availability; never returns silently empty |

All tools are annotated `readOnlyHint: true`, `destructiveHint: false`.

**MCP primitives.** This server uses only the **Tools** primitive. TERMDAT answers
are live queries with no stable resource hierarchy to expose as *Resources*, and
there are no server-authored *Prompts*. The seven tools are small and closely
related, so they live in a single `server.py` rather than a `tools/` package.

## Architecture

```
┌─────────────────┐  stdio / HTTP    ┌──────────────────────────┐
│  MCP host       │ ───────────────► │  termdat-mcp             │
│  (Claude, IDE)  │ ◄─────────────── │                          │
└─────────────────┘                  │  vocabulary cache (24 h) │
                                     │  140 collections         │
                                     │   23 classifications     │
                                     └────────────┬─────────────┘
                                                  │ httpx + retry (2/4/8 s)
                                                  ▼
                              https://api.termdat.bk.admin.ch/v2
                              ├── /Search          (SearchTerm + InLanguageCode)
                              ├── /Entry           (EntryIds)
                              ├── /Collection      (140 values)
                              └── /Classification  ( 23 values, incl. BILD)
```

## Architecture decision

This server uses **Architecture A (live API only)**, with caching limited to the two controlled vocabularies.

Rationale (verified live on 2026-07-19):

- The API publishes a complete **OpenAPI 3.0.4 specification** at `/swagger/v2/swagger.json` and declares **no security schemes** — unauthenticated access, No-Auth-First satisfied.
- Server-side search works properly, including 11 field flags and filters by collection and classification. There is no reason to mirror the database locally, and no bulk dump is offered.
- `/Collection` (140 entries) and `/Classification` (23 entries) change rarely and are needed to make filter arguments legible to an agent, so they are cached with a 24-hour TTL and a stale-serve fallback.

Consequences:

- Every search is a live call; `provenance` is `live_api` except for vocabulary lookups.
- Validation errors arrive as clean RFC 9110 payloads and are surfaced rather than swallowed.

## Project Structure

```
termdat-mcp/
├── src/termdat_mcp/
│   ├── __init__.py
│   ├── __main__.py       # entry point; dual transport (stdio / Streamable HTTP)
│   ├── client.py         # httpx client, retry, vocabulary cache
│   ├── models.py         # Pydantic models
│   └── server.py         # MCP tool definitions
├── tests/
│   ├── test_client.py    # offline, respx-mocked
│   └── test_live.py       # hits the real TERMDAT API
├── README.md
├── README.de.md
├── CHANGELOG.md
├── LICENSE
└── pyproject.toml
```

## Safety & Limits

- **Read-only.** Every tool is annotated `readOnlyHint: true`, `destructiveHint: false`; the server never writes to TERMDAT.
- **No credentials handled.** The API is unauthenticated; the server stores and forwards no secrets.
- **No silent empties.** `api_status` and error paths surface failures instead of returning an empty result that looks complete.
- **Truncation is explicit.** `MaxEntryCount` is always sent and `truncated` is reported (see Known Limitations).
- **Terms of use are stated, not guessed.** Every response repeats them in `source`: reuse and republication require the source `www.termdat.ch` to be named, and the Federal Chancellery's Terminology Section to be informed of purpose and manner beforehand ([statement of 2026-08-21](docs/bk-auskunft-2026-08-21.md)).
- **Egress allow-list.** Requests can only reach `api.termdat.bk.admin.ch` (HTTPS), enforced before every call by a frozen `ALLOWED_HOSTS` set — no user input can redirect egress. See [`docs/network-egress.md`](docs/network-egress.md).
- **Loopback by default.** The HTTP transport binds to `127.0.0.1`; `0.0.0.0` is an explicit container opt-in that warns on stderr. It also sets default-deny CORS, exposing only `Mcp-Session-Id`.
- **Errors are masked.** Upstream/internal error detail is logged to stderr (structlog JSON) and never returned to the model.
- **Accepted risks (ADRs):** DNS pinning ([ADR 0001](
llmmcpmodel-context-protocolmultilingualpythonswiss-open-dataswiss-public-data-mcptermdatterminology

Lo que la gente pregunta sobre termdat-mcp

¿Qué es malkreide/termdat-mcp?

+

malkreide/termdat-mcp es mcp servers para el ecosistema de Claude AI. MCP server for TERMDAT — official multilingual terminology of the Swiss Federal Administration (DE/FR/IT/EN). Validated authority names, legal act titles and abbreviations for AI agents. Tiene 1 estrellas en GitHub y su última actualización registrada es del 2026-09-19.

¿Cómo se instala termdat-mcp?

+

Puedes instalar termdat-mcp clonando el repositorio (https://github.com/malkreide/termdat-mcp) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar malkreide/termdat-mcp?

+

Nuestro agente de seguridad ha analizado malkreide/termdat-mcp y le ha asignado un Trust Score de 95/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene malkreide/termdat-mcp?

+

malkreide/termdat-mcp es mantenido por malkreide. La última actividad registrada en GitHub es del 2026-09-19, con 0 issues abiertos.

¿Hay alternativas a termdat-mcp?

+

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Despliega termdat-mcp en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: malkreide/termdat-mcp
[![Featured on ClaudeWave](https://claudewave.com/api/badge/malkreide-termdat-mcp)](https://claudewave.com/repo/malkreide-termdat-mcp)
<a href="https://claudewave.com/repo/malkreide-termdat-mcp"><img src="https://claudewave.com/api/badge/malkreide-termdat-mcp" alt="Featured on ClaudeWave: malkreide/termdat-mcp" width="320" height="64" /></a>

Más MCP Servers

Alternativas a termdat-mcp