Skip to main content
Glama
remoprinz

Swiss Health MCP Server

by remoprinz

Swiss Health MCP Server

npm version License: MIT

An MCP server that gives AI assistants structured access to 1.6 million Swiss health insurance premium records -- 55 insurers, 26 cantons, 11 years of official government data.

Built on the Model Context Protocol. Data sourced from BAG Priminfo (Swiss Federal Office of Public Health, 2016--2026). This is the MCP companion to the KrankenkassenGPT REST API.

Quick Start

Add this to your Claude Desktop config (claude_desktop_config.json) or Cursor settings (.cursor/mcp.json):

{
  "mcpServers": {
    "swiss-health": {
      "command": "npx",
      "args": ["-y", "@prinz_esox/swiss-health-mcp"],
      "env": {
        "SUPABASE_URL": "https://your-project.supabase.co",
        "SUPABASE_SERVICE_ROLE_KEY": "your-service-role-key"
      }
    }
  }
}

Or install globally:

npm install -g @prinz_esox/swiss-health-mcp

The server is also available on the Smithery registry and the MCP Registry.

Related MCP server: swiss-statistics-mcp

Tools

get_cheapest_insurers

Find the top 5 cheapest health insurers for a given profile.

Parameter

Type

Required

Description

canton

string

yes

Canton code (e.g. ZH, BE, GE)

year

number

yes

Year (2016--2026)

age_band

string

yes

child (0--18), young_adult (19--25), adult (26+)

franchise_chf

number

yes

Deductible: 0, 100, 200, 300, 400, 500, 600, 1000, 1500, 2000, 2500

model_type

string

no

standard (default), hmo, telmed, family_doctor, diverse

accident_covered

boolean

no

Include accident coverage (default: true)

compare_insurers

Side-by-side comparison of specific insurers for the same profile.

Parameter

Type

Required

Description

insurer_names

string[]

yes

Insurer names (e.g. ["CSS", "Helsana", "Swica"])

canton

string

yes

Canton code

year

number

yes

Year (2016--2026)

age_band

string

yes

Age group

franchise_chf

number

yes

Deductible in CHF

get_price_history

10-year price development for a single insurer with year-over-year percentage change.

Parameter

Type

Required

Description

insurer_name

string

yes

Insurer name (e.g. CSS, Helsana)

canton

string

yes

Canton code

age_band

string

yes

Age group

franchise_chf

number

yes

Deductible in CHF

start_year

number

no

Start year (default: 2016)

end_year

number

no

End year (default: 2026)

get_database_stats

Returns coverage statistics and metadata. No parameters.

Data

Dimension

Coverage

Records

1,611,386+

Insurers

55 (CSS, Helsana, Swica, Assura, KPT, Groupe Mutuel, Sanitas, ...)

Cantons

26 (all Swiss cantons)

Years

11 (2016--2026)

Franchise levels

11 (CHF 0--2,500)

Insurance models

5 (standard, HMO, telmed, family doctor, diverse)

Age bands

3 (child, young adult, adult)

All data comes from BAG Priminfo, the official database of the Swiss Federal Office of Public Health.

Features

  • Intelligent insurer name resolution -- fuzzy matching across 55+ insurers and their sub-brands. Ask for "Helsana" and the server resolves all associated insurer IDs automatically.

  • Automatic disclaimer -- every response includes BAG Priminfo attribution and a notice that premiums are informational only.

  • Read-only access -- no write operations, no personal data.

  • Percentage change calculations -- price history includes year-over-year trends.

Example Prompts

"What are the cheapest health insurers in Zurich for 2026?"

"Compare CSS, Helsana and Swica in Bern for an adult with CHF 300 deductible"

"How did Assura premiums develop from 2016 to 2026?"

"Which insurer had the smallest price increase over the last 10 years in Basel?"

Environment Variables

Variable

Required

Description

SUPABASE_URL

yes

Supabase project URL

SUPABASE_SERVICE_ROLE_KEY

yes

Supabase service role key for database access

Tech Stack

  • Protocol: MCP SDK v1.0.0 (stdio transport)

  • Language: TypeScript

  • Database: Supabase (PostgreSQL)

  • Runtime: Node.js 18+

  • Package: @prinz_esox/swiss-health-mcp

  • Registry ID: io.github.remoprinz/swiss-health-mcp

Development

git clone https://github.com/remoprinz/swiss-health-mcp.git
cd swiss-health-mcp
npm install
npm run dev     # Start with tsx
npm run build   # Compile TypeScript

Project Structure

src/index.ts       # Complete server implementation (~530 lines)
server.json        # MCP registry manifest
smithery.yaml      # Smithery registry config
llms.txt           # LLM-readable project description
CITATION.cff       # Citation metadata

