register-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | Port to listen on for SSE mode (only used when MCP_TRANSPORT=sse). | 8000 |
| LOG_LEVEL | No | Logging verbosity level (e.g., DEBUG, INFO, WARNING). | INFO |
| MCP_API_KEY | No | Bearer token for SSE mode. Required when MCP_TRANSPORT is set to 'sse'. | |
| MCP_TRANSPORT | No | Transport mode. Set to 'sse' for cloud deployment. Default is 'stdio'. | stdio |
| MCP_RATE_LIMIT | No | Maximum number of requests per rate limit window. | 60 |
| LEGAL_FORMS_TTL | No | TTL in seconds for caching legal forms from Zefix. | 86400 |
| MCP_RATE_WINDOW | No | Rate limit window in seconds. | 60 |
| MCP_ALLOWED_HOSTS | No | Comma-separated list of allowed outbound HTTP hosts. | www.zefix.admin.ch |
| OTEL_EXPORTER_OTLP_ENDPOINT | No | OpenTelemetry OTLP endpoint URL (e.g., http://otel-collector:4318/v1/traces). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| zefix_search_companiesA | Sucht Unternehmen im Schweizer Handelsregister (Zefix) nach Name, Kanton und Rechtsform. Gibt eine Liste von Firmen zurück mit Name, UID, Status, Rechtsform, Sitz und SHAB-Datum. Ideal für Lieferantenprüfungen, Vertragspartner-Screenings und Beschaffungs-Due-Diligence. Args: params (CompanySearchInput): Suchparameter: - name (Optional[str]): Firmenname (mind. 2 Zeichen) - canton (Optional[str]): Kanton (z.B. 'ZH') - legal_form_ids (Optional[list[int]]): Rechtsform-IDs - active_only (bool): Nur aktive Einträge (Standard: True) - search_type (str): CONTAINS, STARTS_WITH, EXACT, ENDS_WITH - max_results (int): 1–50 (Standard: 10) - offset (int): Paginierung (Standard: 0) - language (str): 'de', 'fr', 'it', 'en' - response_format (str): 'markdown' oder 'json' Returns: str: Gefundene Firmen mit Name, UID, Status, Rechtsform, Sitz, SHAB-Datum, Auszug-URL. Enthält Paginierungsinfo (hasMoreResults, offset, total). |
| zefix_get_companyA | Ruft vollständige Firmendetails aus dem Handelsregister ab (nach interner EHRAID). Liefert: Name, UID, Rechtsform, Sitz, Status, Zweck (Gesellschaftszweck), SHAB-Publikationshistorie (letzte 5 Einträge) und Link zum kantonalen Auszug. Die EHRAID wird aus zefix_search_companies oder zefix_get_company_by_uid zurückgegeben. Args: params (CompanyByEhraIdInput): - ehraid (int): Interne Zefix-Firmen-ID - response_format (str): 'markdown' oder 'json' Returns: str: Vollständiges Firmenprofil inkl. Zweck und SHAB-Publikationen. |
| zefix_get_company_by_uidA | Findet eine Firma im Handelsregister anhand ihrer UID (Unternehmensidentifikationsnummer). Die UID ist die eindeutige Schweizer Unternehmens-ID (CHE-xxx.xxx.xxx), identisch mit der MwSt-Nummer. Gibt vollständige Firmendetails zurück. Args: params (CompanyByUidInput): - uid (str): UID im Format CHE-xxx.xxx.xxx oder CHExxxxxxxxxxx - response_format (str): 'markdown' oder 'json' Returns: str: Vollständiges Firmenprofil (Name, Rechtsform, Status, Zweck, SHAB-Publikationen). Enthält EHRAID für Folgeabfragen mit zefix_get_company. |
| zefix_verify_companyA | Schnell-Verifikation: Ist ein Unternehmen im Handelsregister eingetragen und aktiv? Gibt eine klare Ja/Nein-Antwort plus Basisdetails zurück. Ideal als erster Check vor Vertragsabschlüssen, Beschaffungen oder Subventionsvergaben. Stellt fest:
Args: params (VerifyCompanyInput): - name (str): Firmenname (mind. 3 Zeichen) - canton (Optional[str]): Kantonskürzel zur Eingrenzung Returns: str: Verifizierungsergebnis mit Status, Rechtsform, Sitz und Warnungen. |
| zefix_list_legal_formsA | Listet alle im Schweizer Handelsregister verwendeten Rechtsformen auf. Nützlich zur Ermittlung der legalFormId-Werte für die Filterung in zefix_search_companies. Häufige IDs: 1=Einzelunternehmen, 2=KlG, 3=AG, 4=GmbH, 5=KmG, 6=Genossenschaft, 7=Stiftung, 8=öffentlich-rechtliche Körperschaft, 9=Verein. Args: params (LegalFormsInput): - language (str): Sprache ('de', 'fr', 'it', 'en'). Standard: 'de' - response_format (str): 'markdown' oder 'json' Returns: str: Alle Rechtsformen mit ID, Name (in gewählter Sprache) und Kurzform. |
| zefix_list_municipalitiesA | Listet Schweizer Gemeinden auf und löst die
Deshalb macht Args:
params (MunicipalitiesInput):
- legal_seat_id (Optional[int]): Returns: str: Gemeindeliste mit Name, Kanton, BFS-ID und Handelsregisterkreis-ID. |
| gazette_company_publicationsA | Alle Amtsblatt-Publikationen (SHAB + kantonal) zu einer Firmen-UID. Das Kernfeature: der Join zwischen Handelsregister und Amtsblatt über die UID. Zefix sagt, ob eine Firma existiert — das Amtsblatt sagt, was über sie publiziert wurde (HR-Mutationen, Schuldenrufe, Konkurse, Schuldbetreibungen …). Der Einstieg ist ausschliesslich die Firmen-UID (juristische Person); ein Personen-Sucheinstieg existiert bewusst nicht (siehe README «Data Protection & Scope»). Args: params (GazettePublicationsInput): - uid (str): UID CHE-XXX.XXX.XXX (Pflicht, Regex-validiert) - rubric / sub_rubric (Optional[str]): Rubrik-/Subrubrik-Filter - date_start / date_end (Optional[str]): Zeitraum YYYY-MM-DD - limit (int): 1–100 (Standard 50) - response_format (str): 'markdown' oder 'json' Returns: str: Publikationen (neueste zuerst) mit Datum, Rubrik, Titel, ID. |
| gazette_get_publicationA | Einzelne Publikation inkl. amtlichem Volltext (aus dem XML, defensiv geparst). Quirk 3: Die Listen-API liefert nur meta — der eigentliche Inhalt steht nur im rubrikspezifischen XML unter /publications/{id}/xml. Pflichtfelder: meta, publicationText. Bei HR-Rubriken zusätzlich company. Alles Übrige landet best-effort in additional_fields. Args: params (GazettePublicationInput): - id (str): Publikations-ID - response_format (str): 'markdown' oder 'json' Returns: str: Volltext + Firmenangaben (falls HR) + Zusatzfelder. |
| gazette_source_statusA | Status beider Datenquellen (Zefix + Amtsblattportal) und Cache-Alter. Prüft die Erreichbarkeit beider Upstreams und meldet das Alter der In-Memory-Caches (Rubriken, Rechtsformen). Args: params (GazetteStatusInput): - response_format (str): 'markdown' oder 'json' Returns: str: Erreichbarkeit, Latenz und Cache-Alter je Quelle. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
Each tool addresses a distinct task: company search, company detail by internal ID, company detail by UID, verification, legal form/municipality lookups, gazette publications, publication full text, and source status. The two get_company variants are clearly differentiated by their lookup key, and the descriptions explain exactly when to use each.
The zefix_ tools consistently follow a verb_noun pattern, which is clear and predictable. The gazette_ tools are less uniform: gazette_get_publication uses a verb, while gazette_company_publications and gazette_source_status are noun-style names, but the shared namespace prefix keeps them recognizable.
With 9 tools, the server is well-scoped for its purpose: covering Swiss register lookups and gazette publications without unnecessary redundancy. Each tool earns its place in the workflow, from company discovery through verification to publication detail retrieval.
The set covers the full read-only lifecycle of a Swiss company lookup: search, verify, get by ID or UID, resolve legal forms and municipalities, then retrieve gazette publications and individual full texts. The intentional lack of a person-search entry point is documented and does not represent a gap for the stated corporate-register scope.