mcpField
B
BGB (Germany)

BGB (Germany)

Remote
bgb.law.arxo.ioLegal & Government0Updated 2w ago

About BGB (Germany)

BGB (Germany) is a pinned collection of German Civil Code texts, executable models, and checked case scenarios, evaluated with the `law` engine. It serves users examining legal periods, deadlines, and other BGB topics through hosted or local execution.

Key features

  1. 01Topic-based BGB packages
  2. 02Pinned source texts and dependencies
  3. 03Scenarios for checking evaluations
  4. 04Hosted or local execution
  5. 05Offline package builds and verification

Use cases

  1. 01Evaluate a deadline case against BGB rules
  2. 02Compare cases before and after a legal transition
  3. 03Run a worked case locally without downloads

MCP support

The project offers an MCP endpoint at `https://mcp.arxo.io/mcp/de-bgb` and a local deployment using `docker compose -f mcp/compose.yml up`. Both evaluate against the same pinned canon and engine.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://mcp.arxo.io/mcp/de-bgb
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

Packages
npm@arxo/mcp-de-bgb0.1.9

Tools

20
ParameterTypeRequiredDescription
kindsarrayNonarrow the kinds of candidate
limitintegerNohow many candidates (8, at most 25)
querystringYesa question or a notion in your own words
packagestringNosearch inside this instrument only

Details

From the project README

arxo-bgb.git

Smithery

Pinned canon, executable as it stands: source text with provenance, the model built over it and the scenarios that check its answers. The norms here are data — they are executed by law; this repository carries no rule code of its own.

Contents

PackageVersionScenariosDependencies
calc.kinship0.1.0390
de.bgb.core0.1.010
doctrine.ius_privatum0.1.0370
de.bgb.fristen0.1.0861
de.bgb_18960.1.051
de.bgb.allgemeiner_teil0.1.0213
de.bgb.besitz_eigentum0.1.01432
de.bgb.betreuung0.1.01102
de.bgb.dienst_werk0.1.02102
de.bgb.ehe0.1.0573
de.bgb.ius_privatum0.1.013
de.bgb.miete0.1.0312
de.bgb.sonstige_vertraege0.1.04982
de.bgb.uebergang0.1.0152
de.bgb.dingliche_rechte0.1.01233
de.bgb.erbfolge0.1.0404
de.bgb.schuldrecht_at0.1.0514
de.bgb.verwandtschaft0.1.0824
de.bgb.bereicherung_delikt0.1.0715
de.bgb.kauf0.1.0905
de.bgb.verfuegungen0.1.0825

How it is verified

Every package is built by package.py with the pinned toolchain: compilation, §267 scenarios on both evaluators, replay of saved evaluations and a rebuild from the release itself. A failure of any step stops the build.

python3 tools/toolchain.py download --lock toolchain.lock.json --out /tmp/law-tools
python3 /tmp/law-tools/package.py packages/<name> \
    --lawc /tmp/law-tools/law-cli --offline --out /tmp/<name>-release

Dependencies

Dependency bytes are pinned under packages/<name>/deps/ and verified against the contentHash recorded in law.lock: the build and the CI are offline.

Asking these packages

Two ways, the same slice of the canon and the same engine; the difference is whose machine evaluates.

  • Hosted: https://mcp.arxo.io/mcp/de-bgb — requests are evaluated on Arxo infrastructure.
  • Local: docker compose -f mcp/compose.yml up — nothing leaves the machine.

mcp/pin.json records what either one must answer from: the content hash of the canon profile, the pinned packages, the ABI version of the engine and the availability of the hosted endpoint. An answer that cannot be traced to that pin is not this repository's answer.

Worked cases

Each collection is a case package of its own: the facts, the questions and the answers, with the pinned canon as its dependency. Ask one from its directory with law ask . — nothing is downloaded.

CollectionCasesQuestions
packages/de.bgb.fristen/examples/ein-fall-drei-kodizes64
packages/de.bgb.fristen/examples/fristenrechner816
packages/de.bgb_1896/examples/ein-fall-zwei-jahrhunderte56
packages/de.bgb.miete/examples/kuendigung-und-mieterhoehung614
packages/de.bgb.uebergang/examples/vor-und-nach-200249
packages/de.bgb.erbfolge/examples/erbfolge-und-pflichtteil818
packages/de.bgb.schuldrecht_at/examples/rechtsbehelfe66
packages/de.bgb.schuldrecht_at/examples/verzugszinsen59
packages/de.bgb.schuldrecht_at/examples/widerruf612

Rights

Code and model: see LICENSE. The pinned texts of the publishers keep their own terms of reproduction, listed per package in NOTICE; those terms are not covered by the code licence.

Maintainer: Rifat Dzhumagulov ([email protected]). Address: [email protected]:arxohq/arxo-bgb.git.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.