{"_id":"@ansvar/ch-land-woodland-mcp","_rev":"2-77c0d448a577875e3b5928b21b16e336","name":"@ansvar/ch-land-woodland-mcp","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@ansvar/ch-land-woodland-mcp","version":"0.1.0","keywords":["mcp","agriculture","land-law","bgbb","waldgesetz","rpg","raumplanung","switzerland"],"author":{"name":"Ansvar Systems","email":"info@ansvar.eu"},"license":"Apache-2.0","_id":"@ansvar/ch-land-woodland-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-land-woodland-mcp/issues"},"bin":{"ch-land-woodland-mcp":"dist/server.js"},"dist":{"shasum":"8711669dfb1a10eab7c074f57f7f90cda6bd0a7a","tarball":"https://registry.npmjs.org/@ansvar/ch-land-woodland-mcp/-/ch-land-woodland-mcp-0.1.0.tgz","fileCount":108,"integrity":"sha512-eGwm3D8yjaxmVfgPxdtKk8lOni4Vfb5lxw2G48mi17DFmJv377SlIOaVH+hZ36fpFNMD4hOqDa/WwRpLfwskhg==","signatures":[{"sig":"MEUCIF9eiPlKISUThAefWZUA5+e6c66Ba5Ziji1uu0j0PRTyAiEA6MEHzWS4ESBUmfbO9KZFOsP3D0K2VcRXRoBgSG4d/eY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ansvar%2fch-land-woodland-mcp@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":362112},"main":"dist/server.js","type":"module","types":"./dist/server.d.ts","engines":{"node":">=20"},"gitHead":"3f5768a0ec25f45f19699cb01a52131c2084dcdf","mcpName":"io.github.ansvar-systems/ch-land-woodland","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-land-woodland-mcp.git","type":"git"},"_npmVersion":"10.8.2","description":"Swiss land law, forest protection, and spatial planning via MCP -- BGBB, Waldgesetz, RPG, Fruchtfolgeflaechen, agricultural leases","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-land-woodland-mcp_0.1.0_1775385463501_0.2535624830816283","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Ansvar MCP servers are now distributed as source from github.com/Ansvar-Systems/ch-land-woodland-mcp under Apache 2.0. Self-hosting instructions: see the repo README. Hosted gateway: ansvar.eu"}},"time":{"created":"2026-04-05T10:37:43.382Z","modified":"2026-05-02T05:45:51.739Z","0.1.0":"2026-04-05T10:37:43.651Z"},"bugs":{"url":"https://github.com/Ansvar-Systems/ch-land-woodland-mcp/issues"},"author":{"name":"Ansvar Systems","email":"info@ansvar.eu"},"license":"Apache-2.0","homepage":"https://ansvar.eu/open-agriculture","keywords":["mcp","agriculture","land-law","bgbb","waldgesetz","rpg","raumplanung","switzerland"],"repository":{"url":"git+https://github.com/Ansvar-Systems/ch-land-woodland-mcp.git","type":"git"},"description":"Swiss land law, forest protection, and spatial planning via MCP -- BGBB, Waldgesetz, RPG, Fruchtfolgeflaechen, agricultural leases","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"readme":"# Switzerland Land & Woodland MCP\n\n[![CI](https://github.com/ansvar-systems/ch-land-woodland-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/ansvar-systems/ch-land-woodland-mcp/actions/workflows/ci.yml)\n[![GHCR](https://github.com/ansvar-systems/ch-land-woodland-mcp/actions/workflows/ghcr-build.yml/badge.svg)](https://github.com/ansvar-systems/ch-land-woodland-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 land law, forest protection, and spatial planning via the [Model Context Protocol](https://modelcontextprotocol.io). Query BGBB land acquisition rules, Waldgesetz forest duties, RPG building zones, Fruchtfolgeflaechen quotas, and agricultural leases -- all from your AI assistant.\n\nPart of [Ansvar Open Agriculture](https://ansvar.eu/open-agriculture).\n\n## Why This Exists\n\nSwiss land and woodland law is spread across multiple federal acts (BGBB, WaG, RPG, LPG) and cantonal regulations. Farmers, notaries, and spatial planners need quick access to acquisition restrictions, forest clearing rules, building permits in agricultural zones, farmland protection quotas, and lease conditions. This MCP server makes all of it searchable.\n\n## Quick Start\n\n### Claude Desktop\n\nAdd to `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"ch-land-woodland\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@ansvar/ch-land-woodland-mcp\"]\n    }\n  }\n}\n```\n\n### Claude Code\n\n```bash\nclaude mcp add ch-land-woodland npx @ansvar/ch-land-woodland-mcp\n```\n\n### Streamable HTTP (remote)\n\n```\nhttps://mcp.ansvar.eu/ch-land-woodland/mcp\n```\n\n### Docker (self-hosted)\n\n```bash\ndocker run -p 3000:3000 ghcr.io/ansvar-systems/ch-land-woodland-mcp:latest\n```\n\n### npm (stdio)\n\n```bash\nnpx @ansvar/ch-land-woodland-mcp\n```\n\n## Example Queries\n\nAsk your AI assistant:\n\n- \"Wer darf landwirtschaftlichen Boden kaufen? (BGBB Selbstbewirtschafter)\"\n- \"What are the forest clearing rules in Switzerland?\"\n- \"Can I build a farmhouse in the Landwirtschaftszone?\"\n- \"How are Fruchtfolgeflaechen quotas distributed by canton?\"\n- \"What is the minimum lease duration for Betriebspacht?\"\n- \"Search planning zones for Schutzzone restrictions\"\n\n## Stats\n\n| Metric | Value |\n|--------|-------|\n| Tools | 10 (3 meta + 7 domain) |\n| Jurisdiction | CH |\n| Data sources | BGBB (SR 211.412.11), WaG (SR 921.0), RPG (SR 700), LPG (SR 221.213.2), Sachplan FFF |\n| License (data) | Swiss Federal Administration -- free reuse |\n| License (code) | Apache-2.0 |\n| Transport | stdio + Streamable HTTP |\n\n## Tools\n\n| Tool | Description |\n|------|-------------|\n| `about` | Server metadata, version, coverage, links |\n| `list_sources` | Data sources with authority, URL, license |\n| `check_data_freshness` | Staleness status and refresh instructions |\n| `search_land_rules` | Full-text search across all land/woodland regulations |\n| `get_bgbb_rules` | BGBB land acquisition rules (Selbstbewirtschafter, Realteilung, Ertragswert) |\n| `get_forest_rules` | Waldgesetz duties (Rodungsverbot, Realersatz, Waldabstand) |\n| `get_building_rules` | RPG building rules in agricultural/non-building zones |\n| `get_farmland_protection` | FFF quotas (national minimum, cantonal distribution) |\n| `get_lease_rules` | Agricultural lease rules (LPG duration, rent, termination) |\n| `search_planning_zones` | Planning zone search (Landwirtschafts-, Bau-, Schutzzonen) |\n\nSee [TOOLS.md](TOOLS.md) for full parameter reference.\n\n## Coverage\n\n12 BGBB rules, 8 forest rules, 9 building rules, 16 farmland protection entries, 5 lease rules, 9 planning zones. Jurisdiction: CH (federal level). See [COVERAGE.md](COVERAGE.md) for gaps and limitations.\n\n## Documentation\n\n- [TOOLS.md](TOOLS.md) -- full tool reference with parameters and examples\n- [COVERAGE.md](COVERAGE.md) -- what is and is not included\n- [DISCLAIMER.md](DISCLAIMER.md) -- bilingual legal disclaimer (DE/EN)\n- [SECURITY.md](SECURITY.md) -- vulnerability reporting\n- [PRIVACY.md](PRIVACY.md) -- data handling\n- [CHANGELOG.md](CHANGELOG.md) -- release history\n\n## Development\n\n```bash\nnpm install\nnpm run build\nnpm test\nnpm run dev        # watch mode\nnpm run lint       # ESLint\nnpm run typecheck  # tsc --noEmit\n```\n\n## Data Ingestion\n\n```bash\nnpm run ingest          # standard ingestion\nnpm run ingest:fetch    # fetch upstream only\nnpm run ingest:diff     # check for changes\nnpm run ingest:full     # force full rebuild\n```\n\nAutomated via GitHub Actions: `ingest.yml` runs monthly, `check-freshness.yml` runs daily.\n\n## License\n\nCode: [Apache-2.0](LICENSE). Data: Swiss Federal Administration -- free reuse.\n\nBuilt by [Ansvar Systems](https://ansvar.eu) | [MCP Network](https://ansvar.ai/mcp)\n","readmeFilename":"README.md"}