{"_id":"@ansvar/se-pest-management-mcp","_rev":"2-60517c51723d404d52866914568ef037","name":"@ansvar/se-pest-management-mcp","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@ansvar/se-pest-management-mcp","version":"0.1.0","keywords":["mcp","agriculture","pest-management","ipm","crop-protection","sweden","kemi","jordbruksverket"],"author":{"name":"Ansvar Systems","email":"info@ansvar.eu"},"license":"Apache-2.0","_id":"@ansvar/se-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/se-pest-management-mcp/issues"},"bin":{"se-pest-management-mcp":"dist/server.js"},"dist":{"shasum":"3d12a6907c40c7fcd46fad05b9053c89080317bc","tarball":"https://registry.npmjs.org/@ansvar/se-pest-management-mcp/-/se-pest-management-mcp-0.1.0.tgz","fileCount":118,"integrity":"sha512-9QWG74lXwX9kSnyuiIUn1/9UAd6vUehHSF/p6grknpA/XudaGASftPjVhjjovKodIhWIhEn9EjyTWQTL/uS5dQ==","signatures":[{"sig":"MEUCIHgUFEHBI/4CBeyeN6GZ+0Iz6syweZyH3Jo8jm+aklKIAiEAm20VsWEpuUycRK1U6bsNkrxQ+NFo/g602k+o8I/kIjo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":887802},"main":"dist/server.js","type":"module","types":"./dist/server.d.ts","engines":{"node":">=20"},"gitHead":"90d20657836df28d99fcad1556998a69d08c4172","mcpName":"io.github.ansvar-systems/se-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/se-pest-management-mcp.git","type":"git"},"_npmVersion":"10.8.2","description":"Swedish 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/se-pest-management-mcp_0.1.0_1775292611517_0.13302994822209535","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Ansvar MCP servers are now distributed as source from github.com/Ansvar-Systems/se-pest-management-mcp under Apache 2.0. Self-hosting instructions: see the repo README. Hosted gateway: ansvar.eu"}},"time":{"created":"2026-04-04T08:50:11.461Z","modified":"2026-05-02T05:48:48.063Z","0.1.0":"2026-04-04T08:50:11.674Z"},"bugs":{"url":"https://github.com/ansvar-systems/se-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","sweden","kemi","jordbruksverket"],"repository":{"url":"git+https://github.com/ansvar-systems/se-pest-management-mcp.git","type":"git"},"description":"Swedish pest, disease, and weed management via MCP -- identification, treatment, IPM guidance, symptom diagnosis","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"readme":"# Sweden Pest Management MCP\n\n[![CI](https://github.com/ansvar-systems/se-pest-management-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/ansvar-systems/se-pest-management-mcp/actions/workflows/ci.yml)\n[![GHCR](https://github.com/ansvar-systems/se-pest-management-mcp/actions/workflows/ghcr-build.yml/badge.svg)](https://github.com/ansvar-systems/se-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\nSwedish pest, disease, and weed management via the [Model Context Protocol](https://modelcontextprotocol.io). Identify crop threats, get treatment options, IPM (integrerat vaxtskydd) 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\nSwedish farmers and agronomists need quick access to pest identification, treatment options, and IPM thresholds. This information is published by Kemikalieinspektionen (KemI), Jordbruksverket, and SLU but is scattered across registers, PDFs, and research publications. 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/se-pest-management-mcp\"]\n    }\n  }\n}\n```\n\n### Claude Code\n\n```bash\nclaude mcp add se-pest-management npx @ansvar/se-pest-management-mcp\n```\n\n### Streamable HTTP (remote)\n\n```\nhttps://mcp.ansvar.eu/se-pest-management/mcp\n```\n\n### Docker (self-hosted)\n\n```bash\ndocker run -p 3000:3000 ghcr.io/ansvar-systems/se-pest-management-mcp:latest\n```\n\n### npm (stdio)\n\n```bash\nnpx @ansvar/se-pest-management-mcp\n```\n\n## Example Queries\n\nAsk your AI assistant:\n\n- \"Vilka sjukdomar angriper hostvete?\" (What diseases affect winter wheat?)\n- \"Jag ser gula flackar pa mina veteblad -- vad kan det vara?\" (Yellow patches on wheat leaves)\n- \"Vilka bekampningsmedel ar godkanda mot rapsbagge?\" (Approved products for pollen beetle)\n- \"Visa IPM-vagledning for svartpricksjuka i hostvete\" (IPM guidance for septoria)\n- \"Vilka produkter innehaller prothioconazole?\" (Products containing prothioconazole)\n- \"Vilka skadegorare angriper korn?\" (What pests attack barley?)\n\n## Stats\n\n| Metric | Value |\n|--------|-------|\n| Tools | 10 (3 meta + 7 domain) |\n| Jurisdiction | SE |\n| Data sources | Kemikalieinspektionen (KemI), Jordbruksverket, SLU |\n| License (data) | Swedish Open Data Licence / CC Attribution |\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` | KemI-approved pesticide products for Sweden |\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 Kemikalieinspektionen (KemI) 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 from Kemikalieinspektionen, Jordbruksverket, and SLU under Swedish Open Data Licence and Creative Commons Attribution.\n","readmeFilename":"README.md"}