{"_id":"@ansvar/se-crop-nutrients-mcp","_rev":"2-43f91996489db02f90dce8a089951930","name":"@ansvar/se-crop-nutrients-mcp","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@ansvar/se-crop-nutrients-mcp","version":"0.1.0","keywords":["mcp","agriculture","nutrients","jordbruksverket","farming","crop-science","sweden"],"author":{"name":"Ansvar Systems","email":"info@ansvar.eu"},"license":"Apache-2.0","_id":"@ansvar/se-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/se-crop-nutrients-mcp/issues"},"bin":{"se-crop-nutrients-mcp":"dist/server.js"},"dist":{"shasum":"84cc8828b603f6cbd969800ec6d71f4ab7edbf9e","tarball":"https://registry.npmjs.org/@ansvar/se-crop-nutrients-mcp/-/se-crop-nutrients-mcp-0.1.0.tgz","fileCount":120,"integrity":"sha512-BA1BAyyx8OUiRe3AvYWvWZUQfeMXSU5TnxD+E6hhfQ5Dw2EGtKWhdtzdqNbHI0fWN0e4LPFj/Ey62k2FeBJJOg==","signatures":[{"sig":"MEQCIEcmMaPsKiEPE37epBnYjMK54i1a0HZ7IAok4TKnL/cdAiAkk0jPKiHbvMCvbZSiE7OWhTwdweY5G0ylWiWbjhnGRA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15186381},"main":"dist/server.js","type":"module","types":"./dist/server.d.ts","engines":{"node":">=20"},"gitHead":"76c50eb8698ddd9c12673b84ac5d1924819e2b4f","mcpName":"io.github.ansvar-systems/se-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/se-crop-nutrients-mcp.git","type":"git"},"_npmVersion":"10.8.2","description":"Swedish crop nutrient recommendations via MCP -- Jordbruksverket data, soil types, NPK planning, commodity prices (SEK)","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-crop-nutrients-mcp_0.1.0_1775292607573_0.7112011643069505","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Ansvar MCP servers are now distributed as source from github.com/Ansvar-Systems/se-crop-nutrients-mcp under Apache 2.0. Self-hosting instructions: see the repo README. Hosted gateway: ansvar.eu"}},"time":{"created":"2026-04-04T08:50:07.493Z","modified":"2026-05-02T05:48:27.903Z","0.1.0":"2026-04-04T08:50:07.806Z"},"bugs":{"url":"https://github.com/ansvar-systems/se-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","jordbruksverket","farming","crop-science","sweden"],"repository":{"url":"git+https://github.com/ansvar-systems/se-crop-nutrients-mcp.git","type":"git"},"description":"Swedish crop nutrient recommendations via MCP -- Jordbruksverket data, soil types, NPK planning, commodity prices (SEK)","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"readme":"# Sweden Crop Nutrients MCP\n\n[![CI](https://github.com/ansvar-systems/se-crop-nutrients-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/ansvar-systems/se-crop-nutrients-mcp/actions/workflows/ci.yml)\n[![GHCR](https://github.com/ansvar-systems/se-crop-nutrients-mcp/actions/workflows/ghcr-build.yml/badge.svg)](https://github.com/ansvar-systems/se-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\nSwedish crop nutrient recommendations via the [Model Context Protocol](https://modelcontextprotocol.io). Query Jordbruksverket data, Swedish soil types (SGU/SLU), NPK planning, and commodity prices in SEK -- 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 Jordbruksverket nutrient recommendation tables, commodity prices, and soil data. This information is published by Jordbruksverket, Greppa Näringen, and SLU but is locked in PDFs, spreadsheets, and web pages that AI assistants cannot query directly. This MCP server covers 20 Swedish crops (höstvete, vårkorn, höstraps, vall, potatis, and more), 8 Swedish soil types, and current SEK commodity prices.\n\n## Quick Start\n\n### Claude Desktop\n\nAdd to `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"se-crop-nutrients\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@ansvar/se-crop-nutrients-mcp\"]\n    }\n  }\n}\n```\n\n### Claude Code\n\n```bash\nclaude mcp add se-crop-nutrients npx @ansvar/se-crop-nutrients-mcp\n```\n\n### Streamable HTTP (remote)\n\n```\nhttps://mcp.ansvar.eu/se-crop-nutrients/mcp\n```\n\n### Docker (self-hosted)\n\n```bash\ndocker run -p 3000:3000 ghcr.io/ansvar-systems/se-crop-nutrients-mcp:latest\n```\n\n### npm (stdio)\n\n```bash\nnpx @ansvar/se-crop-nutrients-mcp\n```\n\n## Example Queries\n\nAsk your AI assistant:\n\n- \"Vad behöver höstvete för NPK på styv lera?\"\n- \"Vad kostar vårkorn per ton?\"\n- \"Beräkna bruttomarginal för 7 t/ha höstvete vid 5000 kr/ha insatskostnad\"\n- \"Vilken jordgrupp tillhör moränjord?\"\n- \"Sök kväverekommendationer för höstraps\"\n- \"What nutrient plan does spring barley need on sandy soil?\"\n\n## Stats\n\n| Metric | Value |\n|--------|-------|\n| Tools | 10 (3 meta + 7 domain) |\n| Jurisdiction | SE |\n| Data sources | Jordbruksverket, Greppa Näringen, SLU |\n| License (data) | Swedish Open Data Licence |\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 from Jordbruksverket, Greppa Näringen, and SLU under Swedish Open Data Licence.\n","readmeFilename":"README.md"}