{"_id":"@ansvar/ch-farm-safety-mcp","_rev":"2-706e46040ca8b4ff08486960eb9819e6","name":"@ansvar/ch-farm-safety-mcp","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@ansvar/ch-farm-safety-mcp","version":"0.1.0","keywords":["mcp","agriculture","safety","bul","suva","farming","workplace-safety","switzerland"],"author":{"name":"Ansvar Systems","email":"info@ansvar.eu"},"license":"Apache-2.0","_id":"@ansvar/ch-farm-safety-mcp@0.1.0","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"homepage":"https://ansvar.eu/open-agriculture","bugs":{"url":"https://github.com/Ansvar-Systems/ch-farm-safety-mcp/issues"},"bin":{"ch-farm-safety-mcp":"dist/server.js"},"dist":{"shasum":"a1d7e432259841ea996484edcdc4632c9cdf2b80","tarball":"https://registry.npmjs.org/@ansvar/ch-farm-safety-mcp/-/ch-farm-safety-mcp-0.1.0.tgz","fileCount":109,"integrity":"sha512-+2mcI6c776nwxx+fhYdmsM1ugLajsQz43RWrUQaY16FBXuJCEiAR2uNYGWHduI6x4LxutO9gIH6PIUIwSyEWfg==","signatures":[{"sig":"MEUCIG8ZIutAHVZlX173R8V6G2L83Cpz0Jlj52RPMzOiXiKaAiEA0mp9aOWGEzqFn1yuEnGckWUmat7OujDxeEr0I71/PcU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ansvar%2fch-farm-safety-mcp@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":419578},"main":"dist/server.js","type":"module","types":"./dist/server.d.ts","engines":{"node":">=20"},"gitHead":"b761b706ae0f60a0a868ac6eff576b5736221dd5","mcpName":"io.github.ansvar-systems/ch-farm-safety","scripts":{"dev":"tsx watch src/server.ts","lint":"eslint src/ tests/","test":"vitest run","build":"tsc","start":"node dist/server.js","ingest":"tsx scripts/ingest.ts","build:db":"tsx scripts/build-db.ts","typecheck":"tsc --noEmit","start:http":"node dist/http-server.js","test:watch":"vitest","ingest:diff":"tsx scripts/ingest.ts --diff-only","ingest:full":"tsx scripts/ingest.ts --force","ingest:fetch":"tsx scripts/ingest.ts --fetch-only","coverage:update":"tsx scripts/update-coverage.ts","freshness:check":"tsx scripts/check-freshness.ts"},"_npmUser":{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"},"repository":{"url":"git+https://github.com/Ansvar-Systems/ch-farm-safety-mcp.git","type":"git"},"_npmVersion":"10.8.2","description":"Swiss farm workplace safety via MCP -- BUL/SPAA rules, Suva requirements, EKAS Branchenloesung, Agriss statistics, machinery safety, chemical exposure","directories":{},"_nodeVersion":"20.20.2","dependencies":{"zod":"^3.23.0","better-sqlite3":"^11.0.0","@modelcontextprotocol/sdk":"^1.12.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.0.0","eslint":"^9.0.0","vitest":"^2.0.0","typescript":"^5.5.0","@types/node":"^20.0.0","@types/better-sqlite3":"^7.6.0","@typescript-eslint/parser":"^8.0.0","@typescript-eslint/eslint-plugin":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ch-farm-safety-mcp_0.1.0_1775385470520_0.8691675276307727","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Ansvar MCP servers are now distributed as source from github.com/Ansvar-Systems/ch-farm-safety-mcp under Apache 2.0. Self-hosting instructions: see the repo README. Hosted gateway: ansvar.eu"}},"time":{"created":"2026-04-05T10:37:50.461Z","modified":"2026-05-02T05:45:45.481Z","0.1.0":"2026-04-05T10:37:50.715Z"},"bugs":{"url":"https://github.com/Ansvar-Systems/ch-farm-safety-mcp/issues"},"author":{"name":"Ansvar Systems","email":"info@ansvar.eu"},"license":"Apache-2.0","homepage":"https://ansvar.eu/open-agriculture","keywords":["mcp","agriculture","safety","bul","suva","farming","workplace-safety","switzerland"],"repository":{"url":"git+https://github.com/Ansvar-Systems/ch-farm-safety-mcp.git","type":"git"},"description":"Swiss farm workplace safety via MCP -- BUL/SPAA rules, Suva requirements, EKAS Branchenloesung, Agriss statistics, machinery safety, chemical exposure","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"readme":"# Switzerland Farm Safety MCP\n\nMachine-readable Swiss farm workplace safety data via the [Model Context Protocol](https://modelcontextprotocol.io).\n\nCovers 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.\n\n## Quick Start\n\n### npx (stdio — zero install)\n\n```bash\nnpx -y @ansvar/ch-farm-safety-mcp\n```\n\n### Docker\n\n```bash\ndocker run -p 3000:3000 ghcr.io/ansvar-systems/ch-farm-safety-mcp:latest\n```\n\n### Streamable HTTP (remote)\n\n```\nhttps://mcp.ansvar.eu/ch-farm-safety/mcp\n```\n\nNo authentication required. Rate-limited to fair use.\n\n### Claude Desktop / Cursor\n\nAdd to your MCP client config:\n\n```json\n{\n  \"mcpServers\": {\n    \"ch-farm-safety\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@ansvar/ch-farm-safety-mcp\"]\n    }\n  }\n}\n```\n\nOr use the remote endpoint:\n\n```json\n{\n  \"mcpServers\": {\n    \"ch-farm-safety\": {\n      \"url\": \"https://mcp.ansvar.eu/ch-farm-safety/mcp\"\n    }\n  }\n}\n```\n\n## Tools\n\n10 tools covering Swiss farm workplace safety:\n\n| Tool | Description |\n|------|-------------|\n| `about` | Server metadata: name, version, coverage, data sources |\n| `list_sources` | All data sources with authority, URL, license, freshness |\n| `check_data_freshness` | Last ingest date, staleness status, refresh command |\n| `search_safety_rules` | FTS5 search across BUL/Suva/EKAS safety rules |\n| `get_risk_assessment_requirements` | Risk assessment obligations per farm activity (EKAS/VUV) |\n| `get_machinery_safety` | ROPS, Gurtpflicht, MFK, PTO guard requirements by machine type |\n| `get_chemical_safety` | MAK exposure limits, PPE, storage rules by substance |\n| `get_young_worker_rules` | Jugendarbeitsschutz restrictions by age group |\n| `get_accident_reporting` | Reporting deadlines, forms, insurer by severity |\n| `search_bul_guidance` | BUL/SPAA guidance documents, fact sheets, campaigns |\n\nFull tool documentation: [TOOLS.md](TOOLS.md)\n\n## Data Sources\n\n| Source | Authority | Coverage |\n|--------|-----------|----------|\n| [BUL/SPAA](https://www.bul.ch) | Beratungsstelle fuer Unfallverhuetung in der Landwirtschaft | Lebenswichtige Regeln, Merkblaetter, Safe@Work |\n| [Suva](https://www.suva.ch/de-ch/praevention/nach-branche/landwirtschaft) | Schweizerische Unfallversicherungsanstalt | MAK values, PPE, accident reporting |\n| [EKAS](https://www.ekas.admin.ch) | Eidg. Koordinationskommission fuer Arbeitssicherheit | Branchenloesung Landwirtschaft, ASA concept |\n| [Agriss](https://www.bul.ch/de/themen/unfallstatistik) | BUL / Agroscope | Farm accident statistics |\n| [SECO](https://www.seco.admin.ch/seco/de/home/Arbeit/Arbeitsbedingungen/jugendarbeitsschutz.html) | Staatssekretariat fuer Wirtschaft | Young worker protection (ArGV 5) |\n\nCoverage details: [COVERAGE.md](COVERAGE.md)\n\n## Development\n\n```bash\nnpm install\nnpm run build\nnpm test\nnpm run lint\n```\n\n### Ingestion\n\n```bash\nnpm run ingest          # incremental update\nnpm run ingest:full     # force full re-ingestion\nnpm run ingest:fetch    # fetch sources only (no DB write)\nnpm run ingest:diff     # show changes without applying\n```\n\n### Freshness\n\n```bash\nnpm run freshness:check\n```\n\nData staleness threshold: 90 days. The `check-freshness.yml` workflow runs weekly and opens an issue if data is stale.\n\n## Legal\n\nThis 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.\n\nSee [DISCLAIMER.md](DISCLAIMER.md) for the full bilingual disclaimer.\n\n## License\n\nApache-2.0 -- see [LICENSE](LICENSE).\n\nData sourced from BUL/SPAA, Suva, EKAS, Agriss, and SECO under Swiss public-sector information principles.\n\n## Links\n\n- [Ansvar Open Agriculture](https://ansvar.eu/open-agriculture)\n- [MCP Network](https://ansvar.ai/mcp)\n- [SECURITY.md](SECURITY.md) | [PRIVACY.md](PRIVACY.md) | [CHANGELOG.md](CHANGELOG.md)\n","readmeFilename":"README.md"}