{"_id":"@ansvar/de-food-safety-mcp","_rev":"2-bcf71928fb3ce1584baba12a76073521","name":"@ansvar/de-food-safety-mcp","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@ansvar/de-food-safety-mcp","version":"0.1.0","keywords":["mcp","food-safety","traceability","haccp","labelling","red-tractor","farming"],"author":{"name":"Ansvar Systems","email":"info@ansvar.eu"},"license":"Apache-2.0","_id":"@ansvar/de-food-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/de-food-safety-mcp/issues"},"bin":{"de-food-safety-mcp":"dist/server.js"},"dist":{"shasum":"00ba58832a2fe1da13f1a9069d2a4fddcedd05ee","tarball":"https://registry.npmjs.org/@ansvar/de-food-safety-mcp/-/de-food-safety-mcp-0.1.0.tgz","fileCount":117,"integrity":"sha512-dWs1vlcj2uz6NA57MQjiJ6lElnVJUn3JyCv1RwaOgxOwjWTNsUhYlMKTGhm0Ah6Uzkg0dz55S2hb9dylFR5BgQ==","signatures":[{"sig":"MEUCIQCTHI3CKUzg2IKZRk+J7WVS5niLSsBbafVpxGsZpBKudQIgUtCiHyiPtJ97YTmdivJCkg87uZVyqvv6Z+tlG6GJigM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":335965},"main":"dist/server.js","type":"module","types":"./dist/server.d.ts","engines":{"node":">=20"},"gitHead":"4364542aedb1ff5871e901477ffa27f43dccd4ab","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: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/de-food-safety-mcp.git","type":"git"},"_npmVersion":"10.8.2","description":"UK food safety and traceability via MCP — direct sales, labelling, raw milk, assurance schemes, HACCP","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/de-food-safety-mcp_0.1.0_1775321104196_0.4201683567995391","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Ansvar MCP servers are now distributed as source from github.com/Ansvar-Systems/de-food-safety-mcp under Apache 2.0. Self-hosting instructions: see the repo README. Hosted gateway: ansvar.eu"}},"time":{"created":"2026-04-04T16:45:04.135Z","modified":"2026-05-02T05:46:29.295Z","0.1.0":"2026-04-04T16:45:04.359Z"},"bugs":{"url":"https://github.com/Ansvar-Systems/de-food-safety-mcp/issues"},"author":{"name":"Ansvar Systems","email":"info@ansvar.eu"},"license":"Apache-2.0","homepage":"https://ansvar.eu/open-agriculture","keywords":["mcp","food-safety","traceability","haccp","labelling","red-tractor","farming"],"repository":{"url":"git+https://github.com/Ansvar-Systems/de-food-safety-mcp.git","type":"git"},"description":"UK food safety and traceability via MCP — direct sales, labelling, raw milk, assurance schemes, HACCP","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"readme":"# Germany Food Safety MCP\n\n[![CI](https://github.com/Ansvar-Systems/de-food-safety-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/Ansvar-Systems/de-food-safety-mcp/actions/workflows/ci.yml)\n[![GHCR](https://github.com/Ansvar-Systems/de-food-safety-mcp/actions/workflows/ghcr-build.yml/badge.svg)](https://github.com/Ansvar-Systems/de-food-safety-mcp/actions/workflows/ghcr-build.yml)\n[![License: Apache-2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nUK food safety and traceability regulations via the [Model Context Protocol](https://modelcontextprotocol.io). Query direct sales rules, labelling requirements, raw milk legality, assurance schemes, HACCP, and hygiene requirements -- all from your AI assistant.\n\nPart of [Ansvar Open Agriculture](https://ansvar.eu/open-agriculture).\n\n## Why This Exists\n\nSmall food producers, farm shops, and farmers market sellers need to navigate a patchwork of food safety regulations that differ by product, sales channel, and devolved administration. Raw milk rules alone can mean the difference between a legal business and a criminal offence depending on which side of the Scottish border you are. This MCP server makes these rules queryable.\n\n## Quick Start\n\n### Claude Desktop\n\nAdd to `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"uk-food-safety\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@ansvar/de-food-safety-mcp\"]\n    }\n  }\n}\n```\n\n### Claude Code\n\n```bash\nclaude mcp add uk-food-safety npx @ansvar/de-food-safety-mcp\n```\n\n### Streamable HTTP (remote)\n\n```\nhttps://mcp.ansvar.eu/de-food-safety/mcp\n```\n\n### Docker (self-hosted)\n\n```bash\ndocker run -p 3000:3000 ghcr.io/ansvar-systems/de-food-safety-mcp:latest\n```\n\n### npm (stdio)\n\n```bash\nnpx @ansvar/de-food-safety-mcp\n```\n\n## Example Queries\n\nAsk your AI assistant:\n\n- \"Can I sell raw milk from my farm in Scotland?\"\n- \"What labelling do I need for eggs at a farmers market?\"\n- \"What are the HACCP requirements for a farm shop?\"\n- \"Do I need approval or just registration to sell cheese?\"\n- \"What assurance schemes should I look at for a small dairy?\"\n- \"What temperature controls apply to meat at a farmers market?\"\n- \"What traceability records do I need for beef?\"\n- \"What are the honey labelling rules for country of origin?\"\n\n## Stats\n\n| Metric | Value |\n|--------|-------|\n| Tools | 11 (3 meta + 8 domain) |\n| Jurisdiction | GB |\n| Products | 16 |\n| Product requirements | 44 (across 4 sales channels) |\n| Assurance schemes | 5 |\n| Hygiene rules | 8 activity types |\n| Raw milk rules | 4 devolved administrations |\n| Labelling rules | 34 field definitions |\n| Data sources | FSA, FSS, DEFRA, UK legislation |\n| License (data) | Open Government Licence v3 |\n| License (code) | Apache-2.0 |\n| Transport | stdio + Streamable HTTP |\n\n## Tools\n\n| Tool | Description |\n|------|-------------|\n| `about` | Server metadata and links |\n| `list_sources` | Data sources with freshness info |\n| `check_data_freshness` | Staleness status and refresh command |\n| `search_food_safety` | FTS5 search across all food safety data |\n| `get_product_requirements` | Requirements by product and sales channel |\n| `get_traceability_rules` | Record-keeping and one-step-forward-one-step-back |\n| `check_direct_sales_rules` | Farm gate, market, and online sales rules |\n| `get_labelling_requirements` | Mandatory label fields by product |\n| `get_assurance_scheme_requirements` | Red Tractor, SALSA, Soil Association, etc. |\n| `get_hygiene_requirements` | HACCP, temperature, cleaning by activity |\n| `check_raw_milk_rules` | Legality by devolved administration |\n\nSee [TOOLS.md](TOOLS.md) for full parameter documentation.\n\n## Raw Milk Rules (Critical)\n\n| Administration | Status |\n|---------------|--------|\n| England | Permitted at farm gate and farmers markets only. Warning label required. |\n| Scotland | **BANNED** for direct sale of cows milk (since 1983). |\n| Wales | Permitted at farm gate and farmers markets only. Warning label required. |\n| Northern Ireland | **PROHIBITED** -- all milk must be heat-treated. |\n\n## Security Scanning\n\nThis repository runs security checks on every push:\n\n- **CodeQL** -- static analysis for JavaScript/TypeScript\n- **Gitleaks** -- secret detection across full history\n- **Dependency review** -- via Dependabot\n- **Container scanning** -- via GHCR build pipeline\n\nSee [SECURITY.md](SECURITY.md) for reporting policy.\n\n## Disclaimer\n\nThis tool provides reference data for informational purposes only. It is not professional food safety or legal advice. Requirements vary by local authority. Always consult your Environmental Health Officer. See [DISCLAIMER.md](DISCLAIMER.md).\n\n## Contributing\n\nIssues and pull requests welcome. For security vulnerabilities, email security@ansvar.eu (do not open a public issue).\n\n## License\n\nApache-2.0. Data sourced under Open Government Licence v3.\n","readmeFilename":"README.md"}