npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ansvar/ch-land-woodland-mcp

v0.1.0

Published

Swiss land law, forest protection, and spatial planning via MCP -- BGBB, Waldgesetz, RPG, Fruchtfolgeflaechen, agricultural leases

Readme

Switzerland Land & Woodland MCP

CI GHCR License: Apache-2.0

Swiss land law, forest protection, and spatial planning via the Model Context Protocol. Query BGBB land acquisition rules, Waldgesetz forest duties, RPG building zones, Fruchtfolgeflaechen quotas, and agricultural leases -- all from your AI assistant.

Part of Ansvar Open Agriculture.

Why This Exists

Swiss 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.

Quick Start

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "ch-land-woodland": {
      "command": "npx",
      "args": ["-y", "@ansvar/ch-land-woodland-mcp"]
    }
  }
}

Claude Code

claude mcp add ch-land-woodland npx @ansvar/ch-land-woodland-mcp

Streamable HTTP (remote)

https://mcp.ansvar.eu/ch-land-woodland/mcp

Docker (self-hosted)

docker run -p 3000:3000 ghcr.io/ansvar-systems/ch-land-woodland-mcp:latest

npm (stdio)

npx @ansvar/ch-land-woodland-mcp

Example Queries

Ask your AI assistant:

  • "Wer darf landwirtschaftlichen Boden kaufen? (BGBB Selbstbewirtschafter)"
  • "What are the forest clearing rules in Switzerland?"
  • "Can I build a farmhouse in the Landwirtschaftszone?"
  • "How are Fruchtfolgeflaechen quotas distributed by canton?"
  • "What is the minimum lease duration for Betriebspacht?"
  • "Search planning zones for Schutzzone restrictions"

Stats

| Metric | Value | |--------|-------| | Tools | 10 (3 meta + 7 domain) | | Jurisdiction | CH | | Data sources | BGBB (SR 211.412.11), WaG (SR 921.0), RPG (SR 700), LPG (SR 221.213.2), Sachplan FFF | | License (data) | Swiss Federal Administration -- free reuse | | License (code) | Apache-2.0 | | Transport | stdio + Streamable HTTP |

Tools

| Tool | Description | |------|-------------| | about | Server metadata, version, coverage, links | | list_sources | Data sources with authority, URL, license | | check_data_freshness | Staleness status and refresh instructions | | search_land_rules | Full-text search across all land/woodland regulations | | get_bgbb_rules | BGBB land acquisition rules (Selbstbewirtschafter, Realteilung, Ertragswert) | | get_forest_rules | Waldgesetz duties (Rodungsverbot, Realersatz, Waldabstand) | | get_building_rules | RPG building rules in agricultural/non-building zones | | get_farmland_protection | FFF quotas (national minimum, cantonal distribution) | | get_lease_rules | Agricultural lease rules (LPG duration, rent, termination) | | search_planning_zones | Planning zone search (Landwirtschafts-, Bau-, Schutzzonen) |

See TOOLS.md for full parameter reference.

Coverage

12 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 for gaps and limitations.

Documentation

Development

npm install
npm run build
npm test
npm run dev        # watch mode
npm run lint       # ESLint
npm run typecheck  # tsc --noEmit

Data Ingestion

npm run ingest          # standard ingestion
npm run ingest:fetch    # fetch upstream only
npm run ingest:diff     # check for changes
npm run ingest:full     # force full rebuild

Automated via GitHub Actions: ingest.yml runs monthly, check-freshness.yml runs daily.

License

Code: Apache-2.0. Data: Swiss Federal Administration -- free reuse.

Built by Ansvar Systems | MCP Network