Austria RIS MCP server & Python client: federal & state law, case law, gazettes, change monitoring (Bundesrecht, Landesrecht, Judikatur).
Project description
at-ris-mcp
A generic MCP server and standalone Python client library for the Austrian RIS (Rechtsinformationssystem des Bundes), the official legal information system of the Republic of Austria, operated by the Bundeskanzleramt.
It covers federal law (Bundesrecht — including consolidated law BrKons,
the official gazettes, drafts and government bills), state law (Landesrecht
of the nine Bundesländer), case law (Judikatur — OGH, VfGH, VwGH, BVwG,
LVwG and more), ministerial decrees, district and municipal law, plus a
change-monitoring feed — via the keyless OGD API at
https://data.bka.gv.at/ris/api/v2.6/.
Why this exists
Compared with existing RIS tooling, at-ris-mcp adds:
- Consolidated law (
BrKons) — the currently applicable text, not just the gazette novellas. - Section-precise access — retrieve a single
§/Artikel/Anlage (Abschnitt.*). - Historical version — the law as it stood on a given date
(
Fassung.FassungVom). - Clean Markdown — RIS HTML (≈40 KB of CSS boilerplate per document) is
stripped to the legal text, with a
rawswitch for the untouched original.
Two packages, one repo
ris_client— a standalone, MCP-independent library. Import it directly.ris_mcp— a thin FastMCP/stdio wrapper exposing 10 tools. Contains no logic of its own.
Install
pip install at-ris-mcp # library only
pip install "at-ris-mcp[mcp]" # + the MCP server (FastMCP)
Run the MCP server (stdio)
at-ris-mcp
# or
python -m ris_mcp
Tools
| Tool | Purpose |
|---|---|
ris_search_law |
Search Bundesrecht (default BrKons; also BgblAuth, Begut, RegV, …). Section + Fassung filters. |
ris_get_law_text |
Full text of a statute/section (markdown | html | xml | raw). |
ris_search_case |
Search Judikatur (default Justiz; all courts). Filter by applied norm. |
ris_get_case_text |
Full text of a decision. |
ris_search_state_law |
Search Landesrecht (9 Bundesländer; default LrKons). Select states via bundeslaender. |
ris_search_misc |
Search Sonstige (ministerial decrees Erlaesse, Avsv, …). |
ris_search_district |
Search district authority notices (Bezirke / Bvb). |
ris_search_municipality |
Search municipal law (Gemeinden / Gemeinderecht Gr/GrA). |
ris_list_collections |
Which endpoints/applications are covered. |
ris_list_changes |
Change/early-warning feed (RIS History) via the OGD SOAP endpoint, incl. deleted documents. |
Library usage
import asyncio
from ris_client import RisClient, LawSearchRequest, TextFormat
async def main():
async with RisClient() as c:
res = await c.search_law(LawSearchRequest(suchworte="Datenschutzgesetz",
page_size="Ten"))
hit = res.items[0]
print(hit.human_readable_citation, hit.eli_uri)
text = await c.get_text(hit.content_urls["html"], TextFormat.markdown)
print(text.content[:500])
asyncio.run(main())
Configuration (environment variables)
| Variable | Default | Meaning |
|---|---|---|
RIS_BASE_URL |
https://data.bka.gv.at/ris/api/v2.6 |
API base (version isolation). |
RIS_SOAP_URL |
https://data.bka.gv.at/ris/ogd/v2.6/ |
OGD SOAP endpoint (used by ris_list_changes). |
RIS_USER_AGENT |
at-ris-mcp/<version> (+…) |
Descriptive UA (netiquette). |
RIS_RATE_MS |
1200 |
Minimum delay between requests (ms). |
RIS_TIMEOUT_S |
30 |
HTTP timeout. |
RIS_MAX_RETRIES |
3 |
Retries on 429/5xx (incl. 503). |
RIS_CACHE_DIR |
~/.cache/at-ris-mcp |
SQLite cache location. |
RIS_CACHE_ENABLED |
true |
Toggle the cache. |
RIS_AUDIT_DIR |
(unset) | If set, append a JSONL audit line per call (no full text, no client data). |
Netiquette & rate limiting
Per the RIS OGD FAQ: a 1–2 s pause per page is enforced by the client; bulk
access should occur outside office hours (18:00–06:00) or on weekends and be
announced to ris.it@bka.gv.at. A descriptive User-Agent is sent by default.
Licensing
-
Code: Apache-2.0 (see
LICENSE). -
Data: the retrieved documents are provided by the Republic of Austria under CC BY 4.0. Every tool response carries an
attributionfield:Quelle: RIS – Rechtsinformationssystem des Bundes (data.bka.gv.at), CC BY 4.0
-
No legal advice. Only the authentic promulgation text (Bundesgesetzblatt/Landesgesetzblatt authentisch) is legally binding. Consolidated law and all other documents are for information only. Every response carries a
legal_noticeto that effect.
Scope (v1.0)
Covered: Bundesrecht (BrKons, BgblAuth, BgblPdf, BgblAlt, Begut,
RegV, Erv — English translations), Judikatur (all courts), the History
change-feed (ris_list_changes, incl. deleted documents), Landesrecht
(9 Bundesländer: LrKons, LgblAuth, Lgbl, LgblNO, Vbl), Sonstige
(Erlaesse, Avsv, Avn, Spg, KmGer, Upts, Mrp, PruefGewO — with
app-specific fine filters), Bezirke (Bvb) and Gemeinden (Gr, GrA).
English translations (
Erv): search viaris_search_lawwithapplikation="Erv".suchworte/titelmap to the RISSearchTerms/Titleparameters automatically.
State-law note: for consolidated state law (
LrKons), select the states viabundeslaender(e.g.["Kaernten","Tirol"]); this maps to the dottedBundesland.SucheIn<Land>=trueflags the API requires (the flat form is silently ignored forLrKons).
History note: consolidated federal law is monitored under the application name
Bundesnormen(notBrKons), consolidated state law underLandesnormen. The History query uses the OGD SOAP endpoint, since it is not exposed via the REST GET API.
Development
pip install -e ".[dev,mcp]"
pytest # offline tests
RIS_SMOKE=1 pytest -m smoke # live smoke tests against the real API
Release
Releases are automated. Pushing a version tag (vX.Y.Z) triggers GitHub
Actions to build the distributions, publish to PyPI (via Trusted
Publishing / OIDC — no API token), create a GitHub Release, and register
the new version in the MCP Registry.
# bump the version in pyproject.toml, src/ris_client/config.py and server.json,
# update CHANGELOG.md, then:
git tag -a vX.Y.Z -m "vX.Y.Z"
git push origin vX.Y.Z
To build locally without publishing:
python -m build # sdist + wheel into dist/
python -m twine check dist/*
The MCP-registry entry is described by server.json
(name io.github.paragraflabs/at-ris-mcp); the matching mcp-name: marker is
embedded near the top of this README.
Contributing & support
Issues and pull requests are welcome at
https://github.com/paragraflabs/at-ris-mcp. See CHANGELOG.md
for the release history. This project is not affiliated with or endorsed by the
Republic of Austria or the Bundeskanzleramt; it is an independent client for the
public RIS OGD interface.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file at_ris_mcp-1.0.2.tar.gz.
File metadata
- Download URL: at_ris_mcp-1.0.2.tar.gz
- Upload date:
- Size: 39.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bccac7438d7007afbc1ff17fc9bb2142f7d99c0cce295d4e4ead2082336f697c
|
|
| MD5 |
fa102a24414e76ae301dfd0aaac4a8d9
|
|
| BLAKE2b-256 |
54172ae73fcc89156a78b29a684c9978ad341cafb277c14c664b58c08c4eafa7
|
Provenance
The following attestation bundles were made for at_ris_mcp-1.0.2.tar.gz:
Publisher:
release.yml on paragraflabs/at-ris-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
at_ris_mcp-1.0.2.tar.gz -
Subject digest:
bccac7438d7007afbc1ff17fc9bb2142f7d99c0cce295d4e4ead2082336f697c - Sigstore transparency entry: 2243115627
- Sigstore integration time:
-
Permalink:
paragraflabs/at-ris-mcp@7d4d0ffce8a8ca2c7d3ce53518cedc5996f53db7 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/paragraflabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7d4d0ffce8a8ca2c7d3ce53518cedc5996f53db7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file at_ris_mcp-1.0.2-py3-none-any.whl.
File metadata
- Download URL: at_ris_mcp-1.0.2-py3-none-any.whl
- Upload date:
- Size: 37.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fa97c83cdc17e324f547a021f3cb1ae2b66cfe08b598611bba3d1f70315f6e0
|
|
| MD5 |
e5deaab4017b8da8d95a6f52a6b958d5
|
|
| BLAKE2b-256 |
e6cb4b0919fbc097715b16aa88b689d7ff04df3d20b23e8176ea4195508690f2
|
Provenance
The following attestation bundles were made for at_ris_mcp-1.0.2-py3-none-any.whl:
Publisher:
release.yml on paragraflabs/at-ris-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
at_ris_mcp-1.0.2-py3-none-any.whl -
Subject digest:
7fa97c83cdc17e324f547a021f3cb1ae2b66cfe08b598611bba3d1f70315f6e0 - Sigstore transparency entry: 2243116513
- Sigstore integration time:
-
Permalink:
paragraflabs/at-ris-mcp@7d4d0ffce8a8ca2c7d3ce53518cedc5996f53db7 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/paragraflabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7d4d0ffce8a8ca2c7d3ce53518cedc5996f53db7 -
Trigger Event:
push
-
Statement type: