@ansvar/ch-farm-safety-mcp
v0.1.0
Published
Swiss farm workplace safety via MCP -- BUL/SPAA rules, Suva requirements, EKAS Branchenloesung, Agriss statistics, machinery safety, chemical exposure
Maintainers
Readme
Switzerland Farm Safety MCP
Machine-readable Swiss farm workplace safety data via the Model Context Protocol.
Covers BUL/SPAA safety rules (lebenswichtige Regeln), Suva occupational safety requirements, EKAS Branchenloesung Landwirtschaft, Agriss accident statistics, machinery safety (ROPS, MFK, PTO guards), chemical exposure (PSM, MAK values), young worker restrictions (Jugendarbeitsschutz), and accident reporting obligations.
Quick Start
npx (stdio — zero install)
npx -y @ansvar/ch-farm-safety-mcpDocker
docker run -p 3000:3000 ghcr.io/ansvar-systems/ch-farm-safety-mcp:latestStreamable HTTP (remote)
https://mcp.ansvar.eu/ch-farm-safety/mcpNo authentication required. Rate-limited to fair use.
Claude Desktop / Cursor
Add to your MCP client config:
{
"mcpServers": {
"ch-farm-safety": {
"command": "npx",
"args": ["-y", "@ansvar/ch-farm-safety-mcp"]
}
}
}Or use the remote endpoint:
{
"mcpServers": {
"ch-farm-safety": {
"url": "https://mcp.ansvar.eu/ch-farm-safety/mcp"
}
}
}Tools
10 tools covering Swiss farm workplace safety:
| Tool | Description |
|------|-------------|
| about | Server metadata: name, version, coverage, data sources |
| list_sources | All data sources with authority, URL, license, freshness |
| check_data_freshness | Last ingest date, staleness status, refresh command |
| search_safety_rules | FTS5 search across BUL/Suva/EKAS safety rules |
| get_risk_assessment_requirements | Risk assessment obligations per farm activity (EKAS/VUV) |
| get_machinery_safety | ROPS, Gurtpflicht, MFK, PTO guard requirements by machine type |
| get_chemical_safety | MAK exposure limits, PPE, storage rules by substance |
| get_young_worker_rules | Jugendarbeitsschutz restrictions by age group |
| get_accident_reporting | Reporting deadlines, forms, insurer by severity |
| search_bul_guidance | BUL/SPAA guidance documents, fact sheets, campaigns |
Full tool documentation: TOOLS.md
Data Sources
| Source | Authority | Coverage | |--------|-----------|----------| | BUL/SPAA | Beratungsstelle fuer Unfallverhuetung in der Landwirtschaft | Lebenswichtige Regeln, Merkblaetter, Safe@Work | | Suva | Schweizerische Unfallversicherungsanstalt | MAK values, PPE, accident reporting | | EKAS | Eidg. Koordinationskommission fuer Arbeitssicherheit | Branchenloesung Landwirtschaft, ASA concept | | Agriss | BUL / Agroscope | Farm accident statistics | | SECO | Staatssekretariat fuer Wirtschaft | Young worker protection (ArGV 5) |
Coverage details: COVERAGE.md
Development
npm install
npm run build
npm test
npm run lintIngestion
npm run ingest # incremental update
npm run ingest:full # force full re-ingestion
npm run ingest:fetch # fetch sources only (no DB write)
npm run ingest:diff # show changes without applyingFreshness
npm run freshness:checkData staleness threshold: 90 days. The check-freshness.yml workflow runs weekly and opens an issue if data is stale.
Legal
This server provides Swiss farm safety data for informational purposes only. It does not constitute professional safety advice. Always consult BUL/SPAA, Suva, or a qualified safety professional (Sicherheitsfachperson) before implementing safety measures.
See DISCLAIMER.md for the full bilingual disclaimer.
License
Apache-2.0 -- see LICENSE.
Data sourced from BUL/SPAA, Suva, EKAS, Agriss, and SECO under Swiss public-sector information principles.
