{"_id":"@ansvar/de-crop-nutrients-mcp","_rev":"2-f109272ce59e4ddfd5d3a8e8c8389634","name":"@ansvar/de-crop-nutrients-mcp","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@ansvar/de-crop-nutrients-mcp","version":"0.1.0","keywords":["mcp","agriculture","nutrients","rb209","farming","crop-science"],"author":{"name":"Ansvar Systems","email":"info@ansvar.eu"},"license":"Apache-2.0","_id":"@ansvar/de-crop-nutrients-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-crop-nutrients-mcp/issues"},"bin":{"de-crop-nutrients-mcp":"dist/server.js"},"dist":{"shasum":"b05db0454314c529c507e0e829fc15dfda1b3efd","tarball":"https://registry.npmjs.org/@ansvar/de-crop-nutrients-mcp/-/de-crop-nutrients-mcp-0.1.0.tgz","fileCount":112,"integrity":"sha512-gwoT5/qfZrZElpjGnFieU3ff8Y9H5nL/LJd0S5kuisuRxTFz+mXc2Im/4fx5h5Yo/x483IWRWKPeB7ABKdnV/Q==","signatures":[{"sig":"MEYCIQDM6wsbt2aKKpKaAqPLmiG2Ffoa6kHPT0l0ZulEGIVZeAIhAJXF9QgpJ17qSJS0aKuXPPmygoo/Imzg5iTMys+I3Mnr","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":194632},"main":"dist/server.js","type":"module","types":"./dist/server.d.ts","engines":{"node":">=20"},"gitHead":"eab8e9f7181def62683206e34c2cd23eddf007a2","mcpName":"io.github.ansvar-systems/uk-crop-nutrients","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/de-crop-nutrients-mcp.git","type":"git"},"_npmVersion":"10.8.2","description":"UK crop nutrient recommendations via MCP -- RB209 data, soil types, NPK planning, commodity prices","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-crop-nutrients-mcp_0.1.0_1775321081875_0.14843887874875072","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Ansvar MCP servers are now distributed as source from github.com/Ansvar-Systems/de-crop-nutrients-mcp under Apache 2.0. Self-hosting instructions: see the repo README. Hosted gateway: ansvar.eu"}},"time":{"created":"2026-04-04T16:44:41.788Z","modified":"2026-05-02T05:46:18.179Z","0.1.0":"2026-04-04T16:44:42.023Z"},"bugs":{"url":"https://github.com/ansvar-systems/de-crop-nutrients-mcp/issues"},"author":{"name":"Ansvar Systems","email":"info@ansvar.eu"},"license":"Apache-2.0","homepage":"https://ansvar.eu/open-agriculture","keywords":["mcp","agriculture","nutrients","rb209","farming","crop-science"],"repository":{"url":"git+https://github.com/ansvar-systems/de-crop-nutrients-mcp.git","type":"git"},"description":"UK crop nutrient recommendations via MCP -- RB209 data, soil types, NPK planning, commodity prices","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"readme":"# Germany Crop Nutrients MCP\n\n[![CI](https://github.com/ansvar-systems/de-crop-nutrients-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/ansvar-systems/de-crop-nutrients-mcp/actions/workflows/ci.yml)\n[![GHCR](https://github.com/ansvar-systems/de-crop-nutrients-mcp/actions/workflows/ghcr-build.yml/badge.svg)](https://github.com/ansvar-systems/de-crop-nutrients-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 crop nutrient recommendations via the [Model Context Protocol](https://modelcontextprotocol.io). Query AHDB RB209 data, soil types, NPK planning, and commodity prices -- 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 nutrient recommendation tables, commodity prices, and soil data. This information is published by AHDB and DEFRA but is locked in PDFs, spreadsheets, and web pages 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-crop-nutrients\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@ansvar/de-crop-nutrients-mcp\"]\n    }\n  }\n}\n```\n\n### Claude Code\n\n```bash\nclaude mcp add uk-crop-nutrients npx @ansvar/de-crop-nutrients-mcp\n```\n\n### Streamable HTTP (remote)\n\n```\nhttps://mcp.ansvar.eu/de-crop-nutrients/mcp\n```\n\n### Docker (self-hosted)\n\n```bash\ndocker run -p 3000:3000 ghcr.io/ansvar-systems/de-crop-nutrients-mcp:latest\n```\n\n### npm (stdio)\n\n```bash\nnpx @ansvar/de-crop-nutrients-mcp\n```\n\n## Example Queries\n\nAsk your AI assistant:\n\n- \"What NPK does winter wheat need on heavy clay soil?\"\n- \"What's the current price of spring barley?\"\n- \"Calculate gross margin for 8.5 t/ha winter wheat at 520/ha input costs\"\n- \"What soil group is sandy loam in RB209?\"\n- \"Search for nitrogen recommendations for oilseed rape\"\n\n## Stats\n\n| Metric | Value |\n|--------|-------|\n| Tools | 10 (3 meta + 7 domain) |\n| Jurisdiction | GB |\n| Data sources | AHDB RB209, DEFRA Price Indices, AHDB Market Data |\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_crop_requirements` | FTS5 search across crop and nutrient data |\n| `get_nutrient_plan` | NPK recommendation for crop + soil type |\n| `get_soil_classification` | Soil group and characteristics |\n| `list_crops` | All crops, optionally by group |\n| `get_crop_details` | Full crop profile with nutrient offtake |\n| `get_commodity_price` | Latest price with source attribution |\n| `calculate_margin` | Gross margin estimate |\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. It is not professional agricultural 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"}