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-farm-planning-mcp

v0.1.0

Published

Swiss farm business planning via MCP -- SAK calculation, Betriebsuebergabe, Deckungsbeitraege, Rechtsformen, Steuern

Readme

Switzerland Farm Planning MCP

Swiss farm business planning data via the Model Context Protocol (MCP). Covers SAK calculation (Standardarbeitskraft), Betriebsuebergabe (farm succession), Deckungsbeitraege (gross margins from Agroscope), Rechtsformen (business structures), Steuern (farm taxation), and financial guidance including AHV/IV.

Data sourced from Agroscope ZA-BH, BLW SAK-Faktoren (DZV Anhang), BGBB (SR 211.412.11), AGRIDEA Deckungsbeitraege, and SBV statistical data.

Quick Start

npx (stdio — fastest)

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

Docker (isolated)

docker build -t ch-farm-planning-mcp .
docker run -p 3000:3000 ch-farm-planning-mcp

Streamable HTTP (remote)

https://mcp.ansvar.eu/ch-farm-planning/mcp

No authentication required. Compatible with any MCP client that supports Streamable HTTP transport.

Tools

10 tools covering Swiss agricultural business planning. See TOOLS.md for full documentation.

| Tool | Description | |------|-------------| | about | Server metadata: name, version, coverage, data sources | | list_sources | All data sources with authority, URL, license, freshness | | check_data_freshness | Last ingestion date, staleness status, refresh command | | search_farm_planning | Full-text search across all farm planning topics | | get_business_structures | Legal business forms: Einzelunternehmen, GmbH, Genossenschaft | | get_tax_rules | Farm taxation: income, Grundstueckgewinnsteuer, AHV/IV | | get_succession_planning | Betriebsuebergabe: Ertragswert (BGBB), Zuweisungsanspruch | | get_gross_margins | Agroscope benchmark gross margins (CHF) per enterprise | | get_sak_calculation | SAK factors per enterprise type (DZV Anhang) | | search_financial_guidance | Advisory content: AHV/IV/EO, Familienzulagen, Maschinenkosten |

Data Sources

| Source | Authority | Update Frequency | |--------|-----------|-----------------| | Agroscope ZA-BH | Agroscope | Annual (Agrarbericht) | | SAK-Faktoren (DZV Anhang) | BLW | Periodic (DZV revisions) | | BGBB (SR 211.412.11) | Swiss Confederation | As amended | | AGRIDEA Deckungsbeitraege | AGRIDEA | Annual | | SBV Kennzahlen | Schweizer Bauernverband | Annual |

Coverage

  • Jurisdiction: Switzerland (CH)
  • SAK factors: 30 enterprise types
  • Business structures: 5 legal forms
  • Tax rules: 10 topics
  • Succession scenarios: 6 scenarios
  • Gross margins: 26 enterprise types
  • Financial guidance: 11 advisory topics

See COVERAGE.md for detailed coverage data.

Data Freshness

Data staleness threshold is 90 days. The check_data_freshness tool reports current status. Automated freshness checks run daily via GitHub Actions.

Trigger manual re-ingestion:

gh workflow run ingest.yml -R ansvar-systems/ch-farm-planning-mcp

Development

npm install
npm run build
npm test
npm run lint

Security

See SECURITY.md for vulnerability reporting and scanning details.

Legal

Links