Serveur MCP

1820.ch – Telefonbuch Schweiz

ch.1820/telefonbuch

Ce que fait ce MCP

Searches the Swiss public phone and business directory, retrieves directory details, browses business categories, and performs reverse phone lookups.

browse_business_category
Browse a business category
Lists public directory entries in one business category, optionally narrowed to a locality/postcode/canton. Use search_swiss_directory instead for a free-text query.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', 'required': ['category'], 'properties': {'lang': {'enum': ['de', 'fr', 'it', 'en'], 'type': 'string', 'description': 'Response language: de, fr, it, or en. Defaults to de.'}, 'limit': {'type': 'integer', 'default': 10, 'maximum': 20, 'minimum': 1, 'description': 'Maximum number of results, 1-20.'}, 'category': {'type': 'string', 'maxLength': 200, 'minLength': 1, 'description': 'The business category slug (e.g. "restaurant", "coiffeur", "sanitaer"). Valid slugs are the slug values in categories, as returned by get_directory_entry, or a top-level group slug such as "bau-handwerk".'}, 'location': {'type': 'string', 'maxLength': 200, 'description': 'Locality, postcode, or canton (e.g. "Baden", "5400", "ZH") to narrow the category to. Always put a place name here.'}}, 'additionalProperties': False}
Schéma de sortie
{'type': 'object', 'required': ['results', 'source', 'retrieved_at', 'advertising_block_note'], 'properties': {'source': {'type': 'object', 'required': ['name', 'url'], 'properties': {'url': {'type': 'string'}, 'name': {'type': 'string'}}, 'additionalProperties': False}, 'results': {'type': ['null', 'array'], 'items': {'type': 'object', 'required': ['entry_id', 'entry_type', 'advertising_block'], 'properties': {'name': {'type': 'string'}, 'address': {'type': ['null', 'object'], 'properties': {'canton': {'type': 'string'}, 'street': {'type': 'string'}, 'country': {'type': 'string'}, 'locality': {'type': 'string'}, 'post_code': {'type': 'string'}, 'street_number': {'type': 'string'}}, 'additionalProperties': False}, 'category': {'type': 'string'}, 'entry_id': {'type': 'string'}, 'entry_type': {'type': 'string'}, 'source_url': {'type': 'string'}, 'advertising_block': {'type': 'boolean'}}, 'additionalProperties': False}}, 'retrieved_at': {'type': 'string'}, 'advertising_block_note': {'type': 'string'}}, 'additionalProperties': False}
get_directory_entry
Get a directory entry
Fetches the full public detail for one directory entry by its entry_id (public_id), including phone numbers, opening hours, and links when the entry has them. Use get_directory_entry for phone numbers and opening hours; use search_swiss_directory or browse_business_category to find an entry_id first.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', 'required': ['entry_id'], 'properties': {'lang': {'enum': ['de', 'fr', 'it', 'en'], 'type': 'string', 'description': 'Response language: de, fr, it, or en. Defaults to de.'}, 'entry_id': {'type': 'string', 'maxLength': 32, 'minLength': 1, 'description': "The entry's public_id, as returned by search_swiss_directory, browse_business_category, or reverse_phone_lookup."}}, 'additionalProperties': False}
Schéma de sortie
{'type': 'object', 'required': ['entry', 'source', 'retrieved_at', 'advertising_block_note'], 'properties': {'entry': {'type': 'object', 'required': ['entry_id', 'entry_type', 'advertising_block'], 'properties': {'name': {'type': 'string'}, 'links': {'type': ['null', 'array'], 'items': {'type': 'object', 'required': ['kind', 'value'], 'properties': {'key': {'type': 'string'}, 'kind': {'type': 'string'}, 'value': {'type': 'string'}}, 'additionalProperties': False}}, 'phones': {'type': ['null', 'array'], 'items': {'type': 'object', 'required': ['e164'], 'properties': {'e164': {'type': 'string'}, 'kind': {'type': 'string'}, 'display_value': {'type': 'string'}, 'price_information': {'type': 'string'}, 'refuse_advertising': {'type': 'boolean'}}, 'additionalProperties': False}}, 'address': {'type': ['null', 'object'], 'properties': {'canton': {'type': 'string'}, 'street': {'type': 'string'}, 'country': {'type': 'string'}, 'locality': {'type': 'string'}, 'post_code': {'type': 'string'}, 'street_number': {'type': 'string'}}, 'additionalProperties': False}, 'category': {'type': 'string'}, 'entry_id': {'type': 'string'}, 'categories': {'type': ['null', 'array'], 'items': {'type': 'object', 'required': ['slug'], 'properties': {'slug': {'type': 'string'}, 'label': {'type': 'string'}}, 'additionalProperties': False}}, 'entry_type': {'type': 'string'}, 'source_url': {'type': 'string'}, 'description': {'type': 'string'}, 'opening_hours': {'type': ['null', 'array'], 'items': {'type': 'object', 'required': ['day_of_week', 'closed'], 'properties': {'opens': {'type': 'string'}, 'closed': {'type': 'boolean'}, 'closes': {'type': 'string'}, 'day_of_week': {'type': 'integer'}}, 'additionalProperties': False}}, 'advertising_block': {'type': 'boolean'}, 'closed_on_holidays': {'type': ['null', 'boolean']}}, 'additionalProperties': False}, 'source': {'type': 'object', 'required': ['name', 'url'], 'properties': {'url': {'type': 'string'}, 'name': {'type': 'string'}}, 'additionalProperties': False}, 'retrieved_at': {'type': 'string'}, 'advertising_block_note': {'type': 'string'}}, 'additionalProperties': False}
reverse_phone_lookup
Reverse phone lookup
Looks up the public directory entry (or entries) associated with a Swiss phone number. Accepts national ("079 123 45 67"), E.164 ("+41791234567"), or compact notation. Returns an empty result list when the number has no findable public listing.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', 'required': ['phone_number'], 'properties': {'lang': {'enum': ['de', 'fr', 'it', 'en'], 'type': 'string', 'description': 'Response language: de, fr, it, or en. Defaults to de.'}, 'phone_number': {'type': 'string', 'maxLength': 40, 'minLength': 1, 'description': 'The phone number to look up, in any common Swiss notation (national, E.164, or compact).'}}, 'additionalProperties': False}
Schéma de sortie
{'type': 'object', 'required': ['results', 'source', 'retrieved_at'], 'properties': {'source': {'type': 'object', 'required': ['name', 'url'], 'properties': {'url': {'type': 'string'}, 'name': {'type': 'string'}}, 'additionalProperties': False}, 'results': {'type': ['null', 'array'], 'items': {'type': 'object', 'required': ['matched_e164', 'match_kind'], 'properties': {'name': {'type': 'string'}, 'address': {'type': ['null', 'object'], 'properties': {'canton': {'type': 'string'}, 'street': {'type': 'string'}, 'country': {'type': 'string'}, 'locality': {'type': 'string'}, 'post_code': {'type': 'string'}, 'street_number': {'type': 'string'}}, 'additionalProperties': False}, 'entry_id': {'type': 'string'}, 'locality': {'type': 'string'}, 'entry_type': {'type': 'string'}, 'match_kind': {'type': 'string'}, 'source_url': {'type': 'string'}, 'matched_e164': {'type': 'string'}}, 'additionalProperties': False}}, 'retrieved_at': {'type': 'string'}}, 'additionalProperties': False}
search_swiss_directory
Search the Swiss directory
Full-text search over the Swiss public phone/business directory (1820.ch). Matches ALL words in query, so a short keyword works best; put any place name in location, not query. For "business type X in place Y", browse_business_category with a category slug is an alternative. Use get_directory_entry for phone numbers and opening hours of a specific result.
Lecture seule Idempotent
Schéma d’entrée
{'type': 'object', 'required': ['query'], 'properties': {'lang': {'enum': ['de', 'fr', 'it', 'en'], 'type': 'string', 'description': 'Response language: de, fr, it, or en. Defaults to de.'}, 'limit': {'type': 'integer', 'default': 10, 'maximum': 20, 'minimum': 1, 'description': 'Maximum number of results, 1-20.'}, 'query': {'type': 'string', 'maxLength': 200, 'minLength': 1, 'description': 'One short keyword: a person\'s or company name, or ONE business type (e.g. "Müller", "Migros", "Coiffeur"). Every word must match, so no sentences or extra adjectives. Never put a place name here â\x80\x94 use location instead.'}, 'location': {'type': 'string', 'maxLength': 200, 'description': 'Locality, postcode, or canton (e.g. "Baden", "5400", "ZH") to narrow the search. Always put a place name here, never in query.'}, 'entry_type': {'enum': ['person', 'business', 'all'], 'type': 'string', 'default': 'all', 'description': 'Restrict results to person, business, or all entries.'}}, 'additionalProperties': False}
Schéma de sortie
{'type': 'object', 'required': ['results', 'source', 'retrieved_at', 'advertising_block_note'], 'properties': {'source': {'type': 'object', 'required': ['name', 'url'], 'properties': {'url': {'type': 'string'}, 'name': {'type': 'string'}}, 'additionalProperties': False}, 'results': {'type': ['null', 'array'], 'items': {'type': 'object', 'required': ['entry_id', 'entry_type', 'advertising_block'], 'properties': {'name': {'type': 'string'}, 'address': {'type': ['null', 'object'], 'properties': {'canton': {'type': 'string'}, 'street': {'type': 'string'}, 'country': {'type': 'string'}, 'locality': {'type': 'string'}, 'post_code': {'type': 'string'}, 'street_number': {'type': 'string'}}, 'additionalProperties': False}, 'category': {'type': 'string'}, 'entry_id': {'type': 'string'}, 'entry_type': {'type': 'string'}, 'source_url': {'type': 'string'}, 'advertising_block': {'type': 'boolean'}}, 'additionalProperties': False}}, 'retrieved_at': {'type': 'string'}, 'advertising_block_note': {'type': 'string'}}, 'additionalProperties': False}
Ajouté
search_swiss_directory
28 September 2026 02:40
Ajouté
reverse_phone_lookup
28 September 2026 02:40
Ajouté
get_directory_entry
28 September 2026 02:40
Ajouté
browse_business_category
28 September 2026 02:40