belex MCP Server
Enables searching and retrieving court decisions from the Elasticsearch index of the Verwaltungsgericht Bern.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@belex MCP ServerI need the building law, BSG 721.0"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
belex — Berner Recht & Gerichtspraxis als MCP-Server
Ein MCP-Server, der KI-Assistenten (Claude & Co.) zitierfähigen Zugriff auf zwei Bestände des Kantons Bern gibt:
Gesetze — die Bernische Systematische Gesetzessammlung (BSG)
Gerichtspraxis — die Urteile des Verwaltungsgerichts des Kantons Bern
Anders als das Bundesrecht liegen beide nicht als offene Schnittstelle vor. belex führt sie zusammen und liefert jede Antwort mit Fundstelle (BSG-Nummer + Stand bzw. Geschäftsnummer + Datum) aus den amtlichen Quellen.
⚠️ Rechtsinformation, keine Rechtsberatung. Die Ausgaben können unvollständig oder nicht mehr aktuell sein und ersetzen keine anwaltliche Prüfung. Verbindlich ist allein die amtliche Fassung (belex.sites.be.ch bzw. das Original des Gerichts). Im Zweifel immer juristisch prüfen lassen.
Tools
Tool | Bestand | Zweck |
| Gesetze | Erlasse per Stichwort finden |
| Gesetze | Erlass per BSG-Nummer (z. B. |
| Gesetze | Einzelnen Artikel herausschneiden |
| Gesetze | Datenstand (Anzahl, Quelle, Indexdatum) |
| Urteile | VGer-Urteile per Stichwort im Volltext |
| Urteile | Urteil per Geschäftsnummer (z. B. |
| Urteile | Datenstand (Anzahl, neuester Entscheid) |
Related MCP server: Switzerland Land & Woodland MCP
Nutzen (Remote, ohne Installation)
claude_desktop_config.json:
{
"mcpServers": {
"belex": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://belex.blueforce.ch/mcp"]
}
}
}Danach das KI-Tool neu starten. Landing-Page & Demo: https://belex.blueforce.ch
Datenquellen & Architektur
Gesetze: lokaler SQLite-Index (FTS5), tagesaktuell gebaut aus der undokumentierten, aber stabilen JSON-API der BELEX-App (
belex.sites.be.ch/api).Gerichtspraxis: live abgefragt aus der offenen Elasticsearch von entscheidsuche.ch (gefiltert auf das Verwaltungsgericht Bern), kein eigener Index nötig.
src/belex_source.py Gesetze: Download + Index (SQLite/FTS5)
src/vg_live.py Gerichtspraxis: Live-Abfrage entscheidsuche-ES
src/server.py FastMCP-Server mit allen 7 Tools (stdio + HTTP)
src/http_app.py schlanker WSGI-Adapter: GET / = Landing-Page, POST /mcp = MCP
passenger_wsgi.py Einstieg für gehosteten Betrieb (LiteSpeed/Passenger)
static/ Landing-Page + AssetsLokal betreiben (stdio, Claude Desktop)
python3 -m venv .venv && . .venv/bin/activate
pip install -r requirements.txt
python src/belex_source.py --live # Gesetzes-Index bauen (~3 Min)
python src/server.py # stdio-ServerRefresh der Gesetze (die BSG ändert am 1. des Monats): denselben --live-Befehl
erneut ausführen (z. B. als Monats-Cron).
Lizenz
Code: MIT. Gesetze und Gerichtsentscheide sind amtliche Werke (Art. 5 URG) und nicht urheberrechtlich geschützt. belex ist kein amtliches Angebot des Kantons Bern.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/blueforce/belex-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server