{"_id":"@ansvar/uk-livestock-mcp","_rev":"2-7ca1a62455abcbd42b39715560d65291","name":"@ansvar/uk-livestock-mcp","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@ansvar/uk-livestock-mcp","version":"0.1.0","keywords":["mcp","livestock","welfare","animal-health","farming","movement-rules","apha"],"author":{"name":"Ansvar Systems","email":"info@ansvar.eu"},"license":"Apache-2.0","_id":"@ansvar/uk-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/uk-livestock-mcp/issues"},"bin":{"uk-livestock-mcp":"dist/server.js"},"dist":{"shasum":"e5878ed4accd6d5914bcc0629afe7acaddbfd5e5","tarball":"https://registry.npmjs.org/@ansvar/uk-livestock-mcp/-/uk-livestock-mcp-0.1.0.tgz","fileCount":120,"integrity":"sha512-OUS4DLhH7OCd0HB7NXBfqykzlyK5TvaHdGjIGHYcK0WmFZEXbznCGap4lQUUkN1USbActP2sUlEhXJQNPNMGbA==","signatures":[{"sig":"MEUCIEdY93WyiZhfqu3UL6cPu8dja28NK33yL7+OessPlWa6AiEA1mv5/SS3g32TViJXEfPxMSuu+dW8ZDYL8KNT84OqVdY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":700977},"main":"dist/server.js","type":"module","types":"./dist/server.d.ts","engines":{"node":">=20"},"gitHead":"7ec8a031bb71dc44042bca5d41ffa332861a56fb","mcpName":"io.github.ansvar-systems/uk-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/uk-livestock-mcp.git","type":"git"},"_npmVersion":"10.8.2","description":"UK livestock welfare, feed, health, and movement rules via MCP -- stocking densities, breeding guidance, APHA regulations","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/uk-livestock-mcp_0.1.0_1775242584800_0.15887856268691336","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Ansvar MCP servers are now distributed as source from github.com/Ansvar-Systems/uk-livestock-mcp under Apache 2.0. Self-hosting instructions: see the repo README. Hosted gateway: ansvar.eu"}},"time":{"created":"2026-04-03T18:56:24.675Z","modified":"2026-05-02T05:49:47.705Z","0.1.0":"2026-04-03T18:56:24.969Z"},"bugs":{"url":"https://github.com/ansvar-systems/uk-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","apha"],"repository":{"url":"git+https://github.com/ansvar-systems/uk-livestock-mcp.git","type":"git"},"description":"UK livestock welfare, feed, health, and movement rules via MCP -- stocking densities, breeding guidance, APHA regulations","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"readme":"# UK Livestock MCP\n\n[![CI](https://github.com/ansvar-systems/uk-livestock-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/ansvar-systems/uk-livestock-mcp/actions/workflows/ci.yml)\n[![GHCR](https://github.com/ansvar-systems/uk-livestock-mcp/actions/workflows/ghcr-build.yml/badge.svg)](https://github.com/ansvar-systems/uk-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\nUK livestock welfare, feed, health, housing, movement rules, and breeding guidance via the [Model Context Protocol](https://modelcontextprotocol.io). Query DEFRA welfare codes, APHA movement standstills, stocking densities, and breeding calendars -- all from your AI assistant.\n\nPart of [Ansvar Open Agriculture](https://ansvar.eu/open-agriculture).\n\n## Why This Exists\n\nFarmers and livestock advisors need quick access to welfare codes, movement standstill periods, feed tables, and breeding calendars. This information is published by DEFRA, APHA, and AHDB but is spread across PDFs, web pages, and statutory instruments 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    \"uk-livestock\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@ansvar/uk-livestock-mcp\"]\n    }\n  }\n}\n```\n\n### Claude Code\n\n```bash\nclaude mcp add uk-livestock npx @ansvar/uk-livestock-mcp\n```\n\n### Streamable HTTP (remote)\n\n```\nhttps://mcp.ansvar.eu/uk-livestock/mcp\n```\n\n### Docker (self-hosted)\n\n```bash\ndocker run -p 3000:3000 ghcr.io/ansvar-systems/uk-livestock-mcp:latest\n```\n\n### npm (stdio)\n\n```bash\nnpx @ansvar/uk-livestock-mcp\n```\n\n## Example Queries\n\nAsk your AI assistant:\n\n- \"What is the standstill period for sheep movements?\"\n- \"What are the welfare standards for indoor pigs?\"\n- \"What feed does a finishing pig need per day?\"\n- \"What are the housing requirements for cattle?\"\n- \"Is foot-and-mouth disease notifiable?\"\n- \"What is the gestation period for sheep?\"\n\n## Stats\n\n| Metric | Value |\n|--------|-------|\n| Tools | 11 (3 meta + 8 domain) |\n| Species | Sheep, Cattle, Pigs |\n| Jurisdiction | GB |\n| Data sources | AHDB Livestock, DEFRA Welfare Codes, APHA Movement Rules, DEFRA Notifiable Diseases |\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_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, exceptions, APHA regulation refs |\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 codes and movement rules are summaries -- always check DEFRA welfare codes and APHA 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 under Open Government Licence v3.\n","readmeFilename":"README.md"}