Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words Sign in

Swiss Food Safety MCP

by malkreideversion 1.2.0i★ 0iRuns on your computerRepository ↗
Registry nameio.github.malkreide/swiss-food-safety-mcp

How to install

What it does

BLV open data for food safety and veterinary inspections

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Games, sports, food & learning

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity0/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score12/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install Swiss Food Safety MCP. Follow https://mcp.popnx.com/i/malkreide-swiss-food-safety-mcp.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 13, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Swiss Food Safety MCP for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "swiss-food-safety": { "command": "uvx", "args": [ "swiss-food-safety-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Swiss Food Safety MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "swiss-food-safety": {
          "command": "uvx",
          "args": [
            "swiss-food-safety-mcp"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use Swiss Food Safety MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Swiss Food Safety MCP or shows a Swiss Food Safety MCP tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Swiss Food Safety MCP yet

Swiss Food Safety MCP runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Swiss Food Safety MCP

  • Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Python (uv) on your computer first (one time)
  • Install Python (uv) on your computer first (one time)
  • Install Python (uv) on your computer first (one time)

B · Others in Games, sports, food & learning that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Swiss Food Safety MCP for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user swiss-food-safety -- uvx swiss-food-safety-mcp 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Swiss Food Safety MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user swiss-food-safety -- uvx swiss-food-safety-mcp
  4. Type /mcp in Claude Code

    You should see Swiss Food Safety MCP listed as connected

  5. Try it

    Use Swiss Food Safety MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Swiss Food Safety MCP or shows a Swiss Food Safety MCP tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Swiss Food Safety MCP for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "swiss-food-safety": { "command": "uvx", "args": [ "swiss-food-safety-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Swiss Food Safety MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use Swiss Food Safety MCP and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Swiss Food Safety MCP or shows a Swiss Food Safety MCP tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Swiss Food Safety MCP for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "swiss-food-safety": { "type": "stdio", "command": "uvx", "args": [ "swiss-food-safety-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Swiss Food Safety MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use Swiss Food Safety MCP and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Swiss Food Safety MCP or shows a Swiss Food Safety MCP tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Swiss Food Safety MCP💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user swiss-food-safety -- uvx swiss-food-safety-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "swiss-food-safety": {
      "command": "uvx",
      "args": [
        "swiss-food-safety-mcp"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "swiss-food-safety": {
      "command": "uvx",
      "args": [
        "swiss-food-safety-mcp"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "swiss-food-safety": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "swiss-food-safety-mcp"
      ]
    }
  }
}

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
24/wk
Connection
Runs on your computer
Latest versioni
1.2.0
Published to registryi
Sep 27, 2026
Code last changedi
Nov 2, 2026
Maker
malkreide
Packages
pypi: swiss-food-safety-mcp
Website
github.com
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 20, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account malkreide, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 18 days ago

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for swiss-food-safety-mcp@1.2.0

Checks only this package version, not every dependency · checked Nov 15, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/malkreide-swiss-food-safety-mcp.svg)](https://mcp.popnx.com/en/servers/malkreide-swiss-food-safety-mcp)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Games, sports, food & learningi

  • More stars than 0% of the other 1676 servers in this category
  • Published to the registry more recently than 29% of the other 1676 servers in this category
  • Basic checks equal to or better than 99% of the other 1676 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Swiss Food Safety MCP safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 18 days ago, and the latest version (1.2.0) reached the registry 2 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.

What can I use instead?

In the same category: LearnHouse, Anime Garden, WilmAI, Lumify Sports Intelligence, Savecraft

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

LearnHouse

Build, edit and run courses, learning paths and communities in your LearnHouse academy.

by learnhouseWidely used★ 2.5KUpdated yesterday

Runs in the cloud✓ service owner · learnhouse.app

WilmAI

Finland's Wilma school system for parents and students: schedule, homework, exams and messages.

by aikarjalGrowing↓ 1.4K/wk★ 89 Stars for the whole repoUpdated 11 days ago

Runs on your computer✓ service owner · wilm.ai

Savecraft

Savecraft serves real save game data and expert game knowledge to AI assistants.

by joshsymondsEarly★ 13Updated 7 months ago

Runs in the cloudRepo archived✓ service owner · savecraft.gg
Compared with similar ones
This one
Swiss Food Safety MCP
LearnHouseAnime GardenWilmAILumify Sports IntelligenceSavecraft
Runs whereInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyNoNoNoNoYesNo
Add with + in ClaudeNoNoNoNoNoNo
Basic checks3/35/54/43/34/43/4
LicenseMITAGPL-3.0AGPL-3.0MITMITApache-2.0
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

🇨🇭 Part of the [Swiss Public Data MCP Portfolio](https://github.com/malkreide)

swiss-food-safety-mcp

🌐 English | [Deutsch](README.de.md)

MCP server connecting AI models to Swiss Federal Food Safety and Veterinary Office (BLV) open data — food recalls, animal disease surveillance, food control results, antibiotic usage, children's nutrition surveys and the pesticide register. No authentication required.


Overview

swiss-food-safety-mcp gives AI assistants like Claude direct access to official Swiss food safety and veterinary data from the Federal Food Safety and Veterinary Office (BLV / *Bundesamt für Lebensmittelsicherheit und Veterinärwesen*). It provides 11 tools covering food recalls, animal disease surveillance, food control results, antibiotic usage in veterinary medicine, nutrition surveys for children, and the pesticide register.

All data comes from official Swiss federal sources (opendata.swiss, lindas.admin.ch, news.admin.ch). No API keys or authentication are required.

This server follows the No-Auth-First philosophy and is part of a Swiss public sector MCP portfolio.

Anchor demo query: *"Are there any current BLV food warnings relevant to Zurich school canteens — and which notifiable animal diseases are currently reported in the canton?"*

Demo

→ More use cases by audience →


Features

  • 🚨 Public warnings & recalls — Live RSS feed of BLV product recalls and health warnings
  • 🐄 Animal disease surveillance — Notifiable animal diseases since 1991 (InfoSM) via the LINDAS SPARQL cube
  • 🐦 Avian influenza monitoring — Wild bird surveillance data with geodata
  • 🥩 Food control results — Cantonal food inspection results and violation rates
  • 💊 Antibiotic usage veterinary — ISABV data on antibiotic use in animal medicine
  • 🧒 Children's nutrition survey — menuCH-Kids questionnaire tallies (answer counts, not nutrient intake)
  • 🌿 Pesticide register — Swiss approved pesticide products and active ingredients
  • 📊 Dataset discovery — Browse all 28 BLV datasets on opendata.swiss via CKAN API
  • 🔗 Dual transport — stdio (Claude Desktop) + Streamable HTTP (cloud/Render.com)
  • 🗣️ Bilingual — English-first documentation, German secondary

Prerequisites

  • Python 3.11+
  • uv or uvx (recommended) — install uv

Installation

Using uvx (recommended — no install needed)
uvx swiss-food-safety-mcp
Using uv
uv tool install swiss-food-safety-mcp

swiss-food-safety-mcp

From source
git clone https://github.com/malkreide/swiss-food-safety-mcp

cd swiss-food-safety-mcp uv sync uv run swiss-food-safety-mcp


Quickstart

Add to claude_desktop_config.json:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{

"mcpServers": { "swiss-food-safety": { "command": "uvx", "args": ["swiss-food-safety-mcp"] } } }

Try it immediately in Claude Desktop:

*"Which BLV food warnings are currently active?"*

*"Are there any notifiable animal diseases reported in Zurich canton this year?"*

Other MCP Clients (Cursor, Windsurf, VS Code + Continue)
{

"mcpServers": { "swiss-food-safety": { "command": "uvx", "args": ["swiss-food-safety-mcp"] } } }

Cloud Deployment (Streamable HTTP)

For use via claude.ai in the browser (e.g. on managed workstations without local software):

# Loopback only (default) — safe for local testing:

swiss-food-safety-mcp --http

Server runs on 127.0.0.1:8002

External exposure (e.g. behind the Render TLS proxy):

swiss-food-safety-mcp --http --host 0.0.0.0

⚠️ The HTTP transport binds to 127.0.0.1 by default. Pass --host 0.0.0.0

only when external exposure is intended. Set BLV_MCP_ALLOWED_ORIGINS

(comma-separated, no wildcard) to permit browser clients; it defaults to

https://claude.ai.

Render.com (recommended):

  1. Push/fork the repository to GitHub
  2. On render.com: New Web Service → connect GitHub repo
  3. Set the start command to: swiss-food-safety-mcp --http --host 0.0.0.0
  4. In claude.ai under Settings → MCP Servers, add: https://your-app.onrender.com/mcp

Docker:

docker build -t swiss-food-safety-mcp .

docker run -p 8002:8002 swiss-food-safety-mcp

or, with explicit CPU/memory limits:

docker compose up

The image is a non-root, multi-stage build; the container already binds 0.0.0.0 and includes a healthcheck. docker-compose.yml additionally caps CPU and memory.

💡 *"stdio for the developer laptop, Streamable HTTP for the browser."*

🔧 Configuration — every runtime setting is overridable via BLV_MCP_*

environment variables (BLV_MCP_HTTP_HOST, BLV_MCP_HTTP_PORT,

BLV_MCP_ALLOWED_ORIGINS, BLV_MCP_TIMEOUT, BLV_MCP_OTEL_ENDPOINT, …).

Outbound requests are restricted to Swiss federal hosts (*.admin.ch,

opendata.swiss). Optional OpenTelemetry tracing: install with

pip install swiss-food-safety-mcp[otel] and set BLV_MCP_OTEL_ENDPOINT.


Available Tools

ToolDescriptionData Source
blv_get_public_warningsCurrent food recalls & health warningsnews.admin.ch RSS
blv_list_datasetsBrowse all 28 BLV open datasetsopendata.swiss CKAN
blv_get_dataset_infoDataset details & resource URLsopendata.swiss CKAN
blv_search_animal_diseasesNotifiable animal diseases since 1991LINDAS SPARQL (/query)
blv_get_animal_health_statsAnnual animal health statisticsopendata.swiss CSV/JSON
blv_get_food_control_resultsCantonal food inspection resultsopendata.swiss CSV
blv_get_antibiotic_usage_vetVeterinary antibiotic usage (ISABV)opendata.swiss CSV
blv_get_avian_influenzaWild bird avian influenza surveillanceopendata.swiss CSV
blv_get_nutrition_data_childrenmenuCH-Kids: questionnaire tallies (not nutrient intake)opendata.swiss CSV
blv_search_pesticide_productsSwiss approved pesticide registeropendata.swiss XML
blv_get_meat_inspection_statsSlaughterhouse inspection statisticsopendata.swiss CSV/JSON
Example Queries
QueryTool
*"Which BLV food warnings are currently active?"*blv_get_public_warnings
*"Are there animal diseases in Zurich canton in 2024?"*blv_search_animal_diseases
*"What is the avian influenza situation in Switzerland 2024?"*blv_get_avian_influenza
*"What do Swiss children actually eat?"*blv_get_nutrition_data_children
*"Which copper-based pesticides are approved in Switzerland?"*blv_search_pesticide_products

Architecture

┌─────────────────┐     ┌─────────────────────────────┐     ┌──────────────────────────────┐

│ Claude / AI │────▶│ Swiss Food Safety MCP │────▶│ Swiss Federal Open Data │ │ (MCP Host) │◀────│ (MCP Server) │◀────│ │ └─────────────────┘ │ │ │ opendata.swiss (CKAN/CSV) │ │ 11 Tools · No Auth │ │ lindas.admin.ch (SPARQL) │ │ Stdio | Streamable HTTP │ │ news.admin.ch (RSS/XML) │ └─────────────────────────────┘ └──────────────────────────────┘


Synergies with Related MCP Servers

CombinationUse Case
swiss-food-safety-mcp + zurich-opendata-mcpGeo-mapped animal disease risk near school locations
swiss-food-safety-mcp + fedlex-mcpLink recalls to food law (Lebensmittelgesetz)
swiss-food-safety-mcp + swiss-statistics-mcpNutrition data × socioeconomics by school district
swiss-food-safety-mcp + global-education-mcpSwiss children's nutrition vs. OECD benchmarks

Project Structure

swiss-food-safety-mcp/

├── src/ │ └── swiss_food_safety_mcp/ │ ├── init.py # Package metadata │ └── server.py # All tools, resources, prompts ├── tests/ │ ├── init.py │ └── test_server.py # Unit tests (no live API calls) ├── .github/ │ └── workflows/ │ └── ci.yml # Python 3.11–3.13 matrix ├── pyproject.toml # hatchling build, uv-compatible ├── CHANGELOG.md ├── CONTRIBUTING.md # Contribution guide (English) ├── CONTRIBUTING.de.md # Contribution guide (German) ├── SECURITY.md # Security policy (English) ├── SECURITY.de.md # Security policy (German) ├── LICENSE # MIT ├── README.md # This file (English) └── README.de.md # German version


Data Sources

SourceDescriptionFormat
opendata.swiss/BLV28 open datasetsCSV, JSON, Parquet, SPARQL, XML
lindas.admin.ch/sparqlSwiss linked data SPARQL endpointRDF/SPARQL
news.admin.ch RSSBLV public warnings & recallsRSS/XML
blv.admin.chBLV website (DE/FR/IT/EN)HTML

All data is open government data (OGD) under Creative Commons with attribution requirement.


Known Limitations

  • RSS feed: Limited to the most recent BLV publications; no historical archive
  • Pesticide register: XML parsing may be slow for queries returning large result sets
  • CKAN datasets: Opendata.swiss rate limits apply under heavy usage
  • Animal disease data: Canton-level filtering depends on data completeness in the source
  • Datasets are pinned, not searched: each data tool names its dataset slug and the resource that carries the data (see DATENQUELLEN in server.py). A keyword search takes the *first* hit and therefore falls back silently onto something plausible — that is how blv_get_animal_health_stats came to return antibiotics data, and how blv_get_food_control_results came to return a code list out of a dataset whose 26 resources include 18 of them. scripts/record_fixtures.py re-measures the pinned pairs on every run; a renamed dataset now fails loudly.
  • Children's nutrition is questionnaire tallies, not nutrient intake: the only menuCH-Kids dataset published on opendata.swiss carries answer counts (Geschlecht, Sprachregion, Altersgruppe, Frage, Antwort, Anzahl). The docstring previously promised nutrient intake against dietary recommendations and offered "Energie", "Zucker", "Eisen" as filter examples — those matched nothing and returned an empty list. Adult food-consumption data exists as a separate dataset that this server does not cover.
  • The SPARQL-to-CSV fallback is gone. It could never work: the one CSV resource of the fallback dataset is a ZIP file declared as format: CSV. With the end

Only the beginning is shown; read the rest in the repo