{"_id":"@ansvar/ch-farm-grants-mcp","_rev":"2-07bf8202aef766a43b4c7c6535ebf924","name":"@ansvar/ch-farm-grants-mcp","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@ansvar/ch-farm-grants-mcp","version":"0.1.0","keywords":["mcp","agriculture","grants","strukturverbesserungen","investitionskredit","farming","switzerland"],"author":{"name":"Ansvar Systems","email":"info@ansvar.eu"},"license":"Apache-2.0","_id":"@ansvar/ch-farm-grants-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/ch-farm-grants-mcp/issues"},"bin":{"ch-farm-grants-mcp":"dist/server.js"},"dist":{"shasum":"253a50af94bb80f54fe333d8380edab75576f5ca","tarball":"https://registry.npmjs.org/@ansvar/ch-farm-grants-mcp/-/ch-farm-grants-mcp-0.1.0.tgz","fileCount":108,"integrity":"sha512-1cR2r2d+Rb1Dx5hRPbUi9gJ6FevOLtQXWhe7z214dwA+YjIQry2uJ3quiO8RGaTwb9m1ImUuW5sGeMHOfH2pdw==","signatures":[{"sig":"MEQCIDrUnJBL0HVzHbRwbgFnzFLlddWfY4M4cbTxJJqwWeoyAiAG5Fm22t8K8YrFEh1hhkccvbE0Zs41AncWzCqHf/1Ogg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ansvar%2fch-farm-grants-mcp@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":373050},"main":"dist/server.js","type":"module","types":"./dist/server.d.ts","engines":{"node":">=20"},"gitHead":"f13f6f1373c9abe2b627474bd4bd37f9c60d7e6b","mcpName":"io.github.ansvar-systems/ch-farm-grants","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/ch-farm-grants-mcp.git","type":"git"},"_npmVersion":"10.8.2","description":"Swiss farm grants and structural improvement via MCP","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/ch-farm-grants-mcp_0.1.0_1775385457906_0.08799844443871851","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Ansvar MCP servers are now distributed as source from github.com/Ansvar-Systems/ch-farm-grants-mcp under Apache 2.0. Self-hosting instructions: see the repo README. Hosted gateway: ansvar.eu"}},"time":{"created":"2026-04-05T10:37:37.829Z","modified":"2026-05-02T05:44:30.501Z","0.1.0":"2026-04-05T10:37:38.069Z"},"bugs":{"url":"https://github.com/Ansvar-Systems/ch-farm-grants-mcp/issues"},"author":{"name":"Ansvar Systems","email":"info@ansvar.eu"},"license":"Apache-2.0","homepage":"https://ansvar.eu/open-agriculture","keywords":["mcp","agriculture","grants","strukturverbesserungen","investitionskredit","farming","switzerland"],"repository":{"url":"git+https://github.com/Ansvar-Systems/ch-farm-grants-mcp.git","type":"git"},"description":"Swiss farm grants and structural improvement via MCP","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"readme":"# Switzerland Farm Grants MCP\n\n[![CI](https://github.com/ansvar-systems/ch-farm-grants-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/ansvar-systems/ch-farm-grants-mcp/actions/workflows/ci.yml)\n[![GHCR](https://github.com/ansvar-systems/ch-farm-grants-mcp/actions/workflows/ghcr-build.yml/badge.svg)](https://github.com/ansvar-systems/ch-farm-grants-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\nSwiss agricultural structural improvement grants via the [Model Context Protocol](https://modelcontextprotocol.io). Query Investitionskredite (interest-free loans), Beitraege (capital grants), Meliorationen, PRE, Ressourcenprogramme, Gewaesserschutzprojekte, and Starthilfe Junglandwirte -- all from your AI assistant.\n\nPart of [Ansvar Open Agriculture](https://ansvar.eu/open-agriculture).\n\n## Why This Exists\n\nSwiss farmers, advisors, and cantonal agricultural offices need fast access to structural improvement grant rules when planning investments. The data is spread across federal ordinances (SVV, SR 913.1), BLW guidelines, cantonal implementation rules, and AGRIDEA advisory materials. This MCP server puts it all behind a single tool interface so AI assistants can answer grant eligibility, payment rates, and application process questions with cited Swiss data instead of guessing from training data.\n\n## Quick Start\n\n### Claude Desktop\n\nAdd to your `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"ch-farm-grants\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@ansvar/ch-farm-grants-mcp\"]\n    }\n  }\n}\n```\n\n### Claude Code\n\n```bash\nclaude mcp add ch-farm-grants -- npx -y @ansvar/ch-farm-grants-mcp\n```\n\n### Streamable HTTP (remote)\n\n```\nhttps://mcp.ansvar.eu/ch-farm-grants/mcp\n```\n\nNo authentication required.\n\n### Docker (self-hosted)\n\n```bash\ndocker run -p 3000:3000 ghcr.io/ansvar-systems/ch-farm-grants-mcp:latest\n```\n\n## Tools\n\n| Tool | Description |\n|------|-------------|\n| `about` | Server metadata: name, version, coverage, data sources, and links. |\n| `list_sources` | All data sources with authority, URL, license, and freshness info. |\n| `check_data_freshness` | When data was last ingested, staleness status, how to trigger a refresh. |\n| `search_grants` | Search grants by free text (German or English), filter by grant type. |\n| `get_grant_details` | Full details for a grant programme: objectives, rates, conditions, eligibility, sub-options. |\n| `get_payment_rates` | Federal and cantonal contribution rates, zone-specific bonuses (Berggebiet, Huegelzone). |\n| `check_eligibility` | Check which grants a farm is eligible for by farm type, investment, and altitude zone. |\n| `list_grant_options` | List sub-options (Massnahmen) within a grant programme, or list all grants with option counts. |\n| `get_application_deadlines` | Application deadlines for grants, optionally filtered by canton. |\n| `search_application_guidance` | How to apply: required documents, cantonal contacts, AGRIDEA advisory support. |\n\nSee [TOOLS.md](TOOLS.md) for full parameter documentation.\n\n## Data Sources\n\n- **Strukturverbesserungsverordnung (SVV, SR 913.1)** -- federal structural improvement rules\n- **BLW Weisungen Investitionskredite und Beitraege** -- federal investment credit guidelines\n- **Kantonale Landwirtschaftsaemter** -- cantonal contribution rates, deadlines, additional programmes\n- **AGRIDEA Beratungsunterlagen** -- project planning guidance, application procedures\n\nSee [COVERAGE.md](COVERAGE.md) for data counts and limitations.\n\n## License\n\nApache-2.0. See [LICENSE](LICENSE).\n","readmeFilename":"README.md"}