License

MIT -- Remo Prinz

Available Tools

4 tools
compare_insurersC

Vergleicht mehrere Versicherer für ein bestimmtes Profil.

ParametersJSON Schema
NameRequiredDescriptionDefault
insurer_namesYesListe von Versicherer-Namen (z.B. ['CSS', 'Helsana', 'Swica'])
cantonYesKanton (2-Buchstaben-Code)
yearYesJahr (2016-2026)
age_bandYesAltersgruppe
franchise_chfYesFranchise in CHF

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool compares insurers but doesn't explain what the comparison entails (e.g., returns a list, a table, or a summary), whether it's read-only or has side effects, or any performance considerations like rate limits. For a tool with 5 parameters and no annotations, this is a significant gap in transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence in German that directly states the tool's purpose without unnecessary words. It's appropriately sized and front-loaded, making it easy to parse quickly. Every word earns its place by conveying essential information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (5 required parameters, no output schema, and no annotations), the description is incomplete. It doesn't explain the output format, error conditions, or how the comparison is performed. For a tool that likely returns detailed comparative data, more context is needed to guide effective use by an AI agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all parameters thoroughly. The description adds no additional meaning beyond what's in the schema (e.g., it doesn't clarify how parameters interact or affect the comparison). With high schema coverage, the baseline is 3, as the description doesn't compensate but also doesn't detract.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Vergleicht mehrere Versicherer für ein bestimmtes Profil' clearly states the action (compare) and resource (insurers) with a specific scope (for a given profile). It distinguishes from sibling tools like 'get_cheapest_insurers' (which likely returns cheapest options rather than comparisons) and 'get_price_history' (which focuses on historical data). However, it doesn't explicitly mention what aspects are compared (e.g., prices, coverage), keeping it from a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'get_cheapest_insurers' or 'get_price_history'. It doesn't specify prerequisites, exclusions, or contextual cues for selection. The only implied usage is comparing insurers for a profile, but this is too vague for effective tool selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_cheapest_insurersC

Findet die günstigsten Krankenkassen für ein bestimmtes Profil. Gibt die Top 5 zurück.

ParametersJSON Schema
NameRequiredDescriptionDefault
cantonYesKanton (2-Buchstaben-Code, z.B. 'ZH', 'BE', 'GE')
yearYesJahr (2016-2026)
age_bandYesAltersgruppe: child (0-18), young_adult (19-25), adult (26+)
franchise_chfYesFranchise in CHF
model_typeNoVersicherungsmodell (optional, default: standard)
accident_coveredNoUnfalldeckung inkludiert (optional, default: true)

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the tool returns the 'Top 5' results, which adds some context about output behavior. However, it lacks critical details such as whether this is a read-only operation, potential rate limits, authentication requirements, error handling, or data freshness—important for a tool that queries insurance data.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and front-loaded with two clear sentences in German. It efficiently states the tool's purpose and output behavior without unnecessary words, though it could be slightly more structured by explicitly mentioning key parameters.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (6 parameters, no output schema, no annotations), the description is minimally adequate. It covers the basic purpose and output format ('Top 5'), but lacks details on behavioral traits, usage context, and error handling. With no annotations or output schema, more completeness would be beneficial for an AI agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, providing clear details for all 6 parameters (e.g., canton codes, age bands, franchise values). The description adds no additional parameter semantics beyond what the schema already documents, so it meets the baseline score of 3 for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Findet die günstigsten Krankenkassen für ein bestimmtes Profil. Gibt die Top 5 zurück.' (Finds the cheapest health insurers for a specific profile. Returns the top 5.) It specifies the verb ('findet'), resource ('Krankenkassen'), and scope ('Top 5'), but doesn't explicitly differentiate from sibling tools like 'compare_insurers' or 'get_price_history'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'compare_insurers' or 'get_price_history'. It states what the tool does but offers no context about appropriate scenarios, prerequisites, or exclusions for its use.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_database_statsB

Zeigt Statistiken zur Datenbank (Anzahl Einträge, verfügbare Jahre, Versicherer).

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool shows statistics, implying a read-only operation, but doesn't clarify whether it requires authentication, has rate limits, returns real-time or cached data, or what format the output takes. For a tool with zero annotation coverage, this leaves significant behavioral gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence in German that directly states the tool's purpose and lists the statistics it provides. It's appropriately sized and front-loaded with the core functionality, with no wasted words or unnecessary elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (simple read operation with no parameters), no annotations, and no output schema, the description is minimally adequate. It specifies what statistics are returned, which helps compensate for the lack of output schema, but doesn't address behavioral aspects like authentication or data freshness. For a no-parameter tool, it's complete enough to understand the basic purpose.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has 0 parameters, and schema description coverage is 100% (since there are no parameters to describe). With no parameters, the description doesn't need to add parameter semantics beyond what the schema provides. The baseline for 0 parameters is 4, as there's nothing to compensate for.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Zeigt Statistiken zur Datenbank' (shows database statistics) and specifies what statistics are included: 'Anzahl Einträge, verfügbare Jahre, Versicherer' (number of entries, available years, insurers). This is a specific verb+resource combination, though it doesn't explicitly differentiate from sibling tools like get_price_history which might also provide statistical data.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like compare_insurers or get_cheapest_insurers, nor does it specify contexts where database statistics are needed versus other data retrieval operations. Usage is implied but not explicitly stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_price_historyC

Zeigt die Preisentwicklung eines Versicherers über mehrere Jahre.

ParametersJSON Schema
NameRequiredDescriptionDefault
insurer_nameYesName des Versicherers (z.B. 'CSS', 'Helsana')
cantonYesKanton (2-Buchstaben-Code)
age_bandYesAltersgruppe
franchise_chfYesFranchise in CHF
start_yearNoStartjahr (optional, default: 2016)
end_yearNoEndjahr (optional, default: 2026)

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It states this is a read operation ('zeigt' - shows) which implies non-destructive behavior, but doesn't address other important aspects like authentication requirements, rate limits, error conditions, response format, or whether it returns historical data points or aggregated trends. For a tool with 6 parameters and no output schema, this is insufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence in German that directly states the tool's purpose without unnecessary words. It's appropriately sized for a straightforward data retrieval tool and front-loads the core functionality.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 6 parameters, no annotations, and no output schema, the description is incomplete. While concise, it doesn't compensate for the lack of structured metadata by explaining what the tool returns (historical price points? percentage changes? annual premiums?), how results are formatted, or important behavioral constraints. The agent would need to guess about the output structure and operational characteristics.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description doesn't add any parameter-specific information beyond what's already in the schema (which has 100% coverage). It mentions 'Versicherers' (insurer) which aligns with the 'insurer_name' parameter and 'mehrere Jahre' (several years) which relates to the temporal parameters, but provides no additional context about parameter relationships, constraints, or usage patterns. With complete schema coverage, the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Zeigt die Preisentwicklung eines Versicherers über mehrere Jahre' (Shows the price development of an insurer over several years). It specifies the verb 'zeigt' (shows) and resource 'Preisentwicklung' (price development) with temporal scope 'über mehrere Jahre' (over several years). However, it doesn't explicitly differentiate from sibling tools like 'compare_insurers' or 'get_cheapest_insurers' which might also involve price data.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like 'compare_insurers' (for comparing multiple insurers) or 'get_cheapest_insurers' (for finding cheapest options), nor does it specify prerequisites or exclusions. Usage context is implied but not explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 4 tool updatesv1.0.0
    • First observedcompare_insurers
    • First observedget_cheapest_insurers
    • First observedget_database_stats
    • First observedget_price_history

TDQS

B3.2/5.0

Scored across 4 tools

Disambiguation4/5

The tools have mostly distinct purposes: compare_insurers compares multiple insurers, get_cheapest_insurers finds the cheapest ones, get_database_stats shows database statistics, and get_price_history shows price trends. However, compare_insurers and get_cheapest_insurers could potentially overlap in function if comparing insurers includes price considerations, but their descriptions clarify distinct focuses (comparison vs. cheapest selection).

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern in snake_case: compare_insurers, get_cheapest_insurers, get_database_stats, and get_price_history. This uniformity makes the set predictable and easy to understand, with no deviations in naming conventions.

Tool Count3/5

With 4 tools, the count is borderline for a health insurance domain. It feels slightly thin as it covers comparison, cheapest selection, stats, and price history, but lacks tools for detailed insurer information, plan specifics, or user profile management, which might be expected in a comprehensive health insurance server.

Completeness3/5

The tool set covers key aspects like comparison, cost analysis, stats, and history, but has notable gaps. For a health insurance domain, missing operations include creating or updating profiles, retrieving detailed insurer data, or managing user preferences, which could limit agent effectiveness in broader workflows.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    A
    maintenance
    Provides AI-native access to Swiss Federal Statistical Office datasets through 9 tools for querying education, population, and cross-cantonal comparisons without authentication.
    15
    2
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Enables AI models to query Swiss National Bank data including exchange rates, balance sheet, interest rates, SARON, monetary aggregates, banking statistics, and balance of payments via the SNB public API.
    11
    MIT