{"_id":"@ansvar/se-livestock-mcp","_rev":"2-f5e3ea0fdc379b7fb3b54e5af07d065c","name":"@ansvar/se-livestock-mcp","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@ansvar/se-livestock-mcp","version":"0.1.0","keywords":["mcp","livestock","welfare","animal-health","farming","movement-rules","jordbruksverket","sweden","sjvfs"],"author":{"name":"Ansvar Systems","email":"info@ansvar.eu"},"license":"Apache-2.0","_id":"@ansvar/se-livestock-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/se-livestock-mcp/issues"},"bin":{"se-livestock-mcp":"dist/server.js"},"dist":{"shasum":"9d90bf025ab40b0ada4e6fadf9b8f91ea50855be","tarball":"https://registry.npmjs.org/@ansvar/se-livestock-mcp/-/se-livestock-mcp-0.1.0.tgz","fileCount":126,"integrity":"sha512-6HoX/5imL5cx44nadXKRWPX10BCDnJHMuE2vBF1gnGMZebZLaR/uIZkAvQyIyX/16EoGDnANO8KPFEtftEb9jw==","signatures":[{"sig":"MEQCIBaRpF9j//0WAcKrwoEnCQgwv+oY+I0SjeomSkXcZKP4AiBPZtrXU4Eid3XUgV5zJTxl1svgvLjMb1l52O1O3KkzBA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1317570},"main":"dist/server.js","type":"module","types":"./dist/server.d.ts","engines":{"node":">=20"},"gitHead":"d5cf9627b6a41fe9945263dfae49d06c13e36890","mcpName":"io.github.ansvar-systems/se-livestock","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/se-livestock-mcp.git","type":"git"},"_npmVersion":"10.8.2","description":"Swedish livestock welfare, feed, health, and movement rules via MCP -- Jordbruksverket SJVFS regulations, SVA animal health, CDB movement rules","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/se-livestock-mcp_0.1.0_1775292614909_0.5496657195432102","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Ansvar MCP servers are now distributed as source from github.com/Ansvar-Systems/se-livestock-mcp under Apache 2.0. Self-hosting instructions: see the repo README. Hosted gateway: ansvar.eu"}},"time":{"created":"2026-04-04T08:50:14.809Z","modified":"2026-05-02T05:48:44.517Z","0.1.0":"2026-04-04T08:50:15.062Z"},"bugs":{"url":"https://github.com/ansvar-systems/se-livestock-mcp/issues"},"author":{"name":"Ansvar Systems","email":"info@ansvar.eu"},"license":"Apache-2.0","homepage":"https://ansvar.eu/open-agriculture","keywords":["mcp","livestock","welfare","animal-health","farming","movement-rules","jordbruksverket","sweden","sjvfs"],"repository":{"url":"git+https://github.com/ansvar-systems/se-livestock-mcp.git","type":"git"},"description":"Swedish livestock welfare, feed, health, and movement rules via MCP -- Jordbruksverket SJVFS regulations, SVA animal health, CDB movement rules","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"readme":"# Sweden Livestock MCP\n\n[![CI](https://github.com/ansvar-systems/se-livestock-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/ansvar-systems/se-livestock-mcp/actions/workflows/ci.yml)\n[![GHCR](https://github.com/ansvar-systems/se-livestock-mcp/actions/workflows/ghcr-build.yml/badge.svg)](https://github.com/ansvar-systems/se-livestock-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\nSwedish livestock welfare, feed, health, housing, movement rules, and breeding guidance via the [Model Context Protocol](https://modelcontextprotocol.io). Query Jordbruksverket welfare regulations (SJVFS), SVA animal health guidance, CDB movement rules, stocking densities, and breeding calendars -- all from your AI assistant.\n\nSweden has stricter animal welfare standards than EU minimum: tail docking banned since 1988, farrowing crates banned, beak trimming banned, mandatory outdoor grazing for cattle (beteskrav), and conventional cages banned since 2004.\n\nPart of [Ansvar Open Agriculture](https://ansvar.eu/open-agriculture).\n\n## Why This Exists\n\nFarmers, livestock advisors, and compliance professionals need quick access to Swedish animal welfare regulations, movement rules, feed tables, and breeding guidance. This information is published by Jordbruksverket, SVA, and Vaxa Sverige but is spread across PDFs, web pages, and statutory instruments (SJVFS) that AI assistants cannot query directly. This MCP server makes it all searchable.\n\n## Quick Start\n\n### Claude Desktop\n\nAdd to `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"se-livestock\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@ansvar/se-livestock-mcp\"]\n    }\n  }\n}\n```\n\n### Claude Code\n\n```bash\nclaude mcp add se-livestock npx @ansvar/se-livestock-mcp\n```\n\n### Streamable HTTP (remote)\n\n```\nhttps://mcp.ansvar.eu/se-livestock/mcp\n```\n\n### Docker (self-hosted)\n\n```bash\ndocker run -p 3000:3000 ghcr.io/ansvar-systems/se-livestock-mcp:latest\n```\n\n### npm (stdio)\n\n```bash\nnpx @ansvar/se-livestock-mcp\n```\n\n## Example Queries\n\nAsk your AI assistant:\n\n- \"What are the Swedish grazing requirements for dairy cows (beteskrav)?\"\n- \"Is tail docking allowed for pigs in Sweden?\"\n- \"What are the housing requirements for broilers in Sweden?\"\n- \"What is the standstill period after receiving cattle?\"\n- \"What are the Salmonella rules for Swedish livestock?\"\n- \"What breeds does Viking Genetics offer for Swedish dairy?\"\n- \"What enrichment is required for Swedish pigs?\"\n- \"Are battery cages allowed for laying hens in Sweden?\"\n\n## Stats\n\n| Metric | Value |\n|--------|-------|\n| Tools | 11 (3 meta + 8 domain) |\n| Species | Cattle, Sheep, Pigs, Poultry, Goats |\n| Breeds | 24 (detailed profiles) |\n| Jurisdiction | SE |\n| Data sources | Jordbruksverket (SJVFS), SVA, CDB, Vaxa Sverige |\n| License (data) | Swedish public records |\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_livestock_guidance` | FTS5 search across all livestock guidance |\n| `get_welfare_standards` | Welfare standards with legal minimum and best practice |\n| `get_stocking_density` | Space requirements by species and housing |\n| `get_feed_requirements` | Nutrition requirements by species and stage |\n| `search_animal_health` | Disease and condition search with notifiable flagging |\n| `get_housing_requirements` | Space, ventilation, flooring, temperature, lighting |\n| `get_movement_rules` | Standstill periods, CDB registration, exceptions |\n| `get_breeding_guidance` | Gestation periods, breeding calendars |\n\nSee [TOOLS.md](TOOLS.md) for full parameter documentation.\n\n## Security Scanning\n\nThis repository runs 6 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. Welfare regulations and movement rules are summaries -- always check Jordbruksverket SJVFS regulations and SVA guidance for the full requirements. 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 from Swedish public records (Jordbruksverket, SVA).\n","readmeFilename":"README.md"}