Switzerland Farm Safety MCP
README.md
# Switzerland Farm Safety MCP
Machine-readable Swiss farm workplace safety data via the [Model Context Protocol](https://modelcontextprotocol.io).
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)
```bash
npx -y @ansvar/ch-farm-safety-mcp
```
### Docker
```bash
docker run -p 3000:3000 ghcr.io/ansvar-systems/ch-farm-safety-mcp:latest
```
### Streamable HTTP (remote)
```
https://mcp.ansvar.eu/ch-farm-safety/mcp
```
No authentication required. Rate-limited to fair use.
### Claude Desktop / Cursor
Add to your MCP client config:
```json
{
"mcpServers": {
"ch-farm-safety": {
"command": "npx",
"args": ["-y", "@ansvar/ch-farm-safety-mcp"]
}
}
}
```
Or use the remote endpoint:
```json
{
"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](TOOLS.md)
## Data Sources
| Source | Authority | Coverage |
|--------|-----------|----------|
| [BUL/SPAA](https://www.bul.ch) | Beratungsstelle fuer Unfallverhuetung in der Landwirtschaft | Lebenswichtige Regeln, Merkblaetter, Safe@Work |
| [Suva](https://www.suva.ch/de-ch/praevention/nach-branche/landwirtschaft) | Schweizerische Unfallversicherungsanstalt | MAK values, PPE, accident reporting |
| [EKAS](https://www.ekas.admin.ch) | Eidg. Koordinationskommission fuer Arbeitssicherheit | Branchenloesung Landwirtschaft, ASA concept |
| [Agriss](https://www.bul.ch/de/themen/unfallstatistik) | BUL / Agroscope | Farm accident statistics |
| [SECO](https://www.seco.admin.ch/seco/de/home/Arbeit/Arbeitsbedingungen/jugendarbeitsschutz.html) | Staatssekretariat fuer Wirtschaft | Young worker protection (ArGV 5) |
Coverage details: [COVERAGE.md](COVERAGE.md)
## Development
```bash
npm install
npm run build
npm test
npm run lint
```
### Ingestion
```bash
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 applying
```
### Freshness
```bash
npm run freshness:check
```
Data 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](DISCLAIMER.md) for the full bilingual disclaimer.
## License
Apache-2.0 -- see [LICENSE](LICENSE).
Data sourced from BUL/SPAA, Suva, EKAS, Agriss, and SECO under Swiss public-sector information principles.
## Links
- [Ansvar Open Agriculture](https://ansvar.eu/open-agriculture)
- [MCP Network](https://ansvar.ai/mcp)
- [SECURITY.md](SECURITY.md) | [PRIVACY.md](PRIVACY.md) | [CHANGELOG.md](CHANGELOG.md)
This server cannot be deployed
Maintenance
ActivityNo data
ResponsivenessSyncing