{"_id":"@ansvar/uk-pest-management-mcp","_rev":"2-659e8636415a2014826667f3c8e2e2c1","name":"@ansvar/uk-pest-management-mcp","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@ansvar/uk-pest-management-mcp","version":"0.1.0","keywords":["mcp","agriculture","pest-management","ipm","crop-protection","ahdb"],"author":{"name":"Ansvar Systems","email":"info@ansvar.eu"},"license":"Apache-2.0","_id":"@ansvar/uk-pest-management-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-pest-management-mcp/issues"},"bin":{"uk-pest-management-mcp":"dist/server.js"},"dist":{"shasum":"501d7debd7ae3eff08633e20c1041fcbda74797d","tarball":"https://registry.npmjs.org/@ansvar/uk-pest-management-mcp/-/uk-pest-management-mcp-0.1.0.tgz","fileCount":113,"integrity":"sha512-0++HOqXsr+EshiTgGPGnGaJpuv8mn77vV9dQg+J7b2rH3LTNKTnZBbdPc3jxECWTtQ3UY6/Btf1fopE0sYpU8Q==","signatures":[{"sig":"MEQCIGsgnsqwQbqp4CO1OsKdQt2KGURNQ3RNy6OfpURMTSq1AiAq3HVre6SkdVi6j6zSn4PjBd5sM60T0FdRf2t0NBg9sQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3346957},"main":"dist/server.js","type":"module","types":"./dist/server.d.ts","engines":{"node":">=20"},"gitHead":"5bca17978b5684538854239858eee230aba15ecc","mcpName":"io.github.ansvar-systems/uk-pest-management","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-pest-management-mcp.git","type":"git"},"_npmVersion":"10.8.2","description":"UK pest, disease, and weed management via MCP -- identification, treatment, IPM guidance, symptom diagnosis","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-pest-management-mcp_0.1.0_1775242582407_0.540884885758212","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Ansvar MCP servers are now distributed as source from github.com/Ansvar-Systems/uk-pest-management-mcp under Apache 2.0. Self-hosting instructions: see the repo README. Hosted gateway: ansvar.eu"}},"time":{"created":"2026-04-03T18:56:22.230Z","modified":"2026-05-02T05:49:51.480Z","0.1.0":"2026-04-03T18:56:22.604Z"},"bugs":{"url":"https://github.com/ansvar-systems/uk-pest-management-mcp/issues"},"author":{"name":"Ansvar Systems","email":"info@ansvar.eu"},"license":"Apache-2.0","homepage":"https://ansvar.eu/open-agriculture","keywords":["mcp","agriculture","pest-management","ipm","crop-protection","ahdb"],"repository":{"url":"git+https://github.com/ansvar-systems/uk-pest-management-mcp.git","type":"git"},"description":"UK pest, disease, and weed management via MCP -- identification, treatment, IPM guidance, symptom diagnosis","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"readme":"# UK Pest Management MCP\n\n[![CI](https://github.com/ansvar-systems/uk-pest-management-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/ansvar-systems/uk-pest-management-mcp/actions/workflows/ci.yml)\n[![GHCR](https://github.com/ansvar-systems/uk-pest-management-mcp/actions/workflows/ghcr-build.yml/badge.svg)](https://github.com/ansvar-systems/uk-pest-management-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 pest, disease, and weed management via the [Model Context Protocol](https://modelcontextprotocol.io). Identify crop threats, get treatment options, IPM guidance, and run symptom-based differential diagnosis -- all from your AI assistant.\n\nPart of [Ansvar Open Agriculture](https://ansvar.eu/open-agriculture).\n\n## Why This Exists\n\nFarmers and agronomists need quick access to pest identification, treatment options, and IPM thresholds. This information is published by AHDB and HSE but is scattered across knowledge libraries, PDFs, and the CRD pesticide database. This MCP server brings it all together in a searchable, structured format.\n\n## Quick Start\n\n### Claude Desktop\n\nAdd to `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"pest-management\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@ansvar/uk-pest-management-mcp\"]\n    }\n  }\n}\n```\n\n### Claude Code\n\n```bash\nclaude mcp add uk-pest-management npx @ansvar/uk-pest-management-mcp\n```\n\n### Streamable HTTP (remote)\n\n```\nhttps://mcp.ansvar.eu/uk-pest-management/mcp\n```\n\n### Docker (self-hosted)\n\n```bash\ndocker run -p 3000:3000 ghcr.io/ansvar-systems/uk-pest-management-mcp:latest\n```\n\n### npm (stdio)\n\n```bash\nnpx @ansvar/uk-pest-management-mcp\n```\n\n## Example Queries\n\nAsk your AI assistant:\n\n- \"What diseases affect winter wheat?\"\n- \"I see yellow patches on my wheat leaves with dark spots -- what could it be?\"\n- \"What are the treatment options for blackgrass?\"\n- \"Show me IPM guidance for septoria in winter wheat\"\n- \"What products contain prothioconazole approved for wheat?\"\n- \"What are all the pests and weeds that attack barley?\"\n\n## Stats\n\n| Metric | Value |\n|--------|-------|\n| Tools | 10 (3 meta + 7 domain) |\n| Jurisdiction | GB |\n| Data sources | AHDB Knowledge Library, HSE CRD Pesticide Register, AHDB IPM Guidance |\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_pests` | FTS5 search across pest, disease, and weed data |\n| `get_pest_details` | Full pest profile with symptoms and identification |\n| `get_treatments` | Chemical, cultural, and biological treatment options |\n| `get_ipm_guidance` | IPM thresholds, monitoring, and decision guides |\n| `search_crop_threats` | All threats affecting a specific crop |\n| `identify_from_symptoms` | Symptom-based differential diagnosis with confidence scoring |\n| `get_approved_products` | UK CRD-approved pesticide products |\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\nPesticide data is for reference only. **Always check the current HSE CRD register before applying any product.** This tool is not professional pest management advice. 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"}