termdat-mcp

v0.2.0
io.github.malkreide/termdat-mcp Checked 3 days ago Published 2 months ago

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

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

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 wildcar…

ParameterTypeDescription
search_term *string
classification_ids
collection_ids
detailboolean
fieldsstring
in_languagestring
max_resultsinteger
out_languagestring

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.

ParameterTypeDescription
entry_ids *array
in_languagestring
out_languagestring

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.

ParameterTypeDescription
term *string
from_languagestring
max_resultsinteger
to_languagestring

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.

ParameterTypeDescription
terms *array
languagestring

list_collections

List the ~140 TERMDAT collections, for use as `collection_ids` filters.

ParameterTypeDescription
languagestring

list_classifications

List the 23 subject classifications (e.g. BILD = education), for `classification_ids`.

ParameterTypeDescription
languagestring

api_status

Availability of the TERMDAT API. Never returns silently empty.