# termdat-mcp [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/malkreide/termdat-mcp  
**GitHub Stars:** 1  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/termdat-mcp

## Description
MCP server for TERMDAT — the terminology database of the Swiss Federal Administration

## Tools
Capabilities this server exposes over MCP:

- **search_terms** — Search TERMDAT for official designations of the Swiss Federal Administration.

    Use this to look up the officially validated German/French/Italian/English name
    of an authority, department or legal act — for example to check how a body is
    named in another national language before citing it.

    `search_term` is **Lucene query syntax**: `*` and `?` wildcards and the `~` fuzzy
    operator work. Matching is on whole words, so a compound is not found by its
    parts — «Quellensteuer» does not match «Quellensteuerverordnung», but
    «Quellensteuer*» does. Reach for a wildcard before concluding a term is absent.

    **Leave `detail` at True unless you want a bare hit list.** With `detail=False`
    the API omits `languageDetails`, and every entry comes back with an empty
    `variants` — id, url, status and classification, but not a single designation.
    That is a hit you cannot read a term from, from a tool whose purpose is terms.
    Use it to count or to filter by classification, never to answer «what is this
    called».

    `out_language` adds a target language to every entry's variants — it is purely
    additive and never filters the result set. `fields` is a comma-separated subset
    of: Terminus, Name, Abbreviation, Phraseology, Definition, Note, Context, Source,
    Metadata, Country, Comment; empty means Terminus, Name, Abbreviation, Phraseology,
    Definition, Note, Source. By default the search spans all 23 subject
    classifications; pass `classification_ids` or `collection_ids` to narrow it
    (see `list_classifications` / `list_collections`).

    Scope caveat: TERMDAT holds administrative nomenclature (authority names, titles
    of legal acts, abbreviations), not domain vocabulary — so a term may genuinely be
    absent. Establish that with a wildcard retry, not from a single empty result, and
    never fill the gap with a guessed designation.

    Coverage caveat: the public API serves a subset of what termdat.bk.admin.ch shows,
    and the Federal Chancellery confirmed on 2026-08-21 that this is deliberate — the
    selection follows the needs of the federal administration's translators, and no
    fuller coverage is planned. Entries the website lists can be missing from the API
    entirely: not hidden by a filter, simply not served, so no query reaches them. So
    «not found here» means «not in the API», never «not in TERMDAT»: say which one you
    mean, and point at www.termdat.ch for the difference.
    
- **get_entries** — Fetch known TERMDAT entries by their numeric IDs, with full language variants.

    Use this to re-retrieve an entry you already found via `search_terms` (its
    `entry_id`), e.g. to pull all four national-language designations at once.
    
- **translate_term** — Get the official equivalent of an administrative term in another national language.

    Returns the preferred designation (sequence 1) plus accepted variants, per matching
    entry. Use this for authority names, department titles and titles of legal acts.

    Matches only against designation fields, so a term merely *mentioned* in a
    definition is never reported as an equivalent. `term` accepts Lucene wildcards;
    on an empty result retry with `term*` before concluding there is no equivalent.
    
- **check_terms** — Check a list of terms against validated TERMDAT designations.

    Intended for communication QA: verify that authority names, department titles and
    abbreviations in a draft match the officially validated form. Each term is reported
    as `validated`, `found_unvalidated` or `not_found`. Up to 25 terms per call; the
    lookups run concurrently.
    
- **list_collections** — List the ~140 TERMDAT collections, for use as `collection_ids` filters.
- **list_classifications** — List the 23 subject classifications (e.g. BILD = education), for `classification_ids`.
- **api_status** — Availability of the TERMDAT API. Never returns silently empty.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

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

## Documentation

## What termdat-mcp MCP server does

The termdat-mcp MCP server exposes TERMDAT, the Swiss Federal Administration’s terminology database, to MCP-compatible AI hosts. Its data covers officially validated designations for Swiss authorities, departments, and legal acts in German, French, Italian, and English. Responses include source references and validation status.

This is a terminology lookup service for official names, not a general-purpose subject dictionary. For example, it can help identify the approved French or Italian name of an authority, but it is not intended to explain an educational concept or provide broad domain vocabulary. Search results may be sparse for ordinary subject terms.

All seven exposed tools are read-only. The server uses MCP Tools only; it does not publish MCP Resources or server-authored Prompts.

## How it works

The termdat-mcp MCP server sends live requests to the public TERMDAT v2 API at `api.termdat.bk.admin.ch`. Search requests can use field flags and filters for collections or classifications. Known entries can be retrieved by numeric ID, while the collection and classification endpoints provide the values needed to construct those filters.

A vocabulary cache stores the approximately 140 collections and 23 classifications for 24 hours. If a refresh fails, the server can serve stale cached vocabulary. Requests use retry delays of 2, 4, and 8 seconds, and API status is exposed through a dedicated tool rather than returning an indistinguishable empty result.

The server supports local `stdio` transport and Streamable HTTP for hosted deployments. The HTTP endpoint is `/mcp`. No API key or other authentication is required by the public TERMDAT API.

## Setup and configuration

Python 3.10 or newer is required, along with network access to the TERMDAT API. The recommended launch command is:

```bash
uvx termdat-mcp
```

This starts the default local `stdio` transport. A Claude Desktop configuration can launch it with `uvx` and the `termdat-mcp` argument. From a source checkout, it can also be run with `PYTHONPATH=src python -m termdat_mcp`.

Set `TERMDAT_MCP_TRANSPORT=streamable-http` or `http` for the HTTP mode. `HOST` defaults to `127.0.0.1`, and `PORT` defaults to `8000`. For a non-loopback deployment, configure `TERMDAT_MCP_ALLOWED_HOSTS`; browser-based use can additionally specify comma-separated `TERMDAT_MCP_CORS_ORIGINS` values. `TERMDAT_MCP_LOG_LEVEL` controls structured log output, and `TERMDAT_MCP_VOCAB_TTL` changes the vocabulary cache lifetime.

## Tools and capabilities

The termdat-mcp MCP server provides these tools:

- `search_terms`: Search TERMDAT using field, collection, and classification filters.
- `translate_term`: Find an official administrative equivalent in another national language.
- `check_terms`: Check up to 25 supplied terms against validated designations for communication QA.
- `get_entries`: Retrieve entries using known numeric IDs.
- `list_collections`: List terminology collections that can be used as filter values.
- `list_classifications`: List the 23 subject classifications, including `BILD` for education.
- `api_status`: Check service availability without silently treating failure as an empty result.

A typical workflow is to list classifications or collections, search for a term with the relevant filters, and then translate a selected designation. The implementation uses the official API rather than mirroring the full database locally.

## Limitations and notes

TERMDAT is focused on certified administrative designations. Measured searches reported by the project found organisational names for terms such as “Bildung,” while several common education terms returned no results. Search coverage should therefore be evaluated against the naming task at hand.

The server depends on network access to the public API. Its cache covers only collections and classifications, not a complete local copy of TERMDAT. HTTP deployments should set an explicit host allow-list when binding beyond loopback; the default configuration is intended for local use.

_Full upstream README: https://allmcps.com/mcp/termdat-mcp/readme_